ALBA
albaGUIApplicationSettings.h
Go to the documentation of this file.
1/*=========================================================================
2 Program: ALBA (Agile Library for Biomedical Applications)
3 Module: albaGUIApplicationSettings
4 Authors: Paolo Quadrani - Nicola Vanella
5
6 Copyright (c) BIC
7 All rights reserved. See Copyright.txt or
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12=========================================================================*/
13
14#ifndef __albaGUIApplicationSettings_H__
15#define __albaGUIApplicationSettings_H__
16
17#include "albaGUISettings.h"
18
19//----------------------------------------------------------------------------
20// forward reference
21//----------------------------------------------------------------------------
22
23//----------------------------------------------------------------------------
24// albaGUIApplicationSettings :
25//----------------------------------------------------------------------------
37{
38public:
40 albaGUIApplicationSettings(albaObserver *Listener, const albaString &label = _("Application"));
43
46 {
47 ID_LOG_TO_FILE = MINID,
51 };
52
54 void OnEvent(albaEventBase *alba_event);
55
57 bool GetLogToFileStatus() {return m_LogToFile != 0;};
58
60 void SetLogFileStatus(int log_status);
61
63 void SetAutoSave(int autoSave);
64
66 albaString &GetLogFolder() {return m_LogFolder;};
67
69 void SetLogFolder(albaString log_folder);
70
72 bool GetWarnUserFlag() {return m_WarnUserFlag != 0;};
73
75 void EnableLogDirChoices(){m_EnableLogDirChoices = true;};
77 void DisableLogDirChoices(){m_EnableLogDirChoices = false;};
78
79 bool IsAutoSaveOn() { return m_AutoSaveProject !=0; };
80 int *GetAutoSave() { return &m_AutoSaveProject; };
81
82protected:
84 void CreateGui();
85
88
91
92 // Log variables
95
97
99
101};
102#endif
MINID
Definition: albaDecl.h:420
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Class Name: albaGUIApplicationSettings.
albaString & GetLogFolder()
Return the folder in which store the log files.
void InitializeSettings()
Initialize the application settings.
void DisableLogDirChoices()
Disable the possibility to choose log directory.
void SetLogFileStatus(int log_status)
Set the log status flag.
void EnableItems()
Used to enable/disable items according to the current widgets state.
bool GetLogToFileStatus()
Return true if Log To File is enabled.
void EnableLogDirChoices()
Enable the possibility to choose log directory.
albaGUIApplicationSettings(albaObserver *Listener, const albaString &label=_("Application"))
constructor .
void CreateGui()
Create the GUI for the setting panel.
albaString m_LogFolder
Flag used to store the log folder.
bool GetWarnUserFlag()
Return the status of the WarnUser flag.
void SetAutoSave(int autoSave)
Enable/Disable AutoSave Project.
int m_WarnUserFlag
Warn user flag on not supported undo operations.
int m_LogToFile
Flag used to store the On-Off state of log to file mechanism.
void OnEvent(albaEventBase *alba_event)
Answer to the messages coming from interface.
~albaGUIApplicationSettings()
destructor .
void SetLogFolder(albaString log_folder)
Set a folder name for the log file.
class name: albaGUISettings base class for more complex specified classes regarding the setting of ap...
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaString - performs common string operations on c-strings.
Definition: albaString.h:43