april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
aprildream-main.cc File Reference

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::MWmw = NULL
 the one and only main window

Detailed Description

Contains application's entry point.

Date
March 2013
Author
TNick

Macro Definition Documentation

#define a__end   ((struct arg_end *)argtable[ARG_END])

easy access to argtable members

#define a__help   ((struct arg_lit *)argtable[ARG_HELP])

easy access to argtable members

#define a__init   ((struct arg_file *)argtable[ARG_INIT_FILES])

easy access to argtable members

#define a__ver   ((struct arg_lit *)argtable[ARG_VER])

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

Enumeration Type Documentation

enum ArgsTable

components of the arguments table

Enumerator:
ARG_HELP 

present help

ARG_VER 

present version

ARG_COMMANDS 

commands to execute then exit

ARG_CMDFILE 

execute commands in file then exit

ARG_INIT_FILES 

initial files

ARG_END 

end marker

ARG_MAX 

error checking

ARG_HELP 

present help

ARG_VER 

present version

ARG_INIT_FILES 

initial files

ARG_END 

end marker

ARG_MAX 

error checking