Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

maiaButtonData Class Reference

#include <maiaButtonData.h>

Inheritance diagram for maiaButtonData:

omObject

Public Member Functions

 maiaButtonData ()
void AddAction (omCommand *)
omCommandGetNextAction ()
bool MoreActions ()
void ResetActionFetchCounter ()

Data Fields

wxString name
 Button name.

int x
int y
int w
int h
 Position and dimension of the button.

wxString normalImage
wxString scanImage
wxString selImage
wxString selSound
 Images names of the button.

wxString scanSound
 Sounds names of the button.

std::vector< omCommand * > actions
 Actions associated with the button.


Private Attributes

int nActions
 number of stored actions

int currAction
 current action in next action fetch mode


Detailed Description

This class is used to store data associated with the MaiaButton class.


Constructor & Destructor Documentation

maiaButtonData::maiaButtonData  ) 
 

Inizialize all variables


Member Function Documentation

void maiaButtonData::AddAction omCommand a  ) 
 

Add a new action to the dinamic vector

Parameters:
a pointer to action to add

omCommand * maiaButtonData::GetNextAction  ) 
 

Get the next action in the list

Returns:
next action name, if reached end of vector return a NULL Pointer

bool maiaButtonData::MoreActions  ) 
 

void maiaButtonData::ResetActionFetchCounter  ) 
 

Reset the action fetch counter


Field Documentation

std::vector<omCommand *> maiaButtonData::actions
 

Actions associated with the button.

int maiaButtonData::currAction [private]
 

current action in next action fetch mode

int maiaButtonData::h
 

Position and dimension of the button.

int maiaButtonData::nActions [private]
 

number of stored actions

wxString maiaButtonData::name
 

Button name.

wxString maiaButtonData::normalImage
 

wxString maiaButtonData::scanImage
 

wxString maiaButtonData::scanSound
 

Sounds names of the button.

wxString maiaButtonData::selImage
 

wxString maiaButtonData::selSound
 

Images names of the button.

int maiaButtonData::w
 

int maiaButtonData::x
 

int maiaButtonData::y
 


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