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_;
void updateTitle()
Update window title.
void newFile()
new empty file
bool saveIfChanged()
Asks the user if he want to save his changes.
static BaseWidget * getBaseWidget()
Returns singleton.
void contentChanged()
used changed something
void executeCode()
executes current script
void addScene(GraphicsScene *_scene)
add a new scene
static BaseWidget * createBaseWidget(Context *_ctx, QWidget *_parent=NULL)
Singleton constructor.
bool saveAs()
save to file
void closeEvent(QCloseEvent *_event)
Chatch close event.
void codeToScript()
converts visual script to textual script
void pushScene(GraphicsScene *_scene)
show a new scene (function) in editor
void setupUi()
Adds element widgets to toolbox.
bool save(bool _newName=false)
save to file
void removeScene(GraphicsScene *_scene)
remove a scene
void popScene()
go back to last scene (function)