|
ALBA
|
#include <albaGUIApplicationSettings.h>


Public Types | |
| enum | APP_SETTINGS_WIDGET_ID { ID_LOG_TO_FILE = MINID , ID_LOG_DIR , ID_WARN_UNDO , ID_AUTOSAVE } |
Public Member Functions | |
| albaGUIApplicationSettings (albaObserver *Listener, const albaString &label=_("Application")) | |
| ~albaGUIApplicationSettings () | |
| void | OnEvent (albaEventBase *alba_event) |
| bool | GetLogToFileStatus () |
| void | SetLogFileStatus (int log_status) |
| void | SetAutoSave (int autoSave) |
| albaString & | GetLogFolder () |
| void | SetLogFolder (albaString log_folder) |
| bool | GetWarnUserFlag () |
| void | EnableLogDirChoices () |
| void | DisableLogDirChoices () |
| bool | IsAutoSaveOn () |
| int * | GetAutoSave () |
Public Member Functions inherited from albaGUISettings | |
| albaGUISettings (albaObserver *Listener, const albaString &label=_("Settings")) | |
| ~albaGUISettings () | |
| virtual void | OnEvent (albaEventBase *alba_event) |
| void | SetListener (albaObserver *Listener) |
| albaGUI * | GetGui () |
| const char * | GetLabel () |
Public Member Functions inherited from albaObserver | |
| albaObserver () | |
| virtual | ~albaObserver () |
| virtual void | OnEvent (albaEventBase *e)=0 |
Protected Member Functions | |
| void | CreateGui () |
| void | InitializeSettings () |
| void | EnableItems () |
| virtual void | CreateGui () |
| virtual void | InitializeSettings () |
Protected Attributes | |
| int | m_LogToFile |
| albaString | m_LogFolder |
| int | m_WarnUserFlag |
| bool | m_EnableLogDirChoices |
| int | m_AutoSaveProject |
Protected Attributes inherited from albaGUISettings | |
| albaGUI * | m_Gui |
| albaString | m_Label |
| wxConfig * | m_Config |
| albaObserver * | m_Listener |
Class Name: albaGUIApplicationSettings.
Class that contains several application options like:
Definition at line 36 of file albaGUIApplicationSettings.h.
GUI IDs.
| Enumerator | |
|---|---|
| ID_LOG_TO_FILE | |
| ID_LOG_DIR | |
| ID_WARN_UNDO | |
| ID_AUTOSAVE | |
Definition at line 45 of file albaGUIApplicationSettings.h.
| albaGUIApplicationSettings::albaGUIApplicationSettings | ( | albaObserver * | Listener, |
| const albaString & | label = _("Application") |
||
| ) |
constructor .
| albaGUIApplicationSettings::~albaGUIApplicationSettings | ( | ) |
destructor .
|
virtual |
Answer to the messages coming from interface.
Reimplemented from albaGUISettings.
|
inline |
Return true if Log To File is enabled.
Definition at line 57 of file albaGUIApplicationSettings.h.
| void albaGUIApplicationSettings::SetLogFileStatus | ( | int | log_status | ) |
Set the log status flag.
| void albaGUIApplicationSettings::SetAutoSave | ( | int | autoSave | ) |
Enable/Disable AutoSave Project.
|
inline |
Return the folder in which store the log files.
Definition at line 66 of file albaGUIApplicationSettings.h.
| void albaGUIApplicationSettings::SetLogFolder | ( | albaString | log_folder | ) |
Set a folder name for the log file.
|
inline |
Return the status of the WarnUser flag.
Definition at line 72 of file albaGUIApplicationSettings.h.
|
inline |
Enable the possibility to choose log directory.
Definition at line 75 of file albaGUIApplicationSettings.h.
|
inline |
Disable the possibility to choose log directory.
Definition at line 77 of file albaGUIApplicationSettings.h.
|
inline |
Definition at line 79 of file albaGUIApplicationSettings.h.
|
inline |
Definition at line 80 of file albaGUIApplicationSettings.h.
|
protectedvirtual |
Create the GUI for the setting panel.
Reimplemented from albaGUISettings.
|
protectedvirtual |
Initialize the application settings.
Reimplemented from albaGUISettings.
|
protected |
Used to enable/disable items according to the current widgets state.
|
protected |
Flag used to store the On-Off state of log to file mechanism.
Definition at line 93 of file albaGUIApplicationSettings.h.
|
protected |
Flag used to store the log folder.
Definition at line 94 of file albaGUIApplicationSettings.h.
|
protected |
Warn user flag on not supported undo operations.
Definition at line 96 of file albaGUIApplicationSettings.h.
|
protected |
Definition at line 98 of file albaGUIApplicationSettings.h.
|
protected |
Definition at line 100 of file albaGUIApplicationSettings.h.