MyFrame Class Reference

A Class to create a user interface which displays sensor data. More...

#include <user_interface.h>

List of all members.

Public Member Functions

 MyFrame (const wxString &title, const wxPoint &pos, const wxSize &size)
 Constructor to create the layout of the user interface.

Private Member Functions

void gridUpdate (wxTimerEvent &evt)
 Trigger a message callback.
wxString hexadezimal (uint32_t conv_value)
 Convert a uint32_t value into a wxString.
void OnAbout (wxCommandEvent &event)
 Show a Dialog with information about the user interface.
void OnCheck (wxCommandEvent &event)
 Set the formatting of the displayed values.
void OnQuit (wxCommandEvent &event)
 Close the application.
void publish_data_2_gui ()
 Displays data on the GUI.

Private Attributes

bool berrcond_ [5]
 Variable to store the error conditions of one sensor.
bool bhex_
 if "bhex_" equals true the data in the GUI are formatted as hex-strings else as decimal values
wxMenu * file
 A Menu object.
wxGrid * grid
 A Grid object.
wxMenuBar * menubar
 A MenuBar object.
Skin skin_dat_
 An object of class Skin.
wxStaticText * text_err_noerr
 A static text to display the Err/NoErr part of the status bar.
wxStaticText * text_go_nogo
 A static text to display the Go/NoGo part of the status bar.
wxTimer * timer_
 A wxTimer to trigger message callbacks.

Detailed Description

A Class to create a user interface which displays sensor data.

This class will create a user interface which displays the sensor data and some information derived from the sensor data.

Displayed information:

Definition at line 71 of file user_interface.h.


Constructor & Destructor Documentation

MyFrame::MyFrame ( const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)

Constructor to create the layout of the user interface.

Definition at line 48 of file user_interface.cpp.


Member Function Documentation

void MyFrame::gridUpdate ( wxTimerEvent &  evt  )  [private]

Trigger a message callback.

The function "gridUpdate" is called every 250msec by a wxTimer.

The function of "gridUpdate" is to trigger a message challback and to call the function "publish_data_2_gui" which displays the sensor data on the GUI.

Definition at line 215 of file user_interface.cpp.

wxString MyFrame::hexadezimal ( uint32_t  conv_value  )  [private]

Convert a uint32_t value into a wxString.

The function "hexadezimal" converts a decimal value into a hex-string.

Parameters:
conv_value Decimal value which should be converted into a hex-string
Returns:
Provided data as hex-string

Definition at line 253 of file user_interface.cpp.

void MyFrame::OnAbout ( wxCommandEvent &  event  )  [private]

Show a Dialog with information about the user interface.

void MyFrame::OnCheck ( wxCommandEvent &  event  )  [private]

Set the formatting of the displayed values.

Definition at line 240 of file user_interface.cpp.

void MyFrame::OnQuit ( wxCommandEvent &  event  )  [private]

Close the application.

void MyFrame::publish_data_2_gui (  )  [private]

Displays data on the GUI.

The function "publish_data_2_gui" handles the display of the sensor data. It updates the grid which shows the raw sensor data and derives additional information from the raw sensor data which are shown in the status bar, the X Col.Bar and the ErrorBar.

Definition at line 268 of file user_interface.cpp.


Member Data Documentation

bool MyFrame::berrcond_[5] [private]

Variable to store the error conditions of one sensor.

Definition at line 151 of file user_interface.h.

bool MyFrame::bhex_ [private]

if "bhex_" equals true the data in the GUI are formatted as hex-strings else as decimal values

Definition at line 149 of file user_interface.h.

wxMenu* MyFrame::file [private]

A Menu object.

Definition at line 125 of file user_interface.h.

wxGrid* MyFrame::grid [private]

A Grid object.

Definition at line 127 of file user_interface.h.

wxMenuBar* MyFrame::menubar [private]

A MenuBar object.

Definition at line 123 of file user_interface.h.

An object of class Skin.

Definition at line 145 of file user_interface.h.

wxStaticText* MyFrame::text_err_noerr [private]

A static text to display the Err/NoErr part of the status bar.

Definition at line 142 of file user_interface.h.

wxStaticText* MyFrame::text_go_nogo [private]

A static text to display the Go/NoGo part of the status bar.

Definition at line 140 of file user_interface.h.

wxTimer* MyFrame::timer_ [private]

A wxTimer to trigger message callbacks.

The timer "timer_" is used to call the function "gridUpdate" every 250msec

See also:
gridUpdate()

Definition at line 135 of file user_interface.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables


skin_dashboard
Author(s): Joerg Wagner
autogenerated on Fri Jan 11 09:39:20 2013