OpenASIP
2.0
|
#include <AddModuleDialog.hh>
Public Member Functions | |
AddModuleDialog (wxWindow *parent, std::string path) | |
virtual | ~AddModuleDialog () |
std::string | name () const |
Private Types | |
enum | { ID_TEXT, ID_MODULE_NAME } |
Private Member Functions | |
AddModuleDialog (const AddModuleDialog &) | |
Copying not allowed. More... | |
AddModuleDialog & | operator= (const AddModuleDialog &) |
Assignment not allowed. More... | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
void | onOk (wxCommandEvent &event) |
void | setTexts () |
Private Attributes | |
std::string | path_ |
Path in which module is added. More... | |
wxString | name_ |
Name of the module. More... | |
Dialog for adding new modules.
Definition at line 42 of file AddModuleDialog.hh.
|
private |
AddModuleDialog::AddModuleDialog | ( | wxWindow * | parent, |
std::string | path | ||
) |
|
virtual |
Destructor.
Definition at line 78 of file AddModuleDialog.cc.
References DialogPosition::DIALOG_ADD_MODULE, 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 the contents of the dialog. |
Definition at line 171 of file AddModuleDialog.cc.
References ID_MODULE_NAME, and ID_TEXT.
string AddModuleDialog::name | ( | ) | const |
Returns the name of the added module.
Definition at line 158 of file AddModuleDialog.cc.
References name_, and WxConversion::toString().
Referenced by OSEdAddModuleCmd::Do().
|
private |
Handles the event when OK button is pushed.
Definition at line 113 of file AddModuleDialog.cc.
References OSEdTextGenerator::instance(), NullOperationModule::instance(), OperationContainer::module(), name_, path_, Texts::TextGenerator::text(), WxConversion::toString(), WxConversion::toWxString(), OSEdTextGenerator::TXT_ERROR_MOD_NAME, OSEdTextGenerator::TXT_ERROR_MODULE_EXISTS, and OSEdTextGenerator::TXT_ERROR_NO_NAME.
|
private |
Assignment not allowed.
|
private |
Set texts to widgets.
Definition at line 89 of file AddModuleDialog.cc.
References ID_TEXT, OSEdTextGenerator::instance(), GUITextGenerator::instance(), WidgetTools::setLabel(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_ADD_MODULE_DIALOG_TITLE, GUITextGenerator::TXT_BUTTON_CANCEL, GUITextGenerator::TXT_BUTTON_OK, and OSEdTextGenerator::TXT_LABEL_MODULE_NAME.
|
private |
Name of the module.
Definition at line 70 of file AddModuleDialog.hh.
|
private |
Path in which module is added.
Definition at line 68 of file AddModuleDialog.hh.
Referenced by onOk().