19 #ifndef OST_GUI_PANEL_BAR_PANEL_MANAGER
20 #define OST_GUI_PANEL_BAR_PANEL_MANAGER
34 #include <QDragEnterEvent>
35 namespace ost {
namespace gui {
53 virtual bool Save(
const QString& prefix);
54 virtual bool Restore(
const QString& prefix);
145 void UpdateAddMenu();
146 void UpdateCurrentMenu();
147 void AddWidgetFromMenu(QAction *
action);
155 QMap<PanelPosition, PanelBar*> panels_;
Class which organizes all widgets which are in the side panels This class handles all side bar widget...
void ToggleHide()
Toggle the visibility of all Panels.
virtual void AddWidgetToPool(const QString &class_name, int limit=-1)
Add a widget to the widget pool.
virtual bool Save(const QString &prefix)
void RemoveWidget(Widget *widget)
Remove a Widget out of a PanelBar The widget will be removed if it is in a PanelBar.
void ToggleViewMode(PanelPosition pos)
Toggle between the ViewMode 's of the Given Panel.
void EndDrag()
End with dragging widgets This method should be called always when a drag event is over....
void ToggleHide(PanelPosition pos)
Toggle the visibility of the given Panel.
void StartDrag()
Begin with dragging widgets This method should be called, when someone tries to drop a widget on a Pa...
QList< QString > GetAvailableWidgets()
Get a List with available Widgets Get all the Widgets which have available resources in the WidgetPoo...
void ReplaceWidget(Widget *w1, Widget *w2)
Replace a Widget with another Widget With this Method you can replace a Widget which is in a PanelBar...
PanelManager(QWidget *widget)
void MoveNextTo(Widget *target, Widget *widget)
Move a Widget next to the given Widget The widget will be displayed next to the target Widget....
void AddWidgetByName(PanelPosition pos, const QString &class_name, bool is_hidden=false)
Display a Widget in a PanelBar Same as PanelManager::AddWidget(PanelPosition pos, Widget* widget,...
void MoveWidget(Widget *widget, PanelPosition pos, int index)
Move a Widget to the given Position The widget is being moved to the given position....
QMenu * GetAvailableWidgetsMenu()
get a QMenu with available Widget Same as GetMenu()
void ReplaceWidget(Widget *w1, QString &class_name)
QMenu * GetMenu()
Get Menu The GetMenu method returns a QMenu reference, which contains various actions....
virtual bool Restore(const QString &prefix)
void AddWidget(PanelPosition pos, Widget *widget, bool is_hidden=false)
Display a Widget in a PanelBar With Method you can add a widget to the given PanelBar....
virtual void AddWidgetToPool(const QString &name, Widget *widget)
Add a widget to the widget pool.
splitter with 1 pixel wide handles.
#define DLLEXPORT_OST_GUI