--- qsampler/trunk/src/qsamplerOptions.h 2007/11/20 16:48:04 1499 +++ qsampler/trunk/src/qsamplerOptions.h 2007/11/22 11:10:44 1509 @@ -39,79 +39,79 @@ { public: - // Constructor. - qsamplerOptions(); - // Default destructor. - ~qsamplerOptions(); - - // The settings object accessor. - QSettings& settings(); - - // Command line arguments parser. - bool parse_args(int argc, char **argv); - // Command line usage helper. - void print_usage(const char *arg0); - - // Startup supplied session file. - QString sSessionFile; - - // Server options... - QString sServerHost; - int iServerPort; - int iServerTimeout; - bool bServerStart; - QString sServerCmdLine; - int iStartDelay; - - // Display options... - QString sDisplayFont; - bool bDisplayEffect; - bool bAutoRefresh; - int iAutoRefreshTime; - int iMaxVolume; - QString sMessagesFont; - bool bMessagesLimit; - int iMessagesLimitLines; - bool bConfirmRemove; - bool bKeepOnTop; - bool bStdoutCapture; - bool bCompletePath; - bool bInstrumentNames; - - // View options... - bool bMenubar; - bool bToolbar; - bool bStatusbar; - bool bAutoArrange; - - // Default options... - QString sSessionDir; - QString sInstrumentDir; - QString sEngineName; - QString sAudioDriver; - QString sMidiDriver; + // Constructor. + qsamplerOptions(); + // Default destructor. + ~qsamplerOptions(); + + // The settings object accessor. + QSettings& settings(); + + // Command line arguments parser. + bool parse_args(int argc, char **argv); + // Command line usage helper. + void print_usage(const char *arg0); + + // Startup supplied session file. + QString sSessionFile; + + // Server options... + QString sServerHost; + int iServerPort; + int iServerTimeout; + bool bServerStart; + QString sServerCmdLine; + int iStartDelay; + + // Display options... + QString sDisplayFont; + bool bDisplayEffect; + bool bAutoRefresh; + int iAutoRefreshTime; + int iMaxVolume; + QString sMessagesFont; + bool bMessagesLimit; + int iMessagesLimitLines; + bool bConfirmRemove; + bool bKeepOnTop; + bool bStdoutCapture; + bool bCompletePath; + bool bInstrumentNames; + + // View options... + bool bMenubar; + bool bToolbar; + bool bStatusbar; + bool bAutoArrange; + + // Default options... + QString sSessionDir; + QString sInstrumentDir; + QString sEngineName; + QString sAudioDriver; + QString sMidiDriver; int iMidiMap; int iMidiBank; int iMidiProg; int iVolume; int iLoadMode; - // Recent file list. - int iMaxRecentFiles; - QStringList recentFiles; - - // Widget geometry persistence helper prototypes. - void saveWidgetGeometry(QWidget *pWidget); - void loadWidgetGeometry(QWidget *pWidget); - - // Combo box history persistence helper prototypes. - void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); - void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); + // Recent file list. + int iMaxRecentFiles; + QStringList recentFiles; + + // Widget geometry persistence helper prototypes. + void saveWidgetGeometry(QWidget *pWidget); + void loadWidgetGeometry(QWidget *pWidget); + + // Combo box history persistence helper prototypes. + void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); + void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); private: - // Settings member variables. - QSettings m_settings; + // Settings member variables. + QSettings m_settings; };