NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class is an adaption of the wxGrid class to present the tabular data in NumeRe's memory and enabling copy-pasting of tabular data to an from NumeRe. More...
#include <tableviewer.hpp>
Public Types | |
enum | TableViewerIDs { ID_MENU_SAVE = 15000 , ID_MENU_SAVE_AS , ID_MENU_INSERT_ROW , ID_MENU_INSERT_COL , ID_MENU_INSERT_CELL , ID_MENU_REMOVE_ROW , ID_MENU_REMOVE_COL , ID_MENU_REMOVE_CELL , ID_MENU_COPY , ID_MENU_PASTE , ID_MENU_PASTE_HERE , ID_MENU_RELOAD , ID_MENU_CHANGE_COL_TYPE , ID_MENU_CVS } |
Public Member Functions | |
TableViewer (wxWindow *parent, wxWindowID id, wxStatusBar *statusbar, TablePanel *parentPanel, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxWANTS_CHARS, const wxString &name=wxGridNameStr) | |
Constructor. More... | |
void | SetData (NumeRe::Container< std::string > &_stringTable, const std::string &sName, const std::string &sIntName) |
This member function is the data setter for string and cluster tables. More... | |
void | SetData (NumeRe::Table &_table, const std::string &sName, const std::string &sIntName) |
This member function is the data setter function. It will create an internal GridNumeReTable object, which will provide the data for the grid. More... | |
NumeRe::Table | GetData () |
This member function returns the internal NumeRe::Table from the data provider object. More... | |
NumeRe::Table | GetDataCopy () |
This member function returns a safe copy of the internal NumeRe::Table. More... | |
void | SetTableReadOnly (bool isReadOnly=true) |
This member function declares the table to be read-only and enables the context menu entries, if the table is set to be not read-only. More... | |
void | SetDefaultSize (size_t rows=1, size_t cols=1) __attribute__((deprecated)) |
This member function creates an empty table of some size. More... | |
void | OnLabelRightClick (wxGridEvent &event) |
This member function displays the context menu for labels. More... | |
void | OnCellRightClick (wxGridEvent &event) |
This member function displays the context menu for cells. More... | |
void | OnMenu (wxCommandEvent &event) |
This member function is the menu command event handler function. It will redirect the control to the specified functions. More... | |
void | insertElement (int id) |
This member function processes the insertion of new empty cells, columns or rows. More... | |
void | removeElement (int id) |
This member function processes the removing of cells, columns or rows. More... | |
void | saveTable (bool saveAs=false) |
Saves the currently displayed table directly to the selected file. More... | |
void | reloadTable () |
Reloads the currently displayed table data from the kernel. More... | |
void | changeColType () |
Enables the switching of the column types of the selected columns. More... | |
void | finalize () |
Ensure that the editors are all closed. More... | |
wxString | getSelectedValues () |
Returns the values of all selected cells as a string list. More... | |
size_t | GetHeight () |
size_t | GetWidth () |
DECLARE_EVENT_TABLE () | |
Private Member Functions | |
void | layoutGrid () |
This private member function will layout the initial grid after the data table was set. More... | |
void | OnKeyDown (wxKeyEvent &event) |
This member function tracks the entered keys and processes a keybord navigation. More... | |
void | OnChar (wxKeyEvent &event) |
This member function appends necessary columns or rows, if the user entered a character in the last column or the last row. More... | |
void | OnEnter (wxMouseEvent &event) |
This member function is the event handler for entering this window. It will activate the focus and bring it to the front. More... | |
void | OnCellChange (wxGridEvent &event) |
This member function processes the values entered in the table and updates the frame after entering (due to a possible created new headline row). More... | |
void | OnCellSelect (wxGridEvent &event) |
This member function will highlight the cursor position in the grid and update the status bar correspondingly. More... | |
void | OnCellRangeSelect (wxGridRangeSelectEvent &event) |
This member function will calculate the simple statistics if the user selected a range of cells in the table. More... | |
void | OnLabelDoubleClick (wxGridEvent &event) |
This member function will autosize the columns, if the user double clicked on their labels. More... | |
void | updateFrame () |
This member function is called every time the grid itself changes to draw the frame colours. More... | |
void | deleteSelection () |
This member function will delete the contents of the selected cells by setting them to NaN. More... | |
int | findLastElement (int nCol) |
This member function will search the last non-empty cell in the selected column. More... | |
bool | isNumerical (const std::string &sCell) |
This is a simple helper function to determine, whether the entered cell value is a numerical value. More... | |
bool | isEmptyCol (int col) |
This member function will determine, whether the selected column is completely empty or not. More... | |
wxString | replaceCtrlChars (const wxString &sStr) |
This member function is a simple helper to replace underscores with whitespaces. More... | |
void | copyContents () |
This member function will copy the contents of the selected cells to the clipboard. More... | |
void | pasteContents (bool useCursor=false) |
This member function handles the case that the user tries to paste text contents, which may be be converted into a table. More... | |
void | applyConditionalCellColourScheme () |
Apply a conditional cell colour scheme to the selected cells. More... | |
void | UpdateColumnAlignment (int col) |
Changes the alignment of a whole column to reflect its internal type. More... | |
std::vector< wxString > | getLinesFromPaste (const wxString &data) |
This member function transformes the data obtained by the clipboard into a table- like layout. More... | |
void | replaceDecimalSign (wxString &text) |
This member function replaces the german comma decimal sign with the dot used in anglo-american notation. More... | |
void | replaceTabSign (wxString &text) |
This member function replaces the tabulator character with whitespaces. More... | |
void | createZeroElementTable () |
This member function creates a zero- element table to visualize empty tables (or non-existent ones). More... | |
wxGridCellCoords | CreateEmptyGridSpace (int rows, int headrows, int cols, bool useCursor=false) |
This member function creates the needed space in the grid, which is needed to paste data. More... | |
mu::value_type | CellToCmplx (int row, int col) |
Return the cell value as value_type. More... | |
double | calculateMin (const wxGridCellCoordsContainer &coords) |
This member function calculates the minimal value of the selected cells. More... | |
double | calculateMax (const wxGridCellCoordsContainer &coords) |
This member function calculates the maximal value of the selected cells. More... | |
mu::value_type | calculateSum (const wxGridCellCoordsContainer &coords) |
This member function calculates the sum of the selected cells. More... | |
mu::value_type | calculateAvg (const wxGridCellCoordsContainer &coords) |
This member function calculates the average of the selected cells. More... | |
void | updateStatusBar (const wxGridCellCoordsContainer &coords, wxGridCellCoords *cursor=nullptr) |
This member function updates the status bar of the enclosing ViewerFrame. More... | |
void | createMenuBar () |
Creates a menu bar in the top frame. More... | |
wxString | copyCell (int row, int col) |
This member function returns the contents of the selected cells and replaces whitespaces with underscores on-the-fly. More... | |
Private Attributes | |
size_t | nHeight |
size_t | nWidth |
size_t | nFirstNumRow |
bool | readOnly |
bool | isGridNumeReTable |
wxGridCellCoords | lastCursorPosition |
wxGridCellCoordsArray | selectedCells |
std::vector< int > | m_currentColTypes |
std::string | m_displayName |
std::string | m_intName |
TablePanel * | m_parentPanel |
wxStatusBar * | m_statusBar |
wxMenu | m_popUpMenu |
wxGridCellCoords | m_lastRightClick |
This class is an adaption of the wxGrid class to present the tabular data in NumeRe's memory and enabling copy-pasting of tabular data to an from NumeRe.
Definition at line 41 of file tableviewer.hpp.
Definition at line 126 of file tableviewer.hpp.
TableViewer::TableViewer | ( | wxWindow * | parent, |
wxWindowID | id, | ||
wxStatusBar * | statusbar, | ||
TablePanel * | parentPanel, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxWANTS_CHARS , |
||
const wxString & | name = wxGridNameStr |
||
) |
Constructor.
parent | wxWindow* |
id | wxWindowID |
statusbar | wxStatusBar* |
parentPanel | TablePanel* |
pos | const wxPoint& |
size | const wxSize& |
style | long |
name | const wxString& |
Definition at line 66 of file tableviewer.cpp.
References _guilang, Language::get(), and ID_MENU_COPY.
|
private |
Apply a conditional cell colour scheme to the selected cells.
Definition at line 759 of file tableviewer.cpp.
References calculateMax(), calculateMin(), wxGridCellCoordsContainer::columnsSelected(), wxGridCellCoordsContainer::contains(), wxGridCellCoordsContainer::getExtent(), CellValueShaderDialog::getShader(), wxGridCellCoordsContainer::isBlock(), wxGridCellsExtent::m_bottomright, m_currentColTypes, wxGridCellsExtent::m_topleft, nFirstNumRow, and TableColumn::TYPE_LOGICAL.
Referenced by OnMenu().
|
private |
This member function calculates the average of the selected cells.
coords | const wxGridCellCoordsContainer& |
Definition at line 1122 of file tableviewer.cpp.
References CellToCmplx(), wxGridCellCoordsContainer::contains(), wxGridCellCoordsContainer::getExtent(), isGridNumeReTable, mu::isnan(), wxGridCellsExtent::m_bottomright, and wxGridCellsExtent::m_topleft.
Referenced by updateStatusBar().
|
private |
This member function calculates the maximal value of the selected cells.
coords | const wxGridCellCoordsContainer& |
Definition at line 1058 of file tableviewer.cpp.
References CellToCmplx(), wxGridCellCoordsContainer::contains(), wxGridCellCoordsContainer::getExtent(), isGridNumeReTable, mu::isnan(), wxGridCellsExtent::m_bottomright, wxGridCellsExtent::m_topleft, and max.
Referenced by applyConditionalCellColourScheme(), and updateStatusBar().
|
private |
This member function calculates the minimal value of the selected cells.
coords | const wxGridCellCoordsContainer& |
Definition at line 1026 of file tableviewer.cpp.
References CellToCmplx(), wxGridCellCoordsContainer::contains(), wxGridCellCoordsContainer::getExtent(), isGridNumeReTable, mu::isnan(), wxGridCellsExtent::m_bottomright, wxGridCellsExtent::m_topleft, and min.
Referenced by applyConditionalCellColourScheme(), and updateStatusBar().
|
private |
This member function calculates the sum of the selected cells.
coords | const wxGridCellCoordsContainer& |
Definition at line 1090 of file tableviewer.cpp.
References CellToCmplx(), wxGridCellCoordsContainer::contains(), wxGridCellCoordsContainer::getExtent(), isGridNumeReTable, mu::isnan(), wxGridCellsExtent::m_bottomright, and wxGridCellsExtent::m_topleft.
Referenced by updateStatusBar().
|
private |
Return the cell value as value_type.
row | int |
col | int |
Definition at line 1006 of file tableviewer.cpp.
References isGridNumeReTable, isNumerical(), and StrToCmplx().
Referenced by calculateAvg(), calculateMax(), calculateMin(), and calculateSum().
void TableViewer::changeColType | ( | ) |
Enables the switching of the column types of the selected columns.
Definition at line 1975 of file tableviewer.cpp.
References _guilang, wxGridCellCoordsContainer::contains(), Language::get(), wxGridCellCoordsContainer::getExtent(), TableColumn::getTypesAsString(), isGridNumeReTable, wxGridCellsExtent::m_bottomright, wxGridCellsExtent::m_topleft, NumeRe::Table::setColumnType(), TableColumn::stringToType(), and UpdateColumnAlignment().
Referenced by OnMenu().
|
private |
This member function returns the contents of the selected cells and replaces whitespaces with underscores on-the-fly.
row | int |
col | int |
Definition at line 1254 of file tableviewer.cpp.
Referenced by copyContents().
|
private |
This member function will copy the contents of the selected cells to the clipboard.
Definition at line 559 of file tableviewer.cpp.
References copyCell().
Referenced by OnKeyDown(), and OnMenu().
|
private |
This member function creates the needed space in the grid, which is needed to paste data.
rows | int |
headrows | int |
cols | int |
useCursor | bool |
Definition at line 915 of file tableviewer.cpp.
References isEmptyCol(), m_lastRightClick, nFirstNumRow, and updateFrame().
Referenced by pasteContents().
|
private |
Creates a menu bar in the top frame.
Definition at line 1198 of file tableviewer.cpp.
References _guilang, Language::get(), TablePanel::getFrame(), TablePanel::getMenuBar(), ID_MENU_CHANGE_COL_TYPE, ID_MENU_COPY, ID_MENU_CVS, ID_MENU_INSERT_CELL, ID_MENU_INSERT_COL, ID_MENU_INSERT_ROW, ID_MENU_PASTE, ID_MENU_PASTE_HERE, ID_MENU_RELOAD, ID_MENU_REMOVE_CELL, ID_MENU_REMOVE_COL, ID_MENU_REMOVE_ROW, ID_MENU_SAVE, ID_MENU_SAVE_AS, m_parentPanel, and OnMenu().
|
private |
This member function creates a zero- element table to visualize empty tables (or non-existent ones).
Definition at line 1333 of file tableviewer.cpp.
References isGridNumeReTable, layoutGrid(), nFirstNumRow, and updateStatusBar().
Referenced by SetData().
TableViewer::DECLARE_EVENT_TABLE | ( | ) |
|
private |
This member function will delete the contents of the selected cells by setting them to NaN.
Definition at line 454 of file tableviewer.cpp.
References wxGridCellCoordsContainer::contains(), wxGridCellCoordsContainer::getExtent(), wxGridCellsExtent::m_bottomright, and wxGridCellsExtent::m_topleft.
Referenced by OnKeyDown().
void TableViewer::finalize | ( | ) |
Ensure that the editors are all closed.
Definition at line 2039 of file tableviewer.cpp.
Referenced by TableEditPanel::OnButtonCancel(), TableEditPanel::OnButtonOk(), TablePanel::OnClose(), and TableEditPanel::OnClose().
|
private |
This member function will search the last non-empty cell in the selected column.
nCol | int |
Definition at line 390 of file tableviewer.cpp.
Referenced by insertElement(), and removeElement().
NumeRe::Table TableViewer::GetData | ( | ) |
This member function returns the internal NumeRe::Table from the data provider object.
Definition at line 2133 of file tableviewer.cpp.
References TablePanel::getComment(), m_parentPanel, readOnly, and NumeRe::Table::setComment().
Referenced by TableEditPanel::OnButtonOk().
NumeRe::Table TableViewer::GetDataCopy | ( | ) |
This member function returns a safe copy of the internal NumeRe::Table.
Definition at line 2151 of file tableviewer.cpp.
References TablePanel::getComment(), m_parentPanel, readOnly, and NumeRe::Table::setComment().
Referenced by CustomWindow::getItemParameters().
|
inline |
Definition at line 123 of file tableviewer.hpp.
References nHeight.
Referenced by NumeReWindow::editTable(), and NumeReWindow::openTable().
|
private |
This member function transformes the data obtained by the clipboard into a table- like layout.
data | const wxString& |
Definition at line 1355 of file tableviewer.cpp.
References isNumerical(), replaceDecimalSign(), and replaceTabSign().
Referenced by pasteContents().
wxString TableViewer::getSelectedValues | ( | ) |
Returns the values of all selected cells as a string list.
Definition at line 2052 of file tableviewer.cpp.
Referenced by CustomWindow::getItemParameters().
|
inline |
Definition at line 124 of file tableviewer.hpp.
References nWidth.
Referenced by NumeReWindow::editTable(), and NumeReWindow::openTable().
void TableViewer::insertElement | ( | int | id | ) |
This member function processes the insertion of new empty cells, columns or rows.
id | int |
Definition at line 1793 of file tableviewer.cpp.
References findLastElement(), ID_MENU_INSERT_COL, ID_MENU_INSERT_ROW, m_lastRightClick, nFirstNumRow, and updateFrame().
Referenced by OnMenu().
|
private |
This member function will determine, whether the selected column is completely empty or not.
col | int |
Definition at line 514 of file tableviewer.cpp.
References nFirstNumRow.
Referenced by CreateEmptyGridSpace().
|
private |
This is a simple helper function to determine, whether the entered cell value is a numerical value.
sCell | const std::string& |
Definition at line 498 of file tableviewer.cpp.
Referenced by CellToCmplx(), getLinesFromPaste(), pasteContents(), and replaceDecimalSign().
|
private |
This private member function will layout the initial grid after the data table was set.
Definition at line 101 of file tableviewer.cpp.
References GridNumeReTable::getColumnTypes(), isGridNumeReTable, m_currentColTypes, nFirstNumRow, nHeight, nWidth, readOnly, TableColumn::TYPE_CATEGORICAL, TableColumn::TYPE_LOGICAL, and TableColumn::TYPE_STRING.
Referenced by createZeroElementTable(), and SetData().
|
private |
This member function processes the values entered in the table and updates the frame after entering (due to a possible created new headline row).
event | wxGridEvent& |
Definition at line 289 of file tableviewer.cpp.
References UpdateColumnAlignment().
|
private |
This member function will calculate the simple statistics if the user selected a range of cells in the table.
event | wxGridRangeSelectEvent& |
Definition at line 326 of file tableviewer.cpp.
References selectedCells, and updateStatusBar().
void TableViewer::OnCellRightClick | ( | wxGridEvent & | event | ) |
This member function displays the context menu for cells.
event | wxGridEvent& |
Definition at line 1655 of file tableviewer.cpp.
References ID_MENU_INSERT_ROW, ID_MENU_PASTE_HERE, ID_MENU_REMOVE_CELL, m_lastRightClick, m_popUpMenu, and readOnly.
|
private |
This member function will highlight the cursor position in the grid and update the status bar correspondingly.
event | wxGridEvent& |
Definition at line 308 of file tableviewer.cpp.
References updateStatusBar().
|
private |
This member function appends necessary columns or rows, if the user entered a character in the last column or the last row.
event | wxKeyEvent& |
Definition at line 240 of file tableviewer.cpp.
References readOnly, and updateFrame().
|
private |
This member function is the event handler for entering this window. It will activate the focus and bring it to the front.
event | wxMouseEvent& |
Definition at line 272 of file tableviewer.cpp.
|
private |
This member function tracks the entered keys and processes a keybord navigation.
event | wxKeyEvent& |
Definition at line 197 of file tableviewer.cpp.
References copyContents(), deleteSelection(), pasteContents(), and readOnly.
|
private |
This member function will autosize the columns, if the user double clicked on their labels.
event | wxGridEvent& |
Definition at line 375 of file tableviewer.cpp.
void TableViewer::OnLabelRightClick | ( | wxGridEvent & | event | ) |
This member function displays the context menu for labels.
event | wxGridEvent& |
Definition at line 1687 of file tableviewer.cpp.
References ID_MENU_INSERT_CELL, ID_MENU_INSERT_COL, ID_MENU_INSERT_ROW, ID_MENU_PASTE_HERE, ID_MENU_REMOVE_CELL, ID_MENU_REMOVE_COL, ID_MENU_REMOVE_ROW, m_lastRightClick, m_popUpMenu, and readOnly.
void TableViewer::OnMenu | ( | wxCommandEvent & | event | ) |
This member function is the menu command event handler function. It will redirect the control to the specified functions.
event | wxCommandEvent& |
Definition at line 1737 of file tableviewer.cpp.
References applyConditionalCellColourScheme(), changeColType(), copyContents(), ID_MENU_CHANGE_COL_TYPE, ID_MENU_COPY, ID_MENU_CVS, ID_MENU_INSERT_CELL, ID_MENU_INSERT_COL, ID_MENU_INSERT_ROW, ID_MENU_PASTE, ID_MENU_PASTE_HERE, ID_MENU_RELOAD, ID_MENU_REMOVE_CELL, ID_MENU_REMOVE_COL, ID_MENU_REMOVE_ROW, ID_MENU_SAVE, ID_MENU_SAVE_AS, insertElement(), m_lastRightClick, pasteContents(), reloadTable(), removeElement(), and saveTable().
Referenced by createMenuBar().
|
private |
This member function handles the case that the user tries to paste text contents, which may be be converted into a table.
useCursor | bool |
Definition at line 663 of file tableviewer.cpp.
References CreateEmptyGridSpace(), getLinesFromPaste(), and isNumerical().
Referenced by OnKeyDown(), and OnMenu().
void TableViewer::reloadTable | ( | ) |
Reloads the currently displayed table data from the kernel.
Definition at line 1948 of file tableviewer.cpp.
References NumeReTerminal::getStringTable(), NumeReTerminal::getTable(), TablePanel::GetTerminal(), isGridNumeReTable, m_displayName, m_intName, m_parentPanel, and SetData().
Referenced by OnMenu().
void TableViewer::removeElement | ( | int | id | ) |
This member function processes the removing of cells, columns or rows.
id | int |
Definition at line 1838 of file tableviewer.cpp.
References findLastElement(), ID_MENU_REMOVE_COL, ID_MENU_REMOVE_ROW, m_lastRightClick, nFirstNumRow, and updateFrame().
Referenced by OnMenu().
|
private |
This member function is a simple helper to replace underscores with whitespaces.
sStr | const wxString& |
Definition at line 538 of file tableviewer.cpp.
|
private |
This member function replaces the german comma decimal sign with the dot used in anglo-american notation.
text | wxString& |
Definition at line 1269 of file tableviewer.cpp.
References isNumerical().
Referenced by getLinesFromPaste().
|
private |
This member function replaces the tabulator character with whitespaces.
text | wxString& |
Definition at line 1295 of file tableviewer.cpp.
Referenced by getLinesFromPaste().
void TableViewer::saveTable | ( | bool | saveAs = false | ) |
Saves the currently displayed table directly to the selected file.
saveAs | bool |
Definition at line 1879 of file tableviewer.cpp.
References _guilang, NumeRe::TableMetaData::comment, Language::get(), NumeRe::Table::getCols(), NumeRe::getFileByType(), NumeRe::Table::getLines(), NumeRe::Table::getMetaData(), NumeReTerminal::getPathSettings(), NumeRe::Table::getTableData(), TablePanel::GetTerminal(), isGridNumeReTable, m_displayName, m_parentPanel, SAVEPATH, and NumeRe::NumeReDataFile::write().
Referenced by OnMenu().
void TableViewer::SetData | ( | NumeRe::Container< std::string > & | _stringTable, |
const std::string & | sName, | ||
const std::string & | sIntName | ||
) |
This member function is the data setter for string and cluster tables.
_stringTable | NumeRe::Container<std::string>& |
sName | const std::string& |
sIntName | const std::string& |
Definition at line 1459 of file tableviewer.cpp.
References _guilang, createZeroElementTable(), Language::get(), NumeRe::Container< T >::get(), NumeRe::Container< T >::getCols(), TablePanel::getMenuBar(), NumeRe::Container< T >::getRows(), ID_MENU_CHANGE_COL_TYPE, isGridNumeReTable, layoutGrid(), m_displayName, m_intName, m_parentPanel, nFirstNumRow, replaceControlCharacters(), toString(), and updateStatusBar().
Referenced by NumeReWindow::editTable(), CustomWindow::layoutChild(), NumeReWindow::openTable(), reloadTable(), and CustomWindow::setItemValue().
void TableViewer::SetData | ( | NumeRe::Table & | _table, |
const std::string & | sName, | ||
const std::string & | sIntName | ||
) |
This member function is the data setter function. It will create an internal GridNumeReTable object, which will provide the data for the grid.
_table | NumeRe::Table& |
sName | const std::string& |
Definition at line 1520 of file tableviewer.cpp.
References createZeroElementTable(), NumeRe::Table::getHeadCount(), NumeRe::Table::getLines(), NumeRe::Table::getMetaData(), NumeRe::Table::isEmpty(), isGridNumeReTable, layoutGrid(), m_displayName, m_intName, m_parentPanel, nFirstNumRow, TablePanel::update(), and updateStatusBar().
void TableViewer::SetDefaultSize | ( | size_t | rows = 1 , |
size_t | cols = 1 |
||
) |
This member function creates an empty table of some size.
rows | size_t |
cols | size_t |
Definition at line 1615 of file tableviewer.cpp.
References readOnly.
void TableViewer::SetTableReadOnly | ( | bool | isReadOnly = true | ) |
This member function declares the table to be read-only and enables the context menu entries, if the table is set to be not read-only.
isReadOnly | bool |
Definition at line 1557 of file tableviewer.cpp.
References _guilang, Language::get(), TablePanel::getMenuBar(), ID_MENU_INSERT_CELL, ID_MENU_INSERT_COL, ID_MENU_INSERT_ROW, ID_MENU_PASTE, ID_MENU_PASTE_HERE, ID_MENU_RELOAD, ID_MENU_REMOVE_CELL, ID_MENU_REMOVE_COL, ID_MENU_REMOVE_ROW, m_parentPanel, m_popUpMenu, and readOnly.
Referenced by CustomWindow::layoutChild().
|
private |
Changes the alignment of a whole column to reflect its internal type.
col | int |
Definition at line 840 of file tableviewer.cpp.
References GridNumeReTable::getColumnTypes(), isGridNumeReTable, m_currentColTypes, nFirstNumRow, TableColumn::TYPE_CATEGORICAL, TableColumn::TYPE_LOGICAL, and TableColumn::TYPE_STRING.
Referenced by changeColType(), and OnCellChange().
|
private |
This member function is called every time the grid itself changes to draw the frame colours.
Definition at line 410 of file tableviewer.cpp.
References FrameColor, HeadlineColor, HighlightColor, MAXIMAL_RENDERING_SIZE, and nFirstNumRow.
Referenced by CreateEmptyGridSpace(), insertElement(), OnChar(), and removeElement().
|
private |
This member function updates the status bar of the enclosing ViewerFrame.
topLeft | const wxGridCellCoords& |
bottomRight | const wxGridCellCoords& |
cursor | wxGridCellCoords* |
Definition at line 1163 of file tableviewer.cpp.
References calculateAvg(), calculateMax(), calculateMin(), calculateSum(), m_statusBar, STATUSBAR_PRECISION, and toString().
Referenced by createZeroElementTable(), OnCellRangeSelect(), OnCellSelect(), and SetData().
|
private |
Definition at line 48 of file tableviewer.hpp.
Referenced by calculateAvg(), calculateMax(), calculateMin(), calculateSum(), CellToCmplx(), changeColType(), createZeroElementTable(), layoutGrid(), reloadTable(), saveTable(), SetData(), and UpdateColumnAlignment().
|
private |
Definition at line 49 of file tableviewer.hpp.
|
private |
Definition at line 51 of file tableviewer.hpp.
Referenced by applyConditionalCellColourScheme(), layoutGrid(), and UpdateColumnAlignment().
|
private |
Definition at line 52 of file tableviewer.hpp.
Referenced by reloadTable(), saveTable(), and SetData().
|
private |
Definition at line 53 of file tableviewer.hpp.
Referenced by reloadTable(), and SetData().
|
private |
Definition at line 97 of file tableviewer.hpp.
Referenced by CreateEmptyGridSpace(), insertElement(), OnCellRightClick(), OnLabelRightClick(), OnMenu(), and removeElement().
|
private |
Definition at line 56 of file tableviewer.hpp.
Referenced by createMenuBar(), GetData(), GetDataCopy(), reloadTable(), saveTable(), SetData(), and SetTableReadOnly().
|
private |
Definition at line 96 of file tableviewer.hpp.
Referenced by OnCellRightClick(), OnLabelRightClick(), and SetTableReadOnly().
|
private |
Definition at line 57 of file tableviewer.hpp.
Referenced by updateStatusBar().
|
private |
Definition at line 46 of file tableviewer.hpp.
Referenced by applyConditionalCellColourScheme(), CreateEmptyGridSpace(), createZeroElementTable(), insertElement(), isEmptyCol(), layoutGrid(), removeElement(), SetData(), UpdateColumnAlignment(), and updateFrame().
|
private |
Definition at line 44 of file tableviewer.hpp.
Referenced by GetHeight(), and layoutGrid().
|
private |
Definition at line 45 of file tableviewer.hpp.
Referenced by GetWidth(), and layoutGrid().
|
private |
Definition at line 47 of file tableviewer.hpp.
Referenced by GetData(), GetDataCopy(), layoutGrid(), OnCellRightClick(), OnChar(), OnKeyDown(), OnLabelRightClick(), SetDefaultSize(), and SetTableReadOnly().
|
private |
Definition at line 50 of file tableviewer.hpp.
Referenced by OnCellRangeSelect().