2015-04-09 17:16:28 -04:00
|
|
|
/**
|
|
|
|
* Miscellaneous Program-specific definitions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DEFINITIONS_H
|
|
|
|
#define DEFINITIONS_H
|
|
|
|
|
2015-04-16 17:03:27 -04:00
|
|
|
// Application config
|
2015-04-17 12:48:00 -04:00
|
|
|
const wxString APP_NAME = "Tyro";
|
|
|
|
const wxString APP_VENDOR = "Aviat Ion";
|
2015-05-15 16:55:18 -04:00
|
|
|
const wxString APP_VERSION = "0.5.0";
|
2015-04-30 17:10:26 -04:00
|
|
|
const wxString APP_VERSION_MORE = "Pre-release";
|
2015-04-16 17:03:27 -04:00
|
|
|
|
2015-05-15 16:55:18 -04:00
|
|
|
// Command-line arguments
|
|
|
|
const wxCmdLineEntryDesc Glob_cmdLineDesc[] = {
|
|
|
|
{
|
|
|
|
wxCMD_LINE_PARAM,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
"input file(s)",
|
|
|
|
wxCMD_LINE_VAL_STRING,
|
|
|
|
wxCMD_LINE_PARAM_OPTIONAL | wxCMD_LINE_PARAM_MULTIPLE
|
|
|
|
},
|
|
|
|
{wxCMD_LINE_NONE}
|
|
|
|
};
|
|
|
|
|
2015-04-17 16:55:48 -04:00
|
|
|
// Some boilerplate text
|
|
|
|
const wxString TYRO_SAVE_ERROR = "Failed to save the file. Maybe you lack the permissions.";
|
|
|
|
const wxString TYRO_SAVE_ERROR_CAPTION = "Saving Failed";
|
|
|
|
const wxString TYRO_OPEN_ERROR = "Failed to open the file. Check that it exists, and that you have read permissions.";
|
|
|
|
const wxString TYRO_OPEN_ERROR_CAPTION = "Open Failed";
|
|
|
|
|
2015-05-14 14:59:04 -04:00
|
|
|
// Typedef some common templates
|
2015-04-10 15:11:15 -04:00
|
|
|
typedef map<string, int> StringConstMap;
|
2015-04-23 16:40:59 -04:00
|
|
|
typedef map<string, string> StringMap;
|
2015-04-10 15:11:15 -04:00
|
|
|
|
2015-04-30 17:10:26 -04:00
|
|
|
// Top level menus
|
|
|
|
enum myMenuIds {
|
|
|
|
myFILE_MENU,
|
|
|
|
myEDIT_MENU,
|
|
|
|
myVIEW_MENU,
|
|
|
|
myLANG_MENU,
|
|
|
|
myHELP_MENU
|
|
|
|
};
|
|
|
|
|
2015-05-08 16:01:36 -04:00
|
|
|
// General Menu ids
|
2015-04-30 17:10:26 -04:00
|
|
|
enum myMenuItemIds {
|
2015-05-14 14:59:04 -04:00
|
|
|
myID_VIEW_WHITESPACE = wxID_HIGHEST + 1,
|
2015-04-30 17:10:26 -04:00
|
|
|
myID_VIEW_LINE_ENDINGS,
|
|
|
|
myID_CLOSE_ALL,
|
|
|
|
myID_CLOSE_ALL_BUT_THIS,
|
|
|
|
myID_LINE_WRAP
|
|
|
|
};
|
|
|
|
|
2015-04-09 17:16:28 -04:00
|
|
|
const wxString TYRO_FILE_OPEN_WILDCARDS =
|
2015-04-22 10:09:43 -04:00
|
|
|
"All files (*.*)|*|"
|
|
|
|
"Batch (*.bat, *.cmd, *.nt)|*.bat;*.cmd,*.nt|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Caml (*.ml,*.mli,*.sml,*.thy)|*.ml;*.mli;*.sml;*.thy|"
|
|
|
|
"Cmake (*.cmake) |*.cmake|"
|
|
|
|
"C/C++ (*.c,*.cpp,*.h)|*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma;*.cp|"
|
|
|
|
"Coffeescript (*.coffee)|*.coffee;*.litcoffee|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"CSS (*.css)|*.css|"
|
|
|
|
"Fortran (*.f9*, *.f, *.for)|*.f9*;*.f,*.for|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Haskell (*.hs,*.lhs,*.las)|*.hs;*.lhs;*.las|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"HTML/XHTML (*.html, *.htm)|*.htm*|"
|
|
|
|
"Java (*.java)|*.java|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"JavaScript (*.js,*.json,*.ts)|*.js;*.json;*.ts|"
|
|
|
|
"Lisp (*.lsp,*.lisp)|*.lsp;*.lisp|"
|
|
|
|
"Lua (*.lua)|*.lua|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Makefile |Makefile;makefile.*;MAKEFILE;configure.*;*.mak|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Markdown (*.md,*.markdown)|*.md;*.markdown|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Perl (*.pl, *.cgi)|*.pl;*.pm;*.cgi;*.pod|"
|
|
|
|
"PHP (*.php)|*.php|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Python (*.py,*.pyw)|*.py;*.pyw|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Ruby (*.rb)|*.rb|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Rust (*.rs)|*.rs|"
|
|
|
|
"Shell (*.sh, *.bsh)|*.sh;*.bsh|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"SQL (*.sql)|*.sql|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Text (*.txt)|*.txt|"
|
|
|
|
"Yaml (.yml,*.yaml)| *.yml;*.yaml";
|
2015-04-09 17:16:28 -04:00
|
|
|
|
|
|
|
const wxString TYRO_FILE_SAVE_WILDCARDS =
|
2015-04-22 16:57:10 -04:00
|
|
|
"All files (*.*)|*|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Batch (*.bat, *.cmd, *.nt)|*.bat;*.cmd,*.nt|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Caml (*.ml,*.mli,*.sml,*.thy)|*.ml;*.mli;*.sml;*.thy|"
|
|
|
|
"Cmake (*.cmake) |*.cmake|"
|
|
|
|
"C/C++ (*.c,*.cpp,*.h)|*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma;*.cp|"
|
|
|
|
"Coffeescript (*.coffee)|*.coffee;*.litcoffee|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"CSS (*.css)|*.css|"
|
|
|
|
"Fortran (*.f9*, *.f, *.for)|*.f9*;*.f,*.for|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Haskell (*.hs,*.lhs,*.las)|*.hs;*.lhs;*.las|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"HTML/XHTML (*.html, *.htm)|*.htm*|"
|
|
|
|
"Java (*.java)|*.java|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"JavaScript (*.js,*.json,*.ts)|*.js;*.json;*.ts|"
|
|
|
|
"Lisp (*.lsp,*.lisp)|*.lsp;*.lisp|"
|
|
|
|
"Lua (*.lua)|*.lua|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Makefile |Makefile;makefile.*;MAKEFILE;configure.*;*.mak|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Markdown (*.md,*.markdown)|*.md;*.markdown|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Perl (*.pl, *.cgi)|*.pl;*.pm;*.cgi;*.pod|"
|
|
|
|
"PHP (*.php)|*.php|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Python (*.py,*.pyw)|*.py;*.pyw|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"Ruby (*.rb)|*.rb|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Rust (*.rs)|*.rs|"
|
|
|
|
"Shell (*.sh, *.bsh)|*.sh;*.bsh|"
|
2015-04-22 10:09:43 -04:00
|
|
|
"SQL (*.sql)|*.sql|"
|
2015-04-22 16:57:10 -04:00
|
|
|
"Text (*.txt)|*.txt|"
|
|
|
|
"Yaml (.yml,*.yaml)| *.yml;*.yaml";
|
2015-04-09 17:16:28 -04:00
|
|
|
|
|
|
|
#endif /* DEFINITIONS_H */
|
|
|
|
|