Go to the documentation of this file.
33 #ifndef TTA_GUI_OPTIONS_HH
34 #define TTA_GUI_OPTIONS_HH
124 const wxString& iconsPath);
164 typedef std::vector<KeyboardShortcut*>
KSTable;
static const std::string OSNAME_SEPARATOR
ObjectState name for separator.
static const std::string OSNAME_OPTIONS
ObjectState name for the options.
std::string name_
Name of the options.
int xPosition_
Default x position of left side of the application window.
KSTable::const_iterator ksIter_
Iterator used in firstShortcut and nextShortcut functions.
void deleteAllKeyboardShortcuts()
bool modified_
Indicates whether the options are modified or not.
std::vector< KeyboardShortcut * > KSTable
Table for keyboard shortcuts.
void setWindowSize(int width, int height)
void addToolbarButton(ToolbarButton *button)
ToolbarLayout toolbarLayout_
Layout of the toolbar.
virtual ObjectState * saveState() const
static const std::string OSKEY_POSITION
ObjectState attribute key for separator position.
static const std::string OSKEY_FULL_SCREEN
ObjectState attribute key for full screen feature.
@ ICON
Buttons contains only icon.
void deleteSeparator(int position)
int nextSeparator() const
static const std::string OSKEY_TOOLBAR_VISIBILITY
ObjectState attribute key for toolbar visibility.
static const std::string TOOLBAR_SEPARATOR
Toolbar separator name.
void setToolbarVisibility(bool visible)
void deleteAllToolbarButtons()
wxToolBar * createToolbar(wxWindow *parent, CommandRegistry ®istry, const wxString &iconsPath)
@ BOTH
Buttons contains text and icon.
KeyboardShortcut * keyboardShortcut(const std::string commandName) const
std::vector< int > SeparatorTable
Table for the toolbar separator positions.
std::vector< ToolbarButton * > TBTable
Table for toolbar buttons.
static const std::string OSKEY_Y_POS
ObjectState attribute key for window y position.
virtual void loadState(const ObjectState *state)
ToolbarLayout toolbarLayout() const
void setWindowPosition(int x, int y)
static const std::string OSKEY_WINDOW_HEIGHT
ObjectState attribute key for window height.
TBTable toolbarButtons_
Toolbar buttons.
KeyboardShortcut * firstShortcut() const
void addSeparator(int position)
static const std::string OSVALUE_ICON
ObjectState attribute value for icon layout.
static const std::string OSVALUE_BOTH
ObjectState attribute value for text & icon layout.
@ TEXT
Buttons contains only text.
std::string fileName() const
ToolbarButton * firstToolbarButton() const
TBTable::const_iterator tbIter_
Iterator used in firstToolbarButton and nextToolbarButton functions.
void setFileName(const std::string &fileName)
static const std::string OSKEY_X_POS
ObjectState attribute key for window x position.
void addKeyboardShortcut(KeyboardShortcut *shortcut)
void setToolbarLayout(ToolbarLayout layout)
virtual void validate() const
KSTable keyboardShortcuts_
Keyboard shortcuts.
int windowHeight_
Default height of the window.
ToolbarButton * nextToolbarButton() const
KeyboardShortcut * nextShortcut() const
void deleteKeyboardShortcut(KeyboardShortcut *shortcut)
static const std::string OSKEY_WINDOW_WIDTH
ObjectState attribute key for window width.
int firstSeparator() const
static const std::string OSVALUE_TEXT
ObjectState attribute value for text layout.
SeparatorTable toolbarSeparators_
Toolbar separators.
std::string fileName_
File name assigned to these options.
bool fullScreen_
If true, the application window will open in full screen mode.
void setFullScreen(bool fullScreen)
SeparatorTable::const_iterator separatorIter_
Iterator used in firstSeparator and nextSeparator functions.
static const std::string OSKEY_TOOLBAR_LAYOUT
ObjectState attribute key for toolbar layout.
bool toolbarVisibility() const
GUIOptions(std::string name)
void deleteToolbarButton(ToolbarButton *button)
int yPosition_
Default y position of the upper side of the application window.
bool toolbarVisibility_
If true, the toolbar is visible.
int windowWidth_
Default width of the window.