NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
A table panel with editing functionalities. Creates APPLY and CANCEL buttons and provides their event handlers. More...
#include <tableeditpanel.hpp>
Public Member Functions | |
TableEditPanel (wxFrame *parent, wxWindowID id, wxStatusBar *statusbar) | |
Constructor for the table edit panel, which creates also the buttons at the top of the window. More... | |
void | OnButtonOk (wxCommandEvent &event) |
Event handler for the OK button. More... | |
void | OnButtonCancel (wxCommandEvent &event) |
Event handler for the CANCEL button. More... | |
void | OnClose (wxCloseEvent &event) |
Event handler for the CLOSE event. More... | |
DECLARE_EVENT_TABLE () | |
Public Member Functions inherited from TablePanel | |
TablePanel (wxFrame *parent, wxWindowID id, wxStatusBar *statusbar, bool readOnly=true) | |
Constructor for the generic table panel. More... | |
void | update (const NumeRe::TableMetaData &meta) |
Update the panel with the passed table meta data. More... | |
void | SetTerminal (NumeReTerminal *term) |
NumeReTerminal * | GetTerminal () |
std::string | getComment () const |
Returns the comment listed in the documentation field. More... | |
wxMenuBar * | getMenuBar () |
Returns a pointer to the menu bar of the parent frame. If no menu bar exists, a new one is created. More... | |
wxFrame * | getFrame () |
Returns a pointer to the parent frame. More... | |
void | OnClose (wxCloseEvent &event) |
Event handler for the CLOSE event. More... | |
DECLARE_EVENT_TABLE () | |
Additional Inherited Members | |
Public Attributes inherited from TablePanel | |
TableViewer * | grid |
Protected Attributes inherited from TablePanel | |
wxTextCtrl * | m_commentField |
wxTextCtrl * | m_sourceField |
wxBoxSizer * | vsizer |
wxBoxSizer * | hsizer |
wxStaticText * | m_lastSaveText |
bool | finished |
NumeReTerminal * | m_terminal |
A table panel with editing functionalities. Creates APPLY and CANCEL buttons and provides their event handlers.
Definition at line 69 of file tableeditpanel.hpp.
TableEditPanel::TableEditPanel | ( | wxFrame * | parent, |
wxWindowID | id, | ||
wxStatusBar * | statusbar | ||
) |
Constructor for the table edit panel, which creates also the buttons at the top of the window.
parent | wxFrame* |
id | wxWindowID |
statusbar | wxStatusBar* |
Definition at line 173 of file tableeditpanel.cpp.
References _guilang, Language::get(), ID_TABLEEDIT_CANCEL, ID_TABLEEDIT_OK, and TablePanel::vsizer.
TableEditPanel::DECLARE_EVENT_TABLE | ( | ) |
void TableEditPanel::OnButtonCancel | ( | wxCommandEvent & | event | ) |
Event handler for the CANCEL button.
event | wxCommandEvent& |
Definition at line 211 of file tableeditpanel.cpp.
References NumeReTerminal::cancelTableEdit(), TableViewer::finalize(), TablePanel::finished, TablePanel::grid, and TablePanel::m_terminal.
void TableEditPanel::OnButtonOk | ( | wxCommandEvent & | event | ) |
Event handler for the OK button.
event | wxCommandEvent& |
Definition at line 195 of file tableeditpanel.cpp.
References TableViewer::finalize(), TablePanel::finished, TableViewer::GetData(), TablePanel::grid, TablePanel::m_terminal, and NumeReTerminal::passEditedTable().
void TableEditPanel::OnClose | ( | wxCloseEvent & | event | ) |
Event handler for the CLOSE event.
event | wxCloseEvent& |
Definition at line 227 of file tableeditpanel.cpp.
References NumeReTerminal::cancelTableEdit(), TableViewer::finalize(), TablePanel::finished, TablePanel::grid, and TablePanel::m_terminal.