Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
VSI::BaseWidget Class Reference

#include <Plugin-VSI/baseWidget.hh>

Inheritance diagram for VSI::BaseWidget:

Public Slots

void executeCode ()
 executes current script More...
 
void codeToScript ()
 converts visual script to textual script More...
 
bool save (bool _newName=false)
 save to file More...
 
bool saveAs ()
 save to file More...
 
void load ()
 load file More...
 
void newFile ()
 new empty file More...
 
void contentChanged ()
 used changed something More...
 
void pushScene (GraphicsScene *_scene)
 show a new scene (function) in editor More...
 
void popScene ()
 go back to last scene (function) More...
 
void addScene (GraphicsScene *_scene)
 add a new scene More...
 
void removeScene (GraphicsScene *_scene)
 remove a scene More...
 

Signals

void codeToScriptEditor (QString _code)
 

Public Member Functions

 ~BaseWidget ()
 Destructor.
 

Static Public Member Functions

static BaseWidgetcreateBaseWidget (Context *_ctx, QWidget *_parent=NULL)
 Singleton constructor.
 
static BaseWidgetgetBaseWidget ()
 Returns singleton.
 

Private Member Functions

 BaseWidget (Context *_ctx, QWidget *_parent)
 
void setupUi ()
 Adds element widgets to toolbox.
 
void updateTitle ()
 Update window title.
 
bool saveIfChanged ()
 Asks the user if he want to save his changes.
 
void closeEvent (QCloseEvent *_event)
 Chatch close event.
 

Private Attributes

Contextctx_
 
GraphicsScenemainScene_
 
QStack< GraphicsScene * > scenes_
 
QSplitter * splitter_
 
QToolBox * toolbox_
 
QStackedWidget * views_
 
QString fileName_
 
bool changedContent_
 

Static Private Attributes

static BaseWidgetbase_ = NULL
 

Detailed Description

Main widget for the visual scripting interface editor

Definition at line 75 of file baseWidget.hh.

Member Function Documentation

void VSI::BaseWidget::addScene ( GraphicsScene _scene)
slot

add a new scene

Add scene to stack widget.

Definition at line 502 of file baseWidget.cc.

void VSI::BaseWidget::codeToScript ( )
slot

converts visual script to textual script

signal to open textual script editor with current script

Definition at line 228 of file baseWidget.cc.

void VSI::BaseWidget::contentChanged ( )
slot

used changed something

Called if something it the scene has changed.

Definition at line 402 of file baseWidget.cc.

void VSI::BaseWidget::executeCode ( )
slot

executes current script

Executes current visual script.

Definition at line 205 of file baseWidget.cc.

void VSI::BaseWidget::load ( )
slot

load file

Load file.

Definition at line 258 of file baseWidget.cc.

void VSI::BaseWidget::newFile ( )
slot

new empty file

New empty scene.

Definition at line 373 of file baseWidget.cc.

void VSI::BaseWidget::popScene ( )
slot

go back to last scene (function)

Go back to previous scene (function)

Definition at line 488 of file baseWidget.cc.

void VSI::BaseWidget::pushScene ( GraphicsScene _scene)
slot

show a new scene (function) in editor

Display a new scene (function) in editor.

Definition at line 479 of file baseWidget.cc.

void VSI::BaseWidget::removeScene ( GraphicsScene _scene)
slot

remove a scene

Remove scene from stack widget.

Definition at line 510 of file baseWidget.cc.

bool VSI::BaseWidget::save ( bool  _newName = false)
slot

save to file

Save file.

Definition at line 317 of file baseWidget.cc.

bool VSI::BaseWidget::saveAs ( )
slot

save to file

Save to file.

Definition at line 250 of file baseWidget.cc.


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