Interface to the terrain editor. More...
#include <gui/gui.hh>
Inherits Editor.
Public Member Functions | |
| ModelEditor (MainWindow *_mainWindow) | |
| Constuctor. More... | |
| virtual | ~ModelEditor () |
| Destuctor. More... | |
| void | AddEntity (sdf::ElementPtr _sdf) |
| Add an entity to the editor. More... | |
| void | AddItemToPalette (QWidget *_item, const std::string &_category="") |
| Add an item to palette. More... | |
Protected Member Functions | |
| void | Init (const std::string &_objName, const std::string &_tabLabel, QWidget *_widget, QWidget *_cornerWidget=NULL) |
| Initialize the editor. More... | |
Protected Attributes | |
| std::vector< event::ConnectionPtr > | connections |
| List of Event based connections. More... | |
| MainWindow * | mainWindow |
| Pointer to the main window. More... | |
| QTabWidget * | tabWidget |
| The tab widget that holds the editor's set of buttons. More... | |
Interface to the terrain editor.
|
explicit |
Constuctor.
| [in] | _mainWindow | Pointer to the mainwindow. |
|
virtual |
Destuctor.
| void AddEntity | ( | sdf::ElementPtr | _sdf | ) |
Add an entity to the editor.
| [in] | _sdf | SDF describing the entity. |
| void AddItemToPalette | ( | QWidget * | _item, |
| const std::string & | _category = "" |
||
| ) |
Add an item to palette.
| [in] | _Item | item to add. |
| [in] | _category | Category to add the item too. |
|
protectedinherited |
Initialize the editor.
Each child class should call this function on construction.
| [in] | _objName | Name of the object, which can be used in the style sheet. |
| [in] | _tabLabel | String used for the tab label. |
| [in] | _widget | Widget that is put inside the tab. |
| [in] | _cornerWidget | Optional widget to go on the top right corner. |
|
protectedinherited |
List of Event based connections.
|
protectedinherited |
Pointer to the main window.
|
protectedinherited |
The tab widget that holds the editor's set of buttons.