#include <sailcutqt.h>
Public Member Functions | |
| CSailApp (int &argc, char **argv) | |
| void | loadTranslation (const QString locale) |
| void | readPrefs () |
| void | writePrefs () |
Static Public Member Functions | |
| static QUrl | findHandbook (const QString locale) |
Public Attributes | |
| CPrefs | prefs |
Protected Attributes | |
| QString | prefsfile |
| QTranslator * | transQt |
| QTranslator * | transApp |
Definition at line 38 of file sailcutqt.h.
| CSailApp::CSailApp | ( | int & | argc, | |
| char ** | argv | |||
| ) |
Creates an new Sailcut application.
| argc | ||
| argv |
Definition at line 35 of file sailcutqt.cpp.
| QUrl CSailApp::findHandbook | ( | const QString | locale | ) | [static] |
Tries to locate the Sailcut Handbook.
Definition at line 50 of file sailcutqt.cpp.
Referenced by CFormMain::CFormMain(), and CFormMain::slotLanguage().
| void CSailApp::loadTranslation | ( | const QString | locale | ) |
Loads translation strings for a given language.
Definition at line 84 of file sailcutqt.cpp.
References transApp, and transQt.
Referenced by CFormMain::CFormMain(), and CFormMain::slotLanguage().
| void CSailApp::readPrefs | ( | ) |
Try to read the user's preferences
Definition at line 115 of file sailcutqt.cpp.
| void CSailApp::writePrefs | ( | ) |
Try to write the user's preferences.
Definition at line 132 of file sailcutqt.cpp.
the user's preferences
Definition at line 49 of file sailcutqt.h.
Referenced by readPrefs(), and writePrefs().
QString CSailApp::prefsfile [protected] |
the file in which the preferences are stored
Definition at line 53 of file sailcutqt.h.
Referenced by CSailApp(), readPrefs(), and writePrefs().
QTranslator* CSailApp::transQt [protected] |
translator for Qt's messages
Definition at line 56 of file sailcutqt.h.
Referenced by CSailApp(), and loadTranslation().
QTranslator* CSailApp::transApp [protected] |
transator for Sailcut's messages
Definition at line 58 of file sailcutqt.h.
Referenced by CSailApp(), and loadTranslation().
1.5.6