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