Logo Search packages:      
Sourcecode: herculesstudio version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

Preferences_1_1 Class Reference

Collaboration diagram for Preferences_1_1:
Collaboration graph
[legend]

List of all members.

Public Types

enum  FontObject { LogFontObject = 0, RegsFontObject = 1, PswFontObject = 2, CommandFontObject = 3 }
enum  general { NumberOfLines = 13, PREF_LINE_LENGTH = 300 }
enum  keys {
  HerculesDir = 0, ConfigurationDir = 1, LogsDir = 2, Font = 3,
  FontSize = 4, FontVariation = 5, LogTimestamp = 6, RegsViews = 7,
  Version = 8, LogFont = 9, RegsFont = 10, PswFont = 11,
  CommandFont = 12
}
enum  Views {
  ViewGR32 = 0x80, ViewCR32 = 0x40, ViewFR32 = 0x20, ViewAR32 = 0x10,
  ViewGR64 = 0x08, ViewCR64 = 0x04, ViewFR64 = 0x02, ViewPsw = 0x01
}

Public Member Functions

const std::string & configDir ()
bool fontIsBold (FontObject fontObject)
bool fontIsItalic (FontObject fontObject)
std::string fontName (FontObject fontObject)
int fontSize (FontObject fontObject)
std::string & hercDir ()
std::string & logsDir ()
bool logTimestamp ()
bool regs (Views v)
void setBold (FontObject fontObject, bool bold)
void setConfigDir (const std::string &logsDir)
void setFontName (FontObject fontObject, const std::string &fontName)
void setFontSize (FontObject fontObject, int variation)
void setHercDir (const std::string &hercDir)
void setItalic (FontObject fontObject, bool italic)
void setLogsDir (const std::string &logsDir)
void setLogTimestamp (bool isTrue)
void setRegs (Views v, bool view)
void setVolatileConfigDir (const std::string &logsDir)
const std::string & version ()
void write ()

Static Public Member Functions

static Preferences_1_1getInstance ()

Private Member Functions

void assertConfDir ()
keys fontObjectToIndex (FontObject fontObject)
QString getFileName ()
std::string getValue (char *line, const char *keyword)
const std::string & getVersion ()
void readPref ()

Private Attributes

static const char cFontCommand []
static const char cFontPsw []
static const char cFontRegs []
std::string mPath
std::vector< std::string > mPrefs
int mView
std::string mVolatileConfigDir

Static Private Attributes

static const char cFontLog []
static Preferences_1_1instance
static const char * sFileName
static const char * sKeywords []

Detailed Description

Definition at line 120 of file Preferences.h.


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

Generated by  Doxygen 1.6.0   Back to index