NIREP

NIREPDisplayManager Class Reference

NIREPDisplayManager is responsible for displaying the different widgets. Currently the only real usable method is AddDisplay. I will probably be merging this with wxImageThumbnail so that it makes sense what all is happening. For the time being this is just an inbetween class. More...

Inheritance diagram for NIREPDisplayManager:
Collaboration diagram for NIREPDisplayManager:

List of all members.

Classes

struct  DisplayInfo
 This will set the data manager so that the images can be read in. More...
struct  Location

Public Member Functions

wxWindow * AddDisplay (const char *WidgetPath, const char *EvaluatorPath, wxWindow *aui, wxWindow *win, int pagecount, std::string &title)
 This will take in the widget list path and the evaluator list path.
void GetActiveDisplays (std::vector< std::string > &list)
 This currently does nothing.
 NIREPDisplayManager (void)
 Class constructor.
void RefreshADisplay (int id)
 This currently does nothing.
void RefreshDisplay ()
 This currently does nothing.
void RemoveAllDisplay ()
 This currently does nothing.
bool RemoveDisplay (int id)
 This currently does nothing.
void UpdateDiplay ()
 This currently does nothing.
 ~NIREPDisplayManager (void)
 Class destructor.

Public Attributes

std::vector< DisplayInfo * > info
std::map< int, Location * > LocationOfInfo
int num

Detailed Description

NIREPDisplayManager is responsible for displaying the different widgets. Currently the only real usable method is AddDisplay. I will probably be merging this with wxImageThumbnail so that it makes sense what all is happening. For the time being this is just an inbetween class.

Notes
  • Work in progress
Dependencies
Bugs
  • With the prop grid, for some reason some of the items are being duplicated causing an error.
Change Log

Constructor & Destructor Documentation

NIREPDisplayManager::NIREPDisplayManager ( void  )

Class constructor.

NIREPDisplayManager::~NIREPDisplayManager ( void  )

Class destructor.


Member Function Documentation

wxWindow * NIREPDisplayManager::AddDisplay ( const char *  WidgetPath,
const char *  EvaluatorPath,
wxWindow *  aui,
wxWindow *  win,
int  pagecount,
std::string &  title 
)

This will take in the widget list path and the evaluator list path.

and read the files in and then parse the information that was read in. widgets that were specified in the files. This function will return the wxPanel so that it can be placed in a tab of a wxNotebook.

Parameters:
WidgetPathconst char *
EvaluatorPathconst char *
auiwxWindow *
winwxWindow *
pagecountinteger
titlestd::string &
Return values:
wxWindow* which will actually be a wxPanel that this function

Programmer: Jeffrey Hawley and James Harris EDIT: Since we are trying out wxWidgets this has been commented out quite heavily. Currently this will create a wxImageThumbnail which will basically be doing everything. Date: 06/11/2008 Function: Jeffrey - The part that I worked on was with the widgets and the data manager. Part of this will run two for loops that will place the correct widgets in the correct location based on the xml document that the user specified. Each widget that is specified will be created, added to an instance of WidgetInfo and some information about the widget will also be added to the instance of WidgetInfo. The instance of WidgetInfo then will get added to a vector of WidgetInfo's in the class DisplayInfo. Also, a slider bar will be created for each widget and the event handling also is taken care of. For the event handling for the slider bar a class called Location was created to keep track of which DisplayInfo and which WidgetInfo should be used to do the update, also a map was created to map the Id of the slider bar to the instance of Location. Copyright: University of Iowa Inputs: Outputs:

void NIREPDisplayManager::GetActiveDisplays ( std::vector< std::string > &  list)

This currently does nothing.

void NIREPDisplayManager::RefreshADisplay ( int  id)

This currently does nothing.

Parameters:
idinteger
void NIREPDisplayManager::RefreshDisplay ( )

This currently does nothing.

void NIREPDisplayManager::RemoveAllDisplay ( )

This currently does nothing.

bool NIREPDisplayManager::RemoveDisplay ( int  id)

This currently does nothing.

This will remove the widget that is specified by the id.

Parameters:
idinteger
void NIREPDisplayManager::UpdateDiplay ( )

This currently does nothing.


Member Data Documentation

 All Classes Functions Variables Typedefs Enumerations Enumerator