2018-05-09 05:22:33 +00:00
|
|
|
/*
|
|
|
|
4coder_project_commands.h - type header paired with 4coder_project_commands.cpp
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FCODER_PROJECT_COMMANDS_H)
|
|
|
|
#define FCODER_PROJECT_COMMANDS_H
|
|
|
|
|
|
|
|
#include "4coder_lib/4coder_mem.h"
|
|
|
|
|
|
|
|
enum{
|
|
|
|
OpenAllFilesFlag_Recursive = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
///////////////////////////////
|
|
|
|
|
2018-05-28 05:30:31 +00:00
|
|
|
struct Project_File_Pattern{
|
|
|
|
Absolutes absolutes;
|
2018-05-26 07:49:37 +00:00
|
|
|
};
|
|
|
|
|
2018-05-28 05:30:31 +00:00
|
|
|
struct Project_File_Pattern_Array{
|
|
|
|
Project_File_Pattern *patterns;
|
2018-05-26 07:49:37 +00:00
|
|
|
int32_t count;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Project_File_Load_Path{
|
|
|
|
String path;
|
|
|
|
bool32 recursive;
|
|
|
|
bool32 relative;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Project_File_Load_Path_Array{
|
|
|
|
Project_File_Load_Path *paths;
|
|
|
|
int32_t count;
|
|
|
|
};
|
|
|
|
|
2018-05-28 05:30:31 +00:00
|
|
|
struct Project_Command{
|
|
|
|
String name;
|
|
|
|
String cmd;
|
|
|
|
String out;
|
|
|
|
bool32 footer_panel;
|
|
|
|
bool32 save_dirty_files;
|
2018-05-26 07:49:37 +00:00
|
|
|
};
|
|
|
|
|
2018-05-28 05:30:31 +00:00
|
|
|
struct Project_Command_Array{
|
|
|
|
Project_Command *commands;
|
2018-05-26 07:49:37 +00:00
|
|
|
int32_t count;
|
2018-05-09 05:22:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Project{
|
2018-05-26 07:49:37 +00:00
|
|
|
bool32 loaded;
|
2018-05-09 05:22:33 +00:00
|
|
|
|
2018-05-26 07:49:37 +00:00
|
|
|
String dir;
|
|
|
|
String name;
|
2018-05-09 05:22:33 +00:00
|
|
|
|
2018-05-26 07:49:37 +00:00
|
|
|
Project_File_Pattern_Array pattern_array;
|
|
|
|
Project_File_Pattern_Array blacklist_pattern_array;
|
|
|
|
Project_File_Load_Path_Array load_path_array;
|
|
|
|
Project_Command_Array command_array;
|
|
|
|
|
|
|
|
int32_t fkey_commands[16];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Project_Parse_Result{
|
|
|
|
Config *parsed;
|
|
|
|
Project *project;
|
2018-05-09 05:22:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
///////////////////////////////
|
|
|
|
|
|
|
|
struct Project_Setup_Status{
|
|
|
|
bool32 bat_exists;
|
|
|
|
bool32 sh_exists;
|
|
|
|
bool32 project_exists;
|
|
|
|
bool32 everything_exists;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|