20#ifndef VARIABLEVIEWER_HPP
21#define VARIABLEVIEWER_HPP
23#include "../controls/treelistctrl.h"
50 wxTreeItemId
AppendVariable(wxTreeItemId rootNode, std::string sVar);
58 void OnShowTable(
const wxString& table,
const wxString& tableDisplayName);
75 void UpdateVariables(
const std::vector<std::string>& vVarList,
size_t nNumerics,
size_t nStrings,
size_t nTables,
size_t nClusters,
size_t nArguments = 0,
size_t nGlobals = 0);
This class is the actual NumeRe main frame. The application's logic is implemented here.
VariableViewer(wxWindow *parent, NumeReWindow *mainWin, int fieldsize=300, bool debugMode=false)
Constructor.
void OnSaveTable(const wxString &table)
This member function saves the selected table.
void setDebuggerMode(bool mode=true)
This member function creates or removes unneeded tree root items and handles the debugger mode.
void OnEditTable(const wxString &table)
This member function displays the selected table for editing.
void OnRightClick(wxTreeEvent &event)
This member function creates the pop-up menu in the var viewer case (it does nothing in debugger mode...
void UpdateVariables(const std::vector< std::string > &vVarList, size_t nNumerics, size_t nStrings, size_t nTables, size_t nClusters, size_t nArguments=0, size_t nGlobals=0)
This member function is used to update the variable list, which is displayed by this control.
void OnRemoveTable(const wxString &table)
This member function removes the selected table.
NumeReWindow * mainWindow
void OnRenameTable(const wxString &table)
This member function displays a text entry dialog to choose a new name for the selected table.
void ExpandAll()
This member function expands all nodes, which contain child nodes.
wxString GetInternalName(wxTreeItemId id)
Returns the internal variable name of the selected variable.
void ClearTree()
A simple helper function to clean the tree.
void OnSaveasTable(const wxString &table)
This member function displays a text entry dialog to choose the file name for the selected table,...
bool checkSpecialVals(const std::string &sVar)
This member functions checks for special variable names, to highlight them (not used in debug mode).
bool checkPresence(const std::string &sVar)
This member function checks, whether a variable was already part of the previous variable set (only u...
void OnCopyValue(const wxString &value)
Copies the selected text to the clip board.
wxTreeItemId AppendVariable(wxTreeItemId rootNode, std::string sVar)
This member function splits the passed variable at tabulator characters and adds its contents to the ...
wxTreeItemId argumentRoot
void OnNewTable()
This member function displays a text entry dialog to enter the new table names and sends the correspo...
void OnDoubleClick(wxTreeEvent &event)
This event handler displays the selected table.
std::vector< std::string > vLastVarSet
void HandleDebugActions(const std::vector< std::string > &vVarList)
This member function handles every task, which is specific to the debug mode after a variable update.
void OnMenuEvent(wxCommandEvent &event)
This member function handles the menu events created from the popup menu and redirects the control to...
void OnShowTable(const wxString &table, const wxString &tableDisplayName)
This member function displays the selected table.