OpenASIP
2.0
|
#include <MemoryDialog.hh>
Public Member Functions | |
MemoryDialog (wxWindow *window) | |
virtual | ~MemoryDialog () |
virtual void | handleEvent (OSEdInformer::EventId event) |
Public Member Functions inherited from OSEdListener | |
OSEdListener () | |
virtual | ~OSEdListener () |
Private Types | |
enum | { ID_BUTTON_CLOSE = 1000, ID_CONTROL_MEMORY } |
Private Member Functions | |
MemoryDialog (const MemoryDialog &) | |
Copying not allowed. More... | |
MemoryDialog & | operator= (const MemoryDialog &) |
Assignment not allowed. More... | |
wxSizer * | createContents (wxWindow *window, bool call_fit, bool set_sizer) |
void | setTexts () |
void | onClose (wxCommandEvent &) |
Private Attributes | |
MemoryControl * | memoryWindow_ |
Memory control of the dialog. More... | |
Dialog for monitoring the contents of the memory.
Definition at line 51 of file MemoryDialog.hh.
|
private |
Component ids.
Enumerator | |
---|---|
ID_BUTTON_CLOSE | |
ID_CONTROL_MEMORY |
Definition at line 71 of file MemoryDialog.hh.
MemoryDialog::MemoryDialog | ( | wxWindow * | window | ) |
Constructor.
window | Parent window. |
Definition at line 58 of file MemoryDialog.cc.
References OSEdInformer::EVENT_MEMORY, and OSEdInformer::registerListener().
|
virtual |
Destructor.
Definition at line 73 of file MemoryDialog.cc.
References DialogPosition::DIALOG_MEMORY, and DialogPosition::setPosition().
|
private |
Copying not allowed.
|
private |
Creates the contents of the MemoryDialog.
parent | Parent window. |
call_fit | If true, fits the contents inside the dialog. |
set_sizer | If true, sets the the main sizer as dialog contents. |
Definition at line 130 of file MemoryDialog.cc.
References ID_BUTTON_CLOSE, ID_CONTROL_MEMORY, OperationContainer::memory(), and memoryWindow_.
|
virtual |
Handles event when the contents of the memory might have changed.
Implements OSEdListener.
Definition at line 111 of file MemoryDialog.cc.
References OSEdInformer::EVENT_MEMORY, memoryWindow_, and MemoryControl::updateView().
|
private |
Handles the event when dialog is closed.
Definition at line 101 of file MemoryDialog.cc.
References OSEdInformer::EVENT_MEMORY, and OSEdInformer::unregisterListener().
|
private |
Assignment not allowed.
|
private |
Set texts to widgets.
Definition at line 84 of file MemoryDialog.cc.
References ID_BUTTON_CLOSE, OSEdTextGenerator::instance(), WidgetTools::setLabel(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_BUTTON_CLOSE, and OSEdTextGenerator::TXT_MEMORY_DIALOG_TITLE.
|
private |
Memory control of the dialog.
Definition at line 77 of file MemoryDialog.hh.
Referenced by createContents(), and handleEvent().