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

Collaboration diagram for Preferences_1_0:
Collaboration graph
[legend]

List of all members.

Public Types

enum  general { NumberOfLines = 8 }
enum  keys {
  HerculesDir = 0, ConfigurationDir = 1, LogsDir = 2, Font = 3,
  FontSize = 4, FontVariation = 5, LogTimestamp = 6, RegsViews = 7
}
enum  VariationMasks { Bold = 128, Italic = 64 }
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 ()
bool fontIsItalic ()
std::string & fontName ()
int fontSize ()
int fontVariation ()
std::string & hercDir ()
std::string & logsDir ()
bool logTimestamp ()
bool regs (Views v)
void setConfigDir (const std::string &logsDir)
void setFontName (const std::string &fontName)
void setFontSize (int variation)
void setFontVariation (int variation)
void setHercDir (const std::string &hercDir)
void setLogsDir (const std::string &logsDir)
void setLogTimestamp (bool isTrue)
void setRegs (Views v, bool view)
void setVolatileConfigDir (const std::string &logsDir)
void write ()

Static Public Member Functions

static Preferences_1_0getInstance ()

Private Member Functions

void assertConfDir ()
QString getFileName ()
std::string getValue (char *line, const char *keyword)
void readPref ()

Private Attributes

std::string mPath
std::vector< std::string > mPrefs
int mView
std::string mVolatileConfigDir

Static Private Attributes

static Preferences_1_0instance = NULL
static const char * sFileName = "HercStudio.pref"
static const char * sKeywords []

Detailed Description

Definition at line 37 of file Preferences.h.


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

Generated by  Doxygen 1.6.0   Back to index