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...


void codeToScriptEditor (QString _code)

Public Member Functions

 ~BaseWidget ()

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

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)

add a new scene

Add scene to stack widget.

Definition at line 502 of file

void VSI::BaseWidget::codeToScript ( )

converts visual script to textual script

signal to open textual script editor with current script

Definition at line 228 of file

void VSI::BaseWidget::contentChanged ( )

used changed something

Called if something it the scene has changed.

Definition at line 402 of file

void VSI::BaseWidget::executeCode ( )

executes current script

Executes current visual script.

Definition at line 205 of file

void VSI::BaseWidget::load ( )

load file

Load file.

Definition at line 258 of file

void VSI::BaseWidget::newFile ( )

new empty file

New empty scene.

Definition at line 373 of file

void VSI::BaseWidget::popScene ( )

go back to last scene (function)

Go back to previous scene (function)

Definition at line 488 of file

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

show a new scene (function) in editor

Display a new scene (function) in editor.

Definition at line 479 of file

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

remove a scene

Remove scene from stack widget.

Definition at line 510 of file

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

save to file

Save file.

Definition at line 317 of file

bool VSI::BaseWidget::saveAs ( )

save to file

Save to file.

Definition at line 250 of file

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