BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
WIDGETS
dockWidget.h
Go to the documentation of this file.
1
#ifndef BALL_VIEW_WIDGETS_DOCKABLEWIDGET_H
2
#define BALL_VIEW_WIDGETS_DOCKABLEWIDGET_H
3
4
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
5
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
6
#endif
7
8
#include <QtGui/QDockWidget>
9
#include <QtGui/QDropEvent>
10
#include <QtGui/QDockWidget>
11
#include <QtGui/QMouseEvent>
12
#include <QtGui/QGridLayout>
13
14
namespace
BALL
15
{
16
namespace
VIEW
17
{
18
25
class
BALL_VIEW_EXPORT
DockWidget
26
:
public
QDockWidget
,
27
public
ModularWidget
28
{
29
Q_OBJECT
30
31
public
:
32
33
BALL_EMBEDDABLE
(
DockWidget
,
Embeddable
)
34
35
36
DockWidget
(
QWidget
* parent,
const
char
* title = 0);
37
39
virtual
~DockWidget
(){}
40
43
void
setGuest(
QWidget
& guest);
44
48
virtual
void
initializeWidget(
MainControl
& main_control);
49
53
virtual
void
fetchPreferences(
INIFile
& inifile);
54
58
virtual
void
writePreferences(
INIFile
& inifile);
59
61
virtual
void
setWidgetVisible(
bool
state);
62
64
virtual
void
registerForHelpSystem(
const
QObject
* widget,
const
String
& url);
65
67
QGridLayout*
getGuestLayout
() {
return
layout_;}
68
69
public
slots:
70
72
virtual
void
dropEvent(QDropEvent* e);
73
75
virtual
void
dragEnterEvent(QDragEnterEvent* e);
76
78
virtual
void
showGuestContextMenu
(
const
QPoint&) {};
79
80
protected
:
81
82
// required for Python bindings, but dont use this methods:
83
DockWidget
();
84
DockWidget
(
const
DockWidget
&);
85
86
QWidget
*
container_
;
87
QWidget
*
guest_
;
88
QGridLayout*
layout_
;
89
};
90
91
}
// namespace VIEW
92
}
// namespace BALL
93
#endif
BALL::VIEW::MainControl
Definition:
mainControl.h:114
BALL::String
Definition:
string.h:61
QDockWidget
QWidget
QObject
modularWidget.h
BALL::VIEW::DockWidget::container_
QWidget * container_
Definition:
dockWidget.h:86
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::DockWidget
Definition:
dockWidget.h:25
BALL::VIEW::ModularWidget
Definition:
modularWidget.h:61
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL::VIEW::DockWidget::getGuestLayout
QGridLayout * getGuestLayout()
Definition:
dockWidget.h:67
BALL::VIEW::DockWidget::layout_
QGridLayout * layout_
Definition:
dockWidget.h:88
BALL::VIEW::DockWidget::~DockWidget
virtual ~DockWidget()
Definition:
dockWidget.h:39
BALL::VIEW::DockWidget::guest_
QWidget * guest_
Definition:
dockWidget.h:87
BALL::INIFile
Definition:
INIFile.h:28
BALL::Embeddable
Definition:
embeddable.h:81
BALL::VIEW::DockWidget::showGuestContextMenu
virtual void showGuestContextMenu(const QPoint &)
Definition:
dockWidget.h:78
Generated by
1.8.7