Public Member Functions | Private Member Functions | Private Attributes
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

wxGrid * basic_data
wxPanel * basic_panel
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
wxPanel * expert_panel
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.
wxNotebook * views

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 72 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 286 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_valueDecimal value which should be converted into a hex-string
Returns:
Provided data as hex-string

Definition at line 324 of file user_interface.cpp.

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

Show a Dialog with information about the user interface.

Definition at line 305 of file user_interface.cpp.

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

Set the formatting of the displayed values.

Definition at line 311 of file user_interface.cpp.

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

Close the application.

Definition at line 299 of file user_interface.cpp.

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 354 of file user_interface.cpp.


Member Data Documentation

wxGrid* MyFrame::basic_data [private]

Definition at line 134 of file user_interface.h.

wxPanel* MyFrame::basic_panel [private]

Definition at line 130 of file user_interface.h.

bool MyFrame::berrcond_[5] [private]

Variable to store the error conditions of one sensor.

Definition at line 158 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 156 of file user_interface.h.

wxPanel* MyFrame::expert_panel [private]

Definition at line 129 of file user_interface.h.

wxMenu* MyFrame::file [private]

A Menu object.

Definition at line 126 of file user_interface.h.

wxGrid* MyFrame::grid [private]

A Grid object.

Definition at line 133 of file user_interface.h.

wxMenuBar* MyFrame::menubar [private]

A MenuBar object.

Definition at line 124 of file user_interface.h.

An object of class Skin.

Definition at line 152 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 149 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 147 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 142 of file user_interface.h.

wxNotebook* MyFrame::views [private]

Definition at line 128 of file user_interface.h.


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


proximity_sensor_dashboard
Author(s): Joerg Wagner, Adrian Funk (Maintained by Philip Roan)
autogenerated on Fri Jan 3 2014 11:09:05