NIREP

WidgetList Class Reference

Stores the widget commands in a vector. The location in the vector corresponds to the location in the display grid. Also will be able to return the widget type and the parameters of the widget command. More...

Collaboration diagram for WidgetList:

List of all members.

Public Types

typedef Type::iterator Iterator
typedef TypePointer
typedef std::vector< std::string > Type

Public Member Functions

bool AnyError ()
Pointer GetList ()
int GetLocation (std::string line)
std::string GetTitle (int row, int col)
std::vector< std::string > GetWidgetParameters (int row, int col)
std::vector< std::string > GetWidgetParameters (std::string widgetName)
std::vector< std::string > GetWidgetParameters (int location)
std::string GetWidgetType (int location)
std::string GetWidgetType (std::string widgetName)
std::string GetWidgetType (int row, int col)
bool Read (const std::string &fileName)
 Reads the text and populate the evaluator list.
void Resize ()
void SetDisplayAttributes (DisplayAttributes *da)
void SetVarList (VariableList *list)
void SetWidget (int row, int col, std::string widget)
void SetWidgetParameters (int row, int col, std::vector< std::string >)
 does not work right now
void SetWidgetType (int row, int col, std::string type)
 Does not work right now.
void SetWidgetType (std::string widgetName, std::string type)
 WidgetList (const std::string &fileName, VariableList *vList, DisplayAttributes *da)
 WidgetList (VariableList *vList, DisplayAttributes *da)
void Write (const std::string &fileName)
 Writes the evaluator list out to file.
 ~WidgetList ()

Protected Member Functions

 WidgetList ()

Detailed Description

Stores the widget commands in a vector. The location in the vector corresponds to the location in the display grid. Also will be able to return the widget type and the parameters of the widget command.

Notes
  • Work in progress
Dependencies
  • Libraries:
Bugs
  • None that I know of
Change Log

Member Typedef Documentation

typedef Type::iterator WidgetList::Iterator
typedef std::vector< std::string> WidgetList::Type

Constructor & Destructor Documentation

WidgetList::WidgetList ( const std::string &  fileName,
VariableList vList,
DisplayAttributes da 
)
WidgetList::WidgetList ( VariableList vList,
DisplayAttributes da 
)
WidgetList::~WidgetList ( )
WidgetList::WidgetList ( ) [inline, protected]

Member Function Documentation

bool WidgetList::AnyError ( ) [inline]
Pointer WidgetList::GetList ( ) [inline]
int WidgetList::GetLocation ( std::string  line)
std::string WidgetList::GetTitle ( int  row,
int  col 
)
std::vector<std::string> WidgetList::GetWidgetParameters ( std::string  widgetName)
std::vector< std::string > WidgetList::GetWidgetParameters ( int  row,
int  col 
)
std::vector<std::string> WidgetList::GetWidgetParameters ( int  location)
std::string WidgetList::GetWidgetType ( int  row,
int  col 
)
std::string WidgetList::GetWidgetType ( int  location)
std::string WidgetList::GetWidgetType ( std::string  widgetName)
bool WidgetList::Read ( const std::string &  fileName)

Reads the text and populate the evaluator list.

Reads the text and populate the variable list.

Parameters:
fileNamestd::string the path to the file containing the evaluator list
Return values:
intreturns an integer indicating success or failure
Parameters:
fileNamestd::string the path to the file containing the variable list
Return values:
intreturns an integer indicating success or failure
void WidgetList::Resize ( ) [inline]
void WidgetList::SetDisplayAttributes ( DisplayAttributes da)
WidgetList::SetVarList ( VariableList list)
void WidgetList::SetWidget ( int  row,
int  col,
std::string  widget 
) [inline]
void WidgetList::SetWidgetParameters ( int  row,
int  col,
std::vector< std::string >   
)

does not work right now

void WidgetList::SetWidgetType ( int  row,
int  col,
std::string  type 
)

Does not work right now.

void WidgetList::SetWidgetType ( std::string  widgetName,
std::string  type 
)
void WidgetList::Write ( const std::string &  fileName)

Writes the evaluator list out to file.

Parameters:
fileNamestd::string the path to the file containing the evaluator list
 All Classes Functions Variables Typedefs Enumerations Enumerator