OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
panel_widget_container.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2011 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_GUI_PANEL_BAR_PANEL_WIDGET_CONTAINER
20 #define OST_GUI_PANEL_BAR_PANEL_WIDGET_CONTAINER
21 
22 
23 #include <ost/gui/module_config.hh>
24 #include <ost/gui/widget.hh>
25 
26 #include "panel_bar.hh"
27 
28 #include <QHBoxLayout>
29 #include <QWidget>
30 #include <QString>
31 #include <QAction>
32 #include <QMap>
33 namespace ost { namespace gui {
34 
38  Q_OBJECT
39 public:
43  virtual QString GetName()= 0;
48 
49  virtual void WidgetMoved(Widget* widget, int index) = 0;
55  virtual void ShowWidget(Widget* widget,int pos,bool show = true) = 0;
58 
59  virtual void StartDrag();
62  virtual void EndDrag();
63 
66  PanelBar* GetPanelBar();
67 
68 private:
69  PanelBar* parent_;
70 };
71 
72 }}
73 
75 
76 #endif
Panel Bar which may contain other Widgets A PanelBar might have different ViewModes which are PanelWi...
Definition: panel_bar.hh:53
#define DLLEXPORT_OST_GUI
A PanelWidgetContainer can display various widgets A PanelWidgetContainer is a abstract class which i...
Base class for widgets.
Definition: widget.hh:40
Q_DECLARE_METATYPE(ost::io::EntityIOHandlerFactoryBaseP)