2015-04-09 17:16:28 -04:00
|
|
|
/**
|
|
|
|
* Miscellaneous Program-specific definitions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DEFINITIONS_H
|
|
|
|
#define DEFINITIONS_H
|
|
|
|
|
2015-04-20 16:35:51 -04:00
|
|
|
enum {
|
|
|
|
myFILE_MENU,
|
|
|
|
myEDIT_MENU,
|
|
|
|
myVIEW_MENU,
|
|
|
|
myHELP_MENU
|
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
const wxString APP_VERSION = "0.0.1";
|
2015-04-16 17:03:27 -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-04-10 15:11:15 -04:00
|
|
|
// EditPane file extension to lexer mapping
|
|
|
|
typedef map<string, int> StringConstMap;
|
|
|
|
|
2015-04-09 17:16:28 -04:00
|
|
|
const wxString TYRO_FILE_OPEN_WILDCARDS =
|
2015-04-13 16:48:41 -04:00
|
|
|
_T("All files (*.*)|*.*|")
|
2015-04-09 17:16:28 -04:00
|
|
|
_T("Bash (*.sh, *.bsh) |*.sh;*.bsh|")
|
|
|
|
_T("Batch (*.bat, *.cmd, *.nt)|*.bat;*.cmd,*.nt|")
|
|
|
|
_T("C/C++ (*.c,*.cpp,*.h)| *.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma;*.cp |")
|
|
|
|
_T("CSS (*.css)|*.css|")
|
|
|
|
_T("Fortran (*.f9*, *.f, *.for)|*.f9*;*.f,*.for|")
|
|
|
|
_T("HTML/XHTML (*.html, *.htm)|*.htm*|")
|
|
|
|
_T("Java (*.java)|*.java|")
|
|
|
|
_T("JavaScript(*.js)|*.js|")
|
|
|
|
_T("Makefile |Makefile;makefile.*;MAKEFILE;configure.*;*.mak|")
|
|
|
|
_T("Pascal (*.pas, *.inc, *.pp)|*.pas;*.inc;*.pp|")
|
|
|
|
_T("Perl (*.pl, *.cgi)|*.pl;*.pm;*.cgi;*.pod|")
|
|
|
|
_T("PHP (*.php)|*.php|")
|
|
|
|
_T("Ruby (*.rb)|*.rb|")
|
|
|
|
_T("SQL (*.sql)|*.sql|")
|
|
|
|
_T("TCL (*.tcl)|*.tcl|")
|
2015-04-13 16:48:41 -04:00
|
|
|
_T("Text (*.txt)|*.txt");
|
2015-04-09 17:16:28 -04:00
|
|
|
|
|
|
|
const wxString TYRO_FILE_SAVE_WILDCARDS =
|
2015-04-16 17:03:27 -04:00
|
|
|
_T("All files (*.*)|*.*|")
|
|
|
|
_T("Bash (*.sh, *.bsh) |*.sh;*.bsh|")
|
|
|
|
_T("Batch (*.bat, *.cmd, *.nt)|*.bat;*.cmd,*.nt|")
|
|
|
|
_T("C/C++ (*.c,*.cpp,*.h)| *.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma;*.cp |")
|
2015-04-09 17:16:28 -04:00
|
|
|
_T("CSS (*.css)|*.css|")
|
|
|
|
_T("Fortran (*.f9*, *.f, *.for)|*.f9*;*.f,*.for|")
|
2015-04-16 17:03:27 -04:00
|
|
|
_T("HTML/XHTML (*.html, *.htm)|*.htm*|")
|
|
|
|
_T("Java (*.java)|*.java|")
|
|
|
|
_T("JavaScript(*.js)|*.js|")
|
|
|
|
_T("Makefile |Makefile;makefile.*;MAKEFILE;configure.*;*.mak|")
|
2015-04-09 17:16:28 -04:00
|
|
|
_T("Pascal (*.pas, *.inc, *.pp)|*.pas;*.inc;*.pp|")
|
2015-04-16 17:03:27 -04:00
|
|
|
_T("Perl (*.pl, *.cgi)|*.pl;*.pm;*.cgi;*.pod|")
|
|
|
|
_T("PHP (*.php)|*.php|")
|
2015-04-09 17:16:28 -04:00
|
|
|
_T("Ruby (*.rb)|*.rb|")
|
2015-04-16 17:03:27 -04:00
|
|
|
_T("SQL (*.sql)|*.sql|")
|
2015-04-09 17:16:28 -04:00
|
|
|
_T("TCL (*.tcl)|*.tcl|")
|
2015-04-16 17:03:27 -04:00
|
|
|
_T("Text (*.txt)|*.txt");
|
2015-04-09 17:16:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* DEFINITIONS_H */
|
|
|
|
|