NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
TablePanel Class Reference

Generic table panel, which also contains all meta UI elements. More...

#include <tableeditpanel.hpp>

Inheritance diagram for TablePanel:
Collaboration diagram for TablePanel:

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)
 
NumeReTerminalGetTerminal ()
 
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

TableViewergrid
 

Protected Attributes

wxTextCtrl * m_commentField
 
wxTextCtrl * m_sourceField
 
wxBoxSizer * vsizer
 
wxBoxSizer * hsizer
 
wxStaticText * m_lastSaveText
 
bool finished
 
NumeReTerminalm_terminal
 

Detailed Description

Generic table panel, which also contains all meta UI elements.

Definition at line 34 of file tableeditpanel.hpp.

Constructor & Destructor Documentation

◆ TablePanel()

TablePanel::TablePanel ( wxFrame *  parent,
wxWindowID  id,
wxStatusBar *  statusbar,
bool  readOnly = true 
)

Constructor for the generic table panel.

Parameters
parentwxFrame*
idwxWindowID
statusbarwxStatusBar*
readOnlybool

Definition at line 47 of file tableeditpanel.cpp.

References _guilang, and Language::get().

Here is the call graph for this function:

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

TablePanel::DECLARE_EVENT_TABLE ( )

◆ getComment()

std::string TablePanel::getComment ( ) const

Returns the comment listed in the documentation field.

Returns
std::string

Definition at line 100 of file tableeditpanel.cpp.

References m_commentField.

Referenced by TableViewer::GetData(), and TableViewer::GetDataCopy().

◆ getFrame()

wxFrame * TablePanel::getFrame ( )

Returns a pointer to the parent frame.

Returns
wxFrame*

Definition at line 134 of file tableeditpanel.cpp.

Referenced by TableViewer::createMenuBar().

◆ getMenuBar()

wxMenuBar * TablePanel::getMenuBar ( )

Returns a pointer to the menu bar of the parent frame. If no menu bar exists, a new one is created.

Returns
wxMenuBar*

Definition at line 114 of file tableeditpanel.cpp.

Referenced by TableViewer::createMenuBar(), TableViewer::SetData(), and TableViewer::SetTableReadOnly().

◆ GetTerminal()

NumeReTerminal * TablePanel::GetTerminal ( )
inline

Definition at line 52 of file tableeditpanel.hpp.

References m_terminal.

Referenced by TableViewer::reloadTable(), and TableViewer::saveTable().

◆ OnClose()

void TablePanel::OnClose ( wxCloseEvent &  event)

Event handler for the CLOSE event.

Parameters
eventwxCloseEvent&
Returns
void

Definition at line 147 of file tableeditpanel.cpp.

References TableViewer::finalize(), finished, and grid.

Here is the call graph for this function:

◆ SetTerminal()

void TablePanel::SetTerminal ( NumeReTerminal term)
inline

Definition at line 51 of file tableeditpanel.hpp.

References m_terminal.

Referenced by NumeReWindow::editTable(), and NumeReWindow::openTable().

◆ update()

void TablePanel::update ( const NumeRe::TableMetaData meta)

Update the panel with the passed table meta data.

Parameters
metaconst NumeRe::TableMetaData&
Returns
void

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().

Here is the call graph for this function:

Member Data Documentation

◆ finished

bool TablePanel::finished
protected

◆ grid

◆ hsizer

wxBoxSizer* TablePanel::hsizer
protected

Definition at line 40 of file tableeditpanel.hpp.

◆ m_commentField

wxTextCtrl* TablePanel::m_commentField
protected

Definition at line 37 of file tableeditpanel.hpp.

Referenced by getComment(), and update().

◆ m_lastSaveText

wxStaticText* TablePanel::m_lastSaveText
protected

Definition at line 41 of file tableeditpanel.hpp.

Referenced by update().

◆ m_sourceField

wxTextCtrl* TablePanel::m_sourceField
protected

Definition at line 38 of file tableeditpanel.hpp.

Referenced by update().

◆ m_terminal

◆ vsizer

wxBoxSizer* TablePanel::vsizer
protected

Definition at line 39 of file tableeditpanel.hpp.

Referenced by TableEditPanel::TableEditPanel().


The documentation for this class was generated from the following files: