OpenASIP
2.0
|
#include <ResultDialog.hh>
Public Member Functions | |
ResultDialog (wxWindow *parent, std::vector< std::string > output, const std::string &title, const std::string &module="") | |
virtual | ~ResultDialog () |
Private Types | |
enum | { ID_RESULT, ID_BUTTON_OPEN } |
Private Member Functions | |
ResultDialog (const ResultDialog &) | |
Copying not allowed. More... | |
ResultDialog | operator= (const ResultDialog &) |
Assignment not allowed. More... | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
void | setTexts () |
virtual bool | TransferDataToWindow () |
void | onOpen (wxCommandEvent &event) |
Private Attributes | |
wxTextCtrl * | result_ |
Result window pointer. More... | |
std::vector< std::string > | output_ |
Output of compilation. More... | |
std::string | module_ |
Module which was compiled or empty string, if all modules were compiled. More... | |
Dialog that shows operation build results.
Definition at line 44 of file ResultDialog.hh.
|
private |
ResultDialog::ResultDialog | ( | wxWindow * | parent, |
std::vector< std::string > | output, | ||
const std::string & | title, | ||
const std::string & | module = "" |
||
) |
Constructor.
parent | Parent window. |
Definition at line 60 of file ResultDialog.cc.
References WxConversion::toWxString().
|
virtual |
Destructor.
Definition at line 85 of file ResultDialog.cc.
References DialogPosition::DIALOG_RESULT, and DialogPosition::setPosition().
|
private |
Copying not allowed.
|
private |
Creates the contents of the dialog.
NOTE! This function was generated by wxDesigner.
parent | Parent window. |
call_fit | If true fits the contents inside the dialog. |
set_sizer | If true, sets the main sizer as contents of dialog. |
Definition at line 161 of file ResultDialog.cc.
References ID_BUTTON_OPEN, and ID_RESULT.
|
private |
Handles the event when Open button is pushed.
Definition at line 126 of file ResultDialog.cc.
References FileSystem::fileExists(), OSEdTextGenerator::instance(), module_, options, Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_ERROR_NO_EDITOR, and OSEdTextGenerator::TXT_ERROR_OPEN.
|
private |
Assignment not allowed.
|
private |
Set texts to widgets.
Definition at line 96 of file ResultDialog.cc.
References ID_BUTTON_OPEN, OSEdTextGenerator::instance(), GUITextGenerator::instance(), WidgetTools::setLabel(), GUITextGenerator::TXT_BUTTON_OK, and OSEdTextGenerator::TXT_BUTTON_OPEN.
|
privatevirtual |
Transfer data to window.
Definition at line 115 of file ResultDialog.cc.
References output_, result_, and WxConversion::toWxString().
|
private |
Module which was compiled or empty string, if all modules were compiled.
Definition at line 78 of file ResultDialog.hh.
Referenced by onOpen().
|
private |
Output of compilation.
Definition at line 75 of file ResultDialog.hh.
Referenced by TransferDataToWindow().
|
private |
Result window pointer.
Definition at line 73 of file ResultDialog.hh.
Referenced by TransferDataToWindow().