55 #include <QMainWindow> 57 #include <QStackedWidget> 61 #include "scene/graphicsView.hh" 62 #include "scene/graphicsScene.hh" 89 void codeToScriptEditor (QString _code);
100 bool save (
bool _newName =
false);
148 QStack<GraphicsScene *> scenes_;
150 QSplitter *splitter_;
152 QStackedWidget *views_;
155 bool changedContent_;
static BaseWidget * createBaseWidget(Context *_ctx, QWidget *_parent=NULL)
Singleton constructor.
bool saveAs()
save to file
static BaseWidget * getBaseWidget()
Returns singleton.
void pushScene(GraphicsScene *_scene)
show a new scene (function) in editor
bool saveIfChanged()
Asks the user if he want to save his changes.
void removeScene(GraphicsScene *_scene)
remove a scene
void closeEvent(QCloseEvent *_event)
Chatch close event.
void executeCode()
executes current script
void addScene(GraphicsScene *_scene)
add a new scene
void contentChanged()
used changed something
void codeToScript()
converts visual script to textual script
void newFile()
new empty file
void setupUi()
Adds element widgets to toolbox.
void updateTitle()
Update window title.
void popScene()
go back to last scene (function)
bool save(bool _newName=false)
save to file