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

A table panel with editing functionalities. Creates APPLY and CANCEL buttons and provides their event handlers. More...

#include <tableeditpanel.hpp>

Inheritance diagram for TableEditPanel:
Collaboration diagram for TableEditPanel:

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

Additional Inherited Members

- Public Attributes inherited from TablePanel
TableViewergrid
 
- Protected Attributes inherited from TablePanel
wxTextCtrl * m_commentField
 
wxTextCtrl * m_sourceField
 
wxBoxSizer * vsizer
 
wxBoxSizer * hsizer
 
wxStaticText * m_lastSaveText
 
bool finished
 
NumeReTerminalm_terminal
 

Detailed Description

A table panel with editing functionalities. Creates APPLY and CANCEL buttons and provides their event handlers.

Definition at line 69 of file tableeditpanel.hpp.

Constructor & Destructor Documentation

◆ TableEditPanel()

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.

Parameters
parentwxFrame*
idwxWindowID
statusbarwxStatusBar*

Definition at line 173 of file tableeditpanel.cpp.

References _guilang, Language::get(), ID_TABLEEDIT_CANCEL, ID_TABLEEDIT_OK, and TablePanel::vsizer.

Here is the call graph for this function:

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

TableEditPanel::DECLARE_EVENT_TABLE ( )

◆ OnButtonCancel()

void TableEditPanel::OnButtonCancel ( wxCommandEvent &  event)

Event handler for the CANCEL button.

Parameters
eventwxCommandEvent&
Returns
void

Definition at line 211 of file tableeditpanel.cpp.

References NumeReTerminal::cancelTableEdit(), TableViewer::finalize(), TablePanel::finished, TablePanel::grid, and TablePanel::m_terminal.

Here is the call graph for this function:

◆ OnButtonOk()

void TableEditPanel::OnButtonOk ( wxCommandEvent &  event)

Event handler for the OK button.

Parameters
eventwxCommandEvent&
Returns
void

Definition at line 195 of file tableeditpanel.cpp.

References TableViewer::finalize(), TablePanel::finished, TableViewer::GetData(), TablePanel::grid, TablePanel::m_terminal, and NumeReTerminal::passEditedTable().

Here is the call graph for this function:

◆ OnClose()

void TableEditPanel::OnClose ( wxCloseEvent &  event)

Event handler for the CLOSE event.

Parameters
eventwxCloseEvent&
Returns
void

Definition at line 227 of file tableeditpanel.cpp.

References NumeReTerminal::cancelTableEdit(), TableViewer::finalize(), TablePanel::finished, TablePanel::grid, and TablePanel::m_terminal.

Here is the call graph for this function:

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