Contains application's entry point. More...
#include <april/april.h>#include <QString>#include <QTranslator>#include <QDir>#include <QApplication>#include <QMessageBox>#include <QSettings>#include <iostream>#include <argtable2.h>#include <april/aprillibrary.h>#include <april/AprilDream/gui/mw.h>#include <libbbb/2/doevents.h>Macros | |
| #define | a__help ((struct arg_lit *)argtable[ARG_HELP]) |
| #define | a__ver ((struct arg_lit *)argtable[ARG_VER]) |
| #define | a__init ((struct arg_file *)argtable[ARG_INIT_FILES]) |
| #define | a__end ((struct arg_end *)argtable[ARG_END]) |
| #define | APRILDREAM_NAME "AprilDream" |
| #define | LANG_FILE_PREFIX APRILDREAM_NAME "_" |
| #define | LANG_FILE_SUFFIX ".qm" |
| #define | LANG_FILE(loc) (LANG_FILE_PREFIX + loc + LANG_FILE_SUFFIX) |
Enumerations | |
| enum | ArgsTable { ARG_HELP = 0, ARG_VER, ARG_COMMANDS, ARG_CMDFILE, ARG_INIT_FILES, ARG_END, ARG_MAX, ARG_HELP = 0, ARG_VER, ARG_INIT_FILES, ARG_END, ARG_MAX } |
| components of the arguments table More... | |
Functions | |
| void | translatable (void) |
| load proper language file based on application location and settings | |
| int | mainInit (int argc, char *argv[]) |
| initialisation method for the application | |
| void | mainEnd (void) |
| ending function for the application | |
| int | main (int argc, char *argv[]) |
| application entry point | |
Variables | |
| Gui::MW * | mw = NULL |
| the one and only main window | |
Contains application's entry point.
| #define a__init ((struct arg_file *)argtable[ARG_INIT_FILES]) |
easy access to argtable members
| #define APRILDREAM_NAME "AprilDream" |
application macros
| #define LANG_FILE | ( | loc | ) | (LANG_FILE_PREFIX + loc + LANG_FILE_SUFFIX) |
application macros
| #define LANG_FILE_PREFIX APRILDREAM_NAME "_" |
application macros
| #define LANG_FILE_SUFFIX ".qm" |
application macros
| enum ArgsTable |
components of the arguments table