CSailApp Class Reference

#include <sailcutqt.h>

List of all members.

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


Detailed Description

Class representing a Sailcut application.

Definition at line 38 of file sailcutqt.h.


Constructor & Destructor Documentation

CSailApp::CSailApp ( int &  argc,
char **  argv 
)

Creates an new Sailcut application.

Parameters:
argc 
argv 

Definition at line 35 of file sailcutqt.cpp.

References prefsfile, transApp, and transQt.


Member Function Documentation

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.

References prefs, and prefsfile.

void CSailApp::writePrefs (  ) 

Try to write the user's preferences.

Definition at line 132 of file sailcutqt.cpp.

References prefs, and prefsfile.


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6