BALL
1.4.2
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
Generated by
1.8.3.1