Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TGridBasic Class Reference

The base class for each calculator submodule (grid/sheet). More...

#include <TCalculator.h>

Inheritance diagram for TGridBasic:

TGridData TGridDNA TGridLigation TGridProtein List of all members.

Public Member Functions

 TGridBasic (wxWindow *parent, int id=-1)
 Constructor.
virtual void recalc ()
 Recalculates the submodule.
virtual void OnCellChanged (wxGridEvent &event)
 Cell-has-changed event.
virtual void cleanup ()
 Reset the submodule.
virtual void gridSetEditable (int y, int x)
 Makes a cell editable.
virtual void gridSetEntry (int y, int x, wxString title, wxString value=_T("0"), wxString unit=_T(""))
 Sets a cell group.
virtual void gridSetValue (int y, int x, wxString value, wxString unit=_T(""))
 Sets a cell group.
virtual void print (int mode)
 Prints the submodule.
virtual double getDouble (int y, int x)
 Returns the value of a cell as a floating-point number.

Protected Attributes

bool calculating
 Are we currently (re)calculating?

Detailed Description

The base class for each calculator submodule (grid/sheet).


Constructor & Destructor Documentation

TGridBasic::TGridBasic wxWindow *  parent,
int  id = -1
 

Constructor.


Member Function Documentation

void TGridBasic::cleanup  )  [virtual]
 

Reset the submodule.

double TGridBasic::getDouble int  y,
int  x
[virtual]
 

Returns the value of a cell as a floating-point number.

void TGridBasic::gridSetEditable int  y,
int  x
[virtual]
 

Makes a cell editable.

void TGridBasic::gridSetEntry int  y,
int  x,
wxString  title,
wxString  value = _T("0"),
wxString  unit = _T("")
[virtual]
 

Sets a cell group.

void TGridBasic::gridSetValue int  y,
int  x,
wxString  value,
wxString  unit = _T("")
[virtual]
 

Sets a cell group.

void TGridBasic::OnCellChanged wxGridEvent &  event  )  [virtual]
 

Cell-has-changed event.

void TGridBasic::print int  mode  )  [virtual]
 

Prints the submodule.

void TGridBasic::recalc  )  [virtual]
 

Recalculates the submodule.

Reimplemented in TGridLigation, TGridDNA, TGridProtein, and TGridData.


Member Data Documentation

bool TGridBasic::calculating [protected]
 

Are we currently (re)calculating?


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:47 2006 for GENtle by  doxygen 1.4.1