bre20::ParamPage Class Reference

Base class for parameter pages. The main function is for all pages to have the multiplier editing capability with little work. More...

Inheritance diagram for bre20::ParamPage:

bre20::NGParam bre20::PM6Param bre20::VT0Param bre20::GhdPM6Param bre20::DevParam bre20::Pr3ITBParam List of all members.

Public Member Functions

 ParamPage ()
 basic. Try not to use this.
 ParamPage (RomRep::HondaEcu *ecu)
Object * getParent ()
void setParent (Object *p)
void setGridSize ()
 Calculates and sets the physical size of the grid.
bool addMultiplierRow (unsigned char values __gc[])
int getGridValue (int col, int row)
bool setGridValue (int col, int row, int val)
void anchorGrid ()

Static Public Member Functions

static int getBoxVal (TextBox *box)
static int getBoxVal (LabeledText *box)
static int getBoxVal (TextBox *box, int oldval, int min, int max)
static void setBoxVal (bre20::LabeledText *box, bre20::intGetFunction *getFn, bre20::intSetFunction *setFn, int min, int max)
static void setBoxVal (TextBox *box, bre20::intGetFunction *getFn, bre20::intSetFunction *setFn, int min, int max)

Public Attributes

__event EventHandler * CellChanged
 happens when the user changes a value in the multiplier grid

Protected Member Functions

void fillGrid ()
 fills the multiplier grid
virtual void onCellChanged (SimpleGrid::CellEvent *e)
 called when the user changes a value in the multiplier grid

Protected Attributes

Object * parent
SimpleGrid::Gridgrid
RomRep::HondaEcurom

Detailed Description

Base class for parameter pages. The main function is for all pages to have the multiplier editing capability with little work.


Constructor & Destructor Documentation

bre20::ParamPage::ParamPage  ) 
 

basic. Try not to use this.

bre20::ParamPage::ParamPage RomRep::HondaEcu ecu  ) 
 

Parameters:
ecu Takes the HondaEcu object so it can deal with the fuel multipliers and all other ROM changes the page is responsible for.


Member Function Documentation

bool bre20::ParamPage::addMultiplierRow unsigned char values  __gc[]  ) 
 

Adds a row to the multiplier grid. It is used when a new fuel map is added to the ROM.

void bre20::ParamPage::anchorGrid  ) 
 

void bre20::ParamPage::fillGrid  )  [protected]
 

fills the multiplier grid

int bre20::ParamPage::getBoxVal TextBox *  box,
int  oldval,
int  min,
int  max
[static]
 

int bre20::ParamPage::getBoxVal LabeledText box  )  [static]
 

int bre20::ParamPage::getBoxVal TextBox *  box  )  [static]
 

Makes sure the text box value is an integer.

Returns:
an integer value from the text box

int bre20::ParamPage::getGridValue int  col,
int  row
 

Returns:
a value from the multiplier grid

Object* bre20::ParamPage::getParent  ) 
 

virtual void bre20::ParamPage::onCellChanged SimpleGrid::CellEvent e  )  [protected, virtual]
 

called when the user changes a value in the multiplier grid

void bre20::ParamPage::setBoxVal TextBox *  box,
bre20::intGetFunction *  getFn,
bre20::intSetFunction *  setFn,
int  min,
int  max
[static]
 

void bre20::ParamPage::setBoxVal bre20::LabeledText box,
bre20::intGetFunction *  getFn,
bre20::intSetFunction *  setFn,
int  min,
int  max
[static]
 

void bre20::ParamPage::setGridSize  ) 
 

Calculates and sets the physical size of the grid.

bool bre20::ParamPage::setGridValue int  col,
int  row,
int  val
 

sets a value in the multiplier grid

Returns:
false if fails

void bre20::ParamPage::setParent Object *  p  ) 
 


Member Data Documentation

__event EventHandler* bre20::ParamPage::CellChanged
 

happens when the user changes a value in the multiplier grid

SimpleGrid::Grid* bre20::ParamPage::grid [protected]
 

Object* bre20::ParamPage::parent [protected]
 

RomRep::HondaEcu* bre20::ParamPage::rom [protected]
 




BRE Documentation Home