|
OpenASIP 2.2
|
#include <SaveOptionsCmd.hh>


Public Member Functions | |
| SaveOptionsCmd () | |
| virtual | ~SaveOptionsCmd () |
| virtual bool | Do () |
| virtual int | id () const |
| virtual SaveOptionsCmd * | create () const |
| virtual std::string | icon () const |
| virtual std::string | shortName () const |
| virtual bool | isEnabled () |
Public Member Functions inherited from EditorCommand | |
| EditorCommand (std::string name, wxWindow *parent=NULL) | |
| virtual | ~EditorCommand () |
| void | setView (wxView *view) |
| wxView * | view () const |
Public Member Functions inherited from GUICommand | |
| GUICommand (std::string name, wxWindow *parent) | |
| virtual | ~GUICommand () |
| virtual bool | isChecked () const |
| void | setParentWindow (wxWindow *view) |
| wxWindow * | parentWindow () const |
| std::string | name () const |
wxCommand for saving editor options.
Creates and shows an OptionsDialog.
Definition at line 42 of file SaveOptionsCmd.hh.
| SaveOptionsCmd::SaveOptionsCmd | ( | ) |
The Constructor.
Definition at line 49 of file SaveOptionsCmd.cc.
Referenced by create().
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 98 of file SaveOptionsCmd.cc.
References SaveOptionsCmd().

|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 66 of file SaveOptionsCmd.cc.
References Exception::errorMessage(), options, GUICommand::parentWindow(), XMLSerializer::setDestinationFile(), WxConversion::toWxString(), Environment::userConfPath(), and GUIOptionsSerializer::writeOptions().

|
virtual |
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 117 of file SaveOptionsCmd.cc.
References ProDeConstants::CMD_ICON_SAVE_OPTIONS.
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 89 of file SaveOptionsCmd.cc.
References ProDeConstants::COMMAND_SAVE_OPTIONS.
|
virtual |
This command is enabled when the options have been modified.
Reimplemented from EditorCommand.
Definition at line 128 of file SaveOptionsCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 108 of file SaveOptionsCmd.cc.
References ProDeConstants::CMD_SNAME_SAVE_OPTIONS.