trikRuntime
trikGui::TrikGuiDialog Class Reference

Base class for all trikGui dialog widgets. More...

#include <trikGuiDialog.h>

Inheritance diagram for trikGui::TrikGuiDialog:
Collaboration diagram for trikGui::TrikGuiDialog:

Public Types

enum  Result { normalExit, goHomeExit }
 
- Public Types inherited from trikGui::MainWidget
enum  FileManagerRootType { FileManagerRootType::scriptsDir, FileManagerRootType::allFS }
 

Public Member Functions

 TrikGuiDialog (QWidget *parent=0)
 Constructor. More...
 
virtual ~TrikGuiDialog ()
 
virtual int exec ()
 Show widget and wait until it will be closed. More...
 
- Public Member Functions inherited from trikGui::MainWidget
 MainWidget (QWidget *parent)
 Constructor. More...
 
virtual void renewFocus ()=0
 Set focus properly on this widget or one of its children. More...
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
virtual void exit ()
 
virtual void goHome ()
 

Additional Inherited Members

- Signals inherited from trikGui::MainWidget
void newWidget (trikGui::MainWidget &widget)
 Emitted when the widget created a new one and wants it to be shown. More...
 

Detailed Description

Base class for all trikGui dialog widgets.

Member Enumeration Documentation

Enumerator
normalExit 
goHomeExit 

Constructor & Destructor Documentation

TrikGuiDialog::TrikGuiDialog ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parent- parent of this widget in Qt object hierarchy.
virtual trikGui::TrikGuiDialog::~TrikGuiDialog ( )
inlinevirtual

Member Function Documentation

int TrikGuiDialog::exec ( )
virtual

Show widget and wait until it will be closed.

Returns
TrikGuiDialog::goHomeExit if the user wants to go to the home screen, and TrikGuiDialog::normalExit otherwise.

Reimplemented in trikGui::SensorsWidget, and trikGui::UpdateWidget.

void TrikGuiDialog::exit ( )
protectedvirtual

Reimplemented in trikGui::SensorsWidget.

void TrikGuiDialog::goHome ( )
protectedvirtual

Reimplemented in trikGui::SensorsWidget.


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