MyFrame Class Reference

A Class to create a configuration user interface. More...

#include <config_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 OnAbout (wxCommandEvent &event)
 Show a Dialog with information about the user interface.
void OnDynThresSet (wxCommandEvent &event)
 Set dynamic threshold.
void OnInitSkin (wxCommandEvent &event)
 Initialize sensor skin.
void OnNumSensSet (wxCommandEvent &event)
 Set number of sensors.
void OnQuit (wxCommandEvent &event)
 Close the application.
void OnRamToFlash (wxCommandEvent &event)
 Copy RAM to Flash.
void OnStatThresSet (wxCommandEvent &event)
 Set static threshold.
void ShowDialog (wxString wxstr, bool successfullychanged)
 Show a dialog with passed text.
void subTopic (wxTimerEvent &evt)
 Trigger a message callback.

Private Attributes

bool bchange
 Flag for temporary storage of return value from OnRequestChanges.
wxMenu * file
 A Menu object.
wxMenuBar * menubar
 A MenuBar object.
SkinConfig skin_config_
 An object of class SkinConfig.
wxTimer * timer_
 A wxTimer to trigger message callbacks.
wxTextCtrl * twindow_dyn_thres_cv
 Text window: dynamic threshold - current value.
wxTextCtrl * twindow_dyn_thres_nv
 Text window: dynamic threshold - new value.
wxTextCtrl * twindow_num_sens_nv
 Text window: number of sensors - new value.
wxTextCtrl * twindow_stat_thres_fs
 Text window: static threshold - from SE-Nr.
wxTextCtrl * twindow_stat_thres_nv
 Text window: static threshold - new value.
wxTextCtrl * twindow_stat_thres_ts
 Text window: static threshold - to SE-Nr.

Detailed Description

A Class to create a configuration user interface.

This class will create a user interface which can be used to configurate the parameters of the sensor skin. Apart from that the user interface also provides the possibilities to initialize the sensor skin and to copy the RAM of the sensor skin into the flash. By copying the RAM in the flash the changed parameters are permanently stored in the ECU of the sensor skin.

The parameters which can be configured:

Additional Buttons

Definition at line 123 of file config_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 50 of file config_user_interface.cpp.


Member Function Documentation

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

Show a Dialog with information about the user interface.

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

Set dynamic threshold.

Definition at line 465 of file config_user_interface.cpp.

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

Initialize sensor skin.

Definition at line 360 of file config_user_interface.cpp.

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

Set number of sensors.

Definition at line 367 of file config_user_interface.cpp.

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

Close the application.

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

Copy RAM to Flash.

Definition at line 353 of file config_user_interface.cpp.

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

Set static threshold.

Definition at line 412 of file config_user_interface.cpp.

void MyFrame::ShowDialog ( wxString  wxstr,
bool  successfullychanged 
) [private]

Show a dialog with passed text.

The function "ShowDialog" shows depending on the result of a ROS service different dialog windows.

1. publisher node is online and parameters were changed successfully: show passed text (wxstr) 2. publisher node is online and parameters were not changed successfully: show text "Change of skin values failed" 3. else: show text "Subscriber node (skin_driver) is offline"

Parameters:
wxstr The text which is shown in the dialog if subscriber node is online and "successfullychanged" equals true
successfullychanged Flag which indicates weather the change of a parameter was successfully or not

Definition at line 323 of file config_user_interface.cpp.

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

Trigger a message callback.

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

The main function of "subTopic" is to trigger a message challback. Apart from that "subTopic" also checks if the publisher node "skin_driver" is online.

Definition at line 282 of file config_user_interface.cpp.


Member Data Documentation

bool MyFrame::bchange [private]

Flag for temporary storage of return value from OnRequestChanges.

See also:
ShowDialog(), OnRequestChanges()

Definition at line 230 of file config_user_interface.h.

wxMenu* MyFrame::file [private]

A Menu object.

Definition at line 193 of file config_user_interface.h.

wxMenuBar* MyFrame::menubar [private]

A MenuBar object.

Definition at line 191 of file config_user_interface.h.

An object of class SkinConfig.

Definition at line 224 of file config_user_interface.h.

wxTimer* MyFrame::timer_ [private]

A wxTimer to trigger message callbacks.

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

See also:
subTopic()

Definition at line 217 of file config_user_interface.h.

wxTextCtrl* MyFrame::twindow_dyn_thres_cv [private]

Text window: dynamic threshold - current value.

Definition at line 206 of file config_user_interface.h.

wxTextCtrl* MyFrame::twindow_dyn_thres_nv [private]

Text window: dynamic threshold - new value.

Definition at line 208 of file config_user_interface.h.

wxTextCtrl* MyFrame::twindow_num_sens_nv [private]

Text window: number of sensors - new value.

Definition at line 198 of file config_user_interface.h.

wxTextCtrl* MyFrame::twindow_stat_thres_fs [private]

Text window: static threshold - from SE-Nr.

Definition at line 200 of file config_user_interface.h.

wxTextCtrl* MyFrame::twindow_stat_thres_nv [private]

Text window: static threshold - new value.

Definition at line 204 of file config_user_interface.h.

wxTextCtrl* MyFrame::twindow_stat_thres_ts [private]

Text window: static threshold - to SE-Nr.

Definition at line 202 of file config_user_interface.h.


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


skin_config
Author(s): Joerg Wagner
autogenerated on Fri Jan 11 09:40:20 2013