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-06-12 16:50:27 -04:00
|
|
|
const wxString APP_VERSION = "0.9.1";
|
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
|
2015-05-27 11:37:02 -04:00
|
|
|
#ifdef __clang__
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
|
|
|
#endif
|
2015-05-15 16:55:18 -04:00
|
|
|
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-05-27 11:37:02 -04:00
|
|
|
#ifdef __clang__
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#endif
|
2015-05-15 16:55:18 -04:00
|
|
|
|
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-06-12 16:50:27 -04:00
|
|
|
// Font defaults
|
|
|
|
const int TYRO_DEFAULT_FONT_FAMILY = (int) wxFONTFAMILY_MODERN;
|
|
|
|
#ifdef __WXMAC__
|
|
|
|
const int TYRO_DEFAULT_FONT_SIZE = 14;
|
|
|
|
#else
|
|
|
|
const int TYRO_DEFAULT_FONT_SIZE = 10;
|
|
|
|
#endif
|
|
|
|
|
2015-05-27 11:37:02 -04:00
|
|
|
// Editor margins
|
|
|
|
enum myMargins
|
|
|
|
{
|
|
|
|
MARGIN_FOLD,
|
|
|
|
MARGIN_LINE_NUMBERS
|
|
|
|
};
|
|
|
|
|
2015-06-03 17:06:55 -04:00
|
|
|
// Status bar sections
|
|
|
|
enum myStatusBarSections {
|
|
|
|
STATUS_MESSAGES,
|
|
|
|
STATUS_CURSOR_LOCATION,
|
|
|
|
STATUS_CURRENT_LANGUAGE
|
|
|
|
};
|
|
|
|
|
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-26 15:46:55 -04:00
|
|
|
// Menu options for immediate file
|
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,
|
2015-05-26 15:46:55 -04:00
|
|
|
myID_LINE_WRAP,
|
|
|
|
|
|
|
|
// Preferences, to apply to all files
|
|
|
|
myID_PREFS_LINE_NUMBERS,
|
|
|
|
myID_PREFS_CODE_FOLDING,
|
2015-06-12 16:50:27 -04:00
|
|
|
myID_PREFS_IDENT_GUIDES,
|
|
|
|
myID_PREFS_FONT
|
2015-04-30 17:10:26 -04:00
|
|
|
};
|
|
|
|
|
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 */
|
|
|
|
|