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