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 Class Reference

Collaboration diagram for Preferences:
Collaboration graph
[legend]

List of all members.

Public Types

enum  FontObject { LogFontObject = 0, RegsFontObject = 1, PswFontObject = 2, CommandFontObject = 3 }
enum  general { NumberOfLines = 17, 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, MipsAsGauge = 13, PswMode = 14, SplitLog = 15,
  AutosaveLog = 16
}
enum  Views {
  ViewGR32 = 0x80, ViewCR32 = 0x40, ViewFR32 = 0x20, ViewAR32 = 0x10,
  ViewGR64 = 0x08, ViewCR64 = 0x04, ViewFR64 = 0x02, ViewPsw = 0x01
}

Public Member Functions

bool autosaveLog ()
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 mipsAsGauge ()
Psw::PswMode pswMode ()
bool regs (Views v)
void setAutosaveLog (bool)
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 setMipsAsGauge (bool gauge)
void setPswMode (Psw::PswMode mode)
void setRegs (Views v, bool view)
void setSplitLog (bool)
void setVolatileConfigDir (const std::string &logsDir)
bool splitLog ()
const std::string & version ()
void write ()

Static Public Member Functions

static PreferencesgetInstance ()

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 cAutosaveLog [] = "AutosaveLog="
static const char cFontCommand [] = "CommandFont="
static const char cFontPsw [] = "PswFont="
static const char cFontRegs [] = "RegistersFont="
static const char cMipsAsGauge [] = "MipgAsGauge="
static const char cPswMode [] = "PswMode="
static const char cSplitLog [] = "SplitLog="
QString mPath
std::vector< std::string > mPrefs
int mView
std::string mVolatileConfigDir

Static Private Attributes

static const char cFontLog [] = "LogFont="
static Preferencesinstance = NULL
static const char * sFileName = "HercStudio.pref"
static const char * sKeywords []

Detailed Description

Definition at line 229 of file Preferences.h.


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

Generated by  Doxygen 1.6.0   Back to index