![]() |
An open-source, flexible 3D physical simulation framework
|
The abstract GuiInterface class provides the menu and docking functionality of the GUI. More...
#include <GuiInterface.h>
Public Member Functions | |
GuiInterface (lib_manager::LibManager *theManager) | |
The constructor initializes the library manager. More... | |
virtual | ~GuiInterface () |
A destructor. More... | |
virtual void | addGenericMenuAction (const std::string &path, int action, MenuInterface *menu, int qtKey=0, const std::string &icon="", bool toolbar=0, int checkable=0)=0 |
Adds a menu/menu item with its corresponding action. More... | |
virtual void | setMenuActionSelected (const std::string &path, bool checked)=0 |
Set the selection state of an menu action. More... | |
virtual void | addDockWidget (void *window, int priority=0, int area=0, bool possibleCentralWidget=false)=0 |
Makes a widget dockable in the main window. More... | |
virtual void | removeDockWidget (void *window, int priority=0)=0 |
Removes a widget from the dockables. More... | |
virtual void | dock (bool dockView)=0 |
Docks/undocks all widgets in the main window. More... | |
virtual bool | getDocking () const =0 |
Returns if docking mode is currently enabled. More... | |
virtual void | setBackgroundImage (const std::string &path="")=0 |
Sets an image as a central widget in the main window. More... | |
virtual void | show (void)=0 |
Shows the main window with a predefined geometry. More... | |
virtual void | setWindowTitle (const std::string &title)=0 |
![]() | |
LibInterface (LibManager *theManager) | |
virtual | ~LibInterface (void) |
virtual int | getLibVersion () const =0 |
virtual const std::string | getLibName () const =0 |
ModuleInfo | getModuleInfo () const |
virtual void | newLibLoaded (const std::string &libName) |
virtual void | createModuleInfo (void) |
Additional Inherited Members | |
![]() | |
LibManager * | libManager |
ModuleInfo | moduleInfo |
The abstract GuiInterface class provides the menu and docking functionality of the GUI.
Inherits from LibInterface.
Definition at line 46 of file GuiInterface.h.
|
inline |
The constructor initializes the library manager.
Definition at line 51 of file GuiInterface.h.
|
inlinevirtual |
A destructor.
Definition at line 55 of file GuiInterface.h.
|
pure virtual |
Makes a widget dockable in the main window.
window | A pointer to the widget being docked. |
priority | 0 indicates that the widget is closable, 1 - not. |
area | An indicator to the initial docking area of the widget. Default area is Qt::LeftDockWidgetArea. |
|
pure virtual |
Adds a menu/menu item with its corresponding action.
path | The menu path of the item being added. Should begin with "../". If a parent item does not exist, it is created. |
action | An unique for the class action used to recognize the selected menu item. |
menu | The inheriting class, which implements the menuAction function. |
qKey | A key or key sequence that selects this menu entry. |
icon | A path to an icon file for the menu item. |
toolbar | A boolean value indicating if the item is also shown in the toolbar of the main window. |
checkable | A boolean value indicating if the menu item is checkable or not. this->addGenericMenuAction("../File/New", ACTION_FILE_NEW, (main_gui::MenuInterface*)this, QKeySequence("CTRL+N"), "images/empty_file.jpg", 1, 0); |
Implemented in mars::main_gui::MainGUI.
|
pure virtual |
Docks/undocks all widgets in the main window.
Implemented in mars::main_gui::MainGUI.
|
pure virtual |
Returns if docking mode is currently enabled.
Implemented in mars::main_gui::MainGUI.
|
pure virtual |
Removes a widget from the dockables.
window | The widget being removed. |
priority | If 0, the widget is closed; otherwise it is hidden. |
|
pure virtual |
Sets an image as a central widget in the main window.
Implemented in mars::main_gui::MainGUI.
|
pure virtual |
Set the selection state of an menu action.
Implemented in mars::main_gui::MainGUI.
|
pure virtual |
Implemented in mars::main_gui::MainGUI.
|
pure virtual |
Shows the main window with a predefined geometry.
Implemented in mars::main_gui::MainGUI.