#include <gosty_app.hh>
Public Slots | |
| void | OnQuit () |
Public Member Functions | |
| PythonShell * | GetPyShell () |
| GLWin * | GetGLWin () |
| SceneWin * | GetSceneWin () |
| SequenceViewer * | GetSequenceViewer () |
| ToolOptionsWin * | GetToolOptionsWin () |
| void | ProcessEvents () |
| Perspective * | GetPerspective () |
| void | AddWidgetToApp (const QString &ident, QWidget *widget) |
| void | RemoveWidgetFromApp (const QString &ident) |
| void | SetAppTitle (const QString &app_title) |
Static Public Member Functions | |
| static GostyApp * | Instance () |
The layout of the widgets inside the main window is managed through a perspective.
Definition at line 68 of file gosty_app.hh.
| void AddWidgetToApp | ( | const QString & | ident, | |
| QWidget * | widget | |||
| ) |
add a custom QWidget to the gosty_app
This method adds a custom widget to OpenStructure. It can be used for example in a python script, so that the widget will not be destroyed, when the script reaches the end. The widget position will be stored, when OpenStructure is being closed. It will be restored the next time, a widget is added with the same identifier.
| ident | the ident is used to identify a custom widget. It must be unique. Otherwise there might occur an unexpected behaviour. | |
| widget | the widget which will be added to the GostyApp |
| GLWin* GetGLWin | ( | ) |
get 3d graphics window
The GL window is initialized when this method is first called. All subsequent calls will return the same GLWin instance.
| Perspective* GetPerspective | ( | ) |
get perspective
The perspective is initialized when this method is first called. All subsequent calls will return the same Perspective instance.
| PythonShell* GetPyShell | ( | ) |
get python shell
The Python Shell is initialized when this method is first called. There may at most be one python shell at any given time. Call PythonShell::Show() to display the shell.
| SceneWin* GetSceneWin | ( | ) |
| SequenceViewer* GetSequenceViewer | ( | ) |
get scene menu
The sequence viewer is initialized when this method is first called. All subsequent calls will return the same SequenceViewer instance.
| ToolOptionsWin* GetToolOptionsWin | ( | ) |
get tool options window
The tool options window is initialized when this method is first called. All subsequent calls will return the same SceneWin instance.
| static GostyApp* Instance | ( | ) | [static] |
| void OnQuit | ( | ) | [slot] |
This slot must be called when the application is going to be terminated.
| void ProcessEvents | ( | ) |
give the application time to run the mainloop and process events
| void RemoveWidgetFromApp | ( | const QString & | ident | ) |
remove a custom QWidget from the gosty_app
This method removes a custom widget from OpenStructure. If the given ident is not known, nothing happens. Read more about custom widgets at AddWidgetToApp() .
| ident | the ident of the widget which should be removed. Before the widget is removed, the position will be stored. |
| void SetAppTitle | ( | const QString & | app_title | ) |
This methods sets the Title of this Application.
| app_title | Title that will be displayed in the title bar |
1.5.8