trikRuntime
trikGui::FileManagerWidget Class Reference

File system browser able to launch executable files and .qts scripts. More...

#include <fileManagerWidget.h>

Inheritance diagram for trikGui::FileManagerWidget:
Collaboration diagram for trikGui::FileManagerWidget:

Public Member Functions

 FileManagerWidget (Controller &controller, MainWidget::FileManagerRootType fileManagerRoot, QWidget *parent=0)
 Constructor. More...
 
 ~FileManagerWidget () override
 
void renewFocus () override
 Set focus properly on this widget or one of its children. More...
 
- Public Member Functions inherited from trikGui::TrikGuiDialog
 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...
 

Static Public Member Functions

static QString menuEntry ()
 Returns main menu entry string for this widget. More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 
- Protected Member Functions inherited from trikGui::TrikGuiDialog
virtual void exit ()
 
virtual void goHome ()
 

Additional Inherited Members

- Public Types inherited from trikGui::TrikGuiDialog
enum  Result { normalExit, goHomeExit }
 
- Public Types inherited from trikGui::MainWidget
enum  FileManagerRootType { FileManagerRootType::scriptsDir, FileManagerRootType::allFS }
 
- 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

File system browser able to launch executable files and .qts scripts.

Constructor & Destructor Documentation

FileManagerWidget::FileManagerWidget ( Controller controller,
MainWidget::FileManagerRootType  fileManagerRoot,
QWidget *  parent = 0 
)
explicit

Constructor.

Parameters
controller- reference to controller object which provides access to low-level functionality.
fileManagerRoot- root directory for file browser.
parent- parent of this widget in Qt object hierarchy.

This flag and operation is necessary to create file if it doesn't exists

FileManagerWidget::~FileManagerWidget ( )
override

Member Function Documentation

void FileManagerWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Reimplemented from trikGui::TrikGuiDialog.

QString FileManagerWidget::menuEntry ( )
static

Returns main menu entry string for this widget.

void FileManagerWidget::renewFocus ( )
overridevirtual

Set focus properly on this widget or one of its children.

Implements trikGui::MainWidget.


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