QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDockWidget.h
Go to the documentation of this file.
1
20#ifndef RDOCKWIDGET_H_
21#define RDOCKWIDGET_H_
22
23#include "gui_global.h"
24
25#include <QMetaType>
26#include <QDockWidget>
27
28class RFlowLayout;
29
30#define RDEFAULT_QT_WINDOWFLAGS Qt::WindowFlags()
31
36class QCADGUI_EXPORT RDockWidget: public QDockWidget {
37
38Q_OBJECT
39
40public:
41 RDockWidget(const QString& title, QWidget* parent = NULL, Qt::WindowFlags flags = RDEFAULT_QT_WINDOWFLAGS);
42 RDockWidget(QWidget* parent = NULL, Qt::WindowFlags flags = RDEFAULT_QT_WINDOWFLAGS);
43
44signals:
45 void shown();
46 void hidden();
47
48protected:
49 virtual void showEvent(QShowEvent* event);
50 virtual void hideEvent(QHideEvent* event);
51 virtual void closeEvent(QCloseEvent* event);
52 virtual void actionEvent(QActionEvent *event);
53
54 virtual bool event(QEvent* e);
55
56private:
58};
59
61
62#endif
#define RDEFAULT_QT_WINDOWFLAGS
Definition RDockWidget.h:30
Q_DECLARE_METATYPE(RMath *)
Definition RDockWidget.h:36
RFlowLayout * flowLayout
Definition RDockWidget.h:57
void shown()
void hidden()
Flow layout.
Definition RFlowLayout.h:21
#define QCADGUI_EXPORT
Definition gui_global.h:10
#define NULL
Definition opennurbs_system.h:256