|
OpenASIP 2.2
|
#include <OSEdOptionsDialog.hh>


Public Member Functions | |
| OSEdOptionsDialog (wxWindow *parent) | |
| virtual | ~OSEdOptionsDialog () |
Private Types | |
| enum | { ID_TEXT = 10000 , ID_EDITOR , ID_BUTTON_SAVE , ID_BUTTON_BROWSE } |
Private Member Functions | |
| OSEdOptionsDialog (const OSEdOptionsDialog &) | |
| Copying not allowed. | |
| OSEdOptionsDialog & | operator= (const OSEdOptionsDialog &) |
| Assignment not allowed. | |
| wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
| void | setTexts () |
| bool | TransferDataToWindow () |
| void | onSave (wxCommandEvent &event) |
| void | onBrowse (wxCommandEvent &event) |
Private Attributes | |
| wxString | editor_ |
| The name of the editor. | |
Dialog for modifying OSEd options.
Definition at line 41 of file OSEdOptionsDialog.hh.
|
private |
Widget ids.
| Enumerator | |
|---|---|
| ID_TEXT | |
| ID_EDITOR | |
| ID_BUTTON_SAVE | |
| ID_BUTTON_BROWSE | |
Definition at line 61 of file OSEdOptionsDialog.hh.
| OSEdOptionsDialog::OSEdOptionsDialog | ( | wxWindow * | parent | ) |
Constructor.
| parent | The parent window. |
Definition at line 67 of file OSEdOptionsDialog.cc.
|
virtual |
Destructor.
Definition at line 83 of file OSEdOptionsDialog.cc.
References DialogPosition::DIALOG_OPTIONS, and DialogPosition::setPosition().

|
private |
Copying not allowed.
|
private |
Creates the contents of the dialog.
| parent | Parent window. |
| call_fit | If true fits the contents inside the dialog. |
| set_sizer | If true sets the main sizer as dialog contents. |
Definition at line 173 of file OSEdOptionsDialog.cc.
References ID_BUTTON_BROWSE, ID_BUTTON_SAVE, ID_EDITOR, and ID_TEXT.
|
private |
Handles the event when Browse button is pushed.
Definition at line 153 of file OSEdOptionsDialog.cc.
References FileSystem::directoryOfPath(), editor_, WxConversion::toString(), and WxConversion::toWxString().

|
private |
Handles the event when Save button is pushed.
Definition at line 132 of file OSEdOptionsDialog.cc.
References OSEdConstants::CONF_FILE_NAME, editor_, OSEdTextGenerator::instance(), options, OSEdOptionsSerializer::setDestinationFile(), Texts::TextGenerator::text(), WxConversion::toString(), WxConversion::toWxString(), OSEdTextGenerator::TXT_ERROR_CAN_NOT_SAVE, Environment::userConfPath(), and OSEdOptionsSerializer::writeState().

|
private |
Assignment not allowed.
|
private |
Set texts to all widgets.
Definition at line 94 of file OSEdOptionsDialog.cc.
References ID_BUTTON_BROWSE, ID_BUTTON_SAVE, ID_TEXT, GUITextGenerator::instance(), OSEdTextGenerator::instance(), WidgetTools::setLabel(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_BUTTON_BROWSE, GUITextGenerator::TXT_BUTTON_CANCEL, OSEdTextGenerator::TXT_BUTTON_SAVE, OSEdTextGenerator::TXT_LABEL_EDITOR, and OSEdTextGenerator::TXT_OPTIONS_DIALOG_TITLE.

|
private |
Transfers data to window.
Definition at line 122 of file OSEdOptionsDialog.cc.
References editor_, options, and WxConversion::toWxString().

|
private |
The name of the editor.
Definition at line 69 of file OSEdOptionsDialog.hh.
Referenced by onBrowse(), onSave(), and TransferDataToWindow().