|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Generic table panel, which also contains all meta UI elements. More...
#include <tableeditpanel.hpp>
Public Member Functions | |
| 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 () | |
Public Attributes | |
| TableViewer * | grid |
Protected Attributes | |
| wxTextCtrl * | m_commentField |
| wxTextCtrl * | m_sourceField |
| wxBoxSizer * | vsizer |
| wxBoxSizer * | hsizer |
| wxStaticText * | m_lastSaveText |
| bool | finished |
| NumeReTerminal * | m_terminal |
Generic table panel, which also contains all meta UI elements.
Definition at line 34 of file tableeditpanel.hpp.
| TablePanel::TablePanel | ( | wxFrame * | parent, |
| wxWindowID | id, | ||
| wxStatusBar * | statusbar, | ||
| bool | readOnly = true |
||
| ) |
Constructor for the generic table panel.
| parent | wxFrame* |
| id | wxWindowID |
| statusbar | wxStatusBar* |
| readOnly | bool |
Definition at line 47 of file tableeditpanel.cpp.
References _guilang, and Language::get().
| TablePanel::DECLARE_EVENT_TABLE | ( | ) |
| std::string TablePanel::getComment | ( | ) | const |
Returns the comment listed in the documentation field.
Definition at line 100 of file tableeditpanel.cpp.
References m_commentField.
Referenced by TableViewer::GetData(), and TableViewer::GetDataCopy().
| wxFrame * TablePanel::getFrame | ( | ) |
Returns a pointer to the parent frame.
Definition at line 134 of file tableeditpanel.cpp.
Referenced by TableViewer::createMenuBar().
| wxMenuBar * TablePanel::getMenuBar | ( | ) |
Returns a pointer to the menu bar of the parent frame. If no menu bar exists, a new one is created.
Definition at line 114 of file tableeditpanel.cpp.
Referenced by TableViewer::createMenuBar(), TableViewer::SetData(), and TableViewer::SetTableReadOnly().
|
inline |
Definition at line 52 of file tableeditpanel.hpp.
References m_terminal.
Referenced by TableViewer::reloadTable(), and TableViewer::saveTable().
| void TablePanel::OnClose | ( | wxCloseEvent & | event | ) |
Event handler for the CLOSE event.
| event | wxCloseEvent& |
Definition at line 147 of file tableeditpanel.cpp.
References TableViewer::finalize(), finished, and grid.
|
inline |
Definition at line 51 of file tableeditpanel.hpp.
References m_terminal.
Referenced by NumeReWindow::editTable(), and NumeReWindow::openTable().
| void TablePanel::update | ( | const NumeRe::TableMetaData & | meta | ) |
Update the panel with the passed table meta data.
| meta | const NumeRe::TableMetaData& |
Definition at line 85 of file tableeditpanel.cpp.
References _guilang, NumeRe::TableMetaData::comment, Language::get(), GET_WITH_TEXT, NumeRe::TableMetaData::lastSavedTime, m_commentField, m_lastSaveText, m_sourceField, NumeRe::TableMetaData::source, and toString().
Referenced by TableViewer::SetData().
|
protected |
Definition at line 42 of file tableeditpanel.hpp.
Referenced by TableEditPanel::OnButtonCancel(), TableEditPanel::OnButtonOk(), OnClose(), and TableEditPanel::OnClose().
| TableViewer* TablePanel::grid |
Definition at line 47 of file tableeditpanel.hpp.
Referenced by NumeReWindow::editTable(), TableEditPanel::OnButtonCancel(), TableEditPanel::OnButtonOk(), OnClose(), TableEditPanel::OnClose(), and NumeReWindow::openTable().
|
protected |
Definition at line 40 of file tableeditpanel.hpp.
|
protected |
Definition at line 37 of file tableeditpanel.hpp.
Referenced by getComment(), and update().
|
protected |
Definition at line 41 of file tableeditpanel.hpp.
Referenced by update().
|
protected |
Definition at line 38 of file tableeditpanel.hpp.
Referenced by update().
|
protected |
Definition at line 44 of file tableeditpanel.hpp.
Referenced by GetTerminal(), TableEditPanel::OnButtonCancel(), TableEditPanel::OnButtonOk(), TableEditPanel::OnClose(), and SetTerminal().
|
protected |
Definition at line 39 of file tableeditpanel.hpp.
Referenced by TableEditPanel::TableEditPanel().