FloatingDragPreview.h
Go to the documentation of this file.
1 #ifndef FloatingDragPreviewH
2 #define FloatingDragPreviewH
3 //============================================================================
8 //============================================================================
9 
10 //============================================================================
11 // INCLUDES
12 //============================================================================
13 #include <QWidget>
14 #include "FloatingDockContainer.h"
15 
16 namespace ads
17 {
18 class CDockWidget;
19 class CDockAreaWidget;
20 struct FloatingDragPreviewPrivate;
21 
28 class CFloatingDragPreview : public QWidget, public IFloatingWidget
29 {
30  Q_OBJECT
31 private:
34 
35 private slots:
39  void onApplicationStateChanged(Qt::ApplicationState state);
40 
41 protected:
45  virtual void paintEvent(QPaintEvent *e) override;
46 
50  CFloatingDragPreview(QWidget* Content, QWidget* parent);
51 
52 public:
53  using Super = QWidget;
54 
59 
65 
70 
75  virtual bool eventFilter(QObject *watched, QEvent *event) override;
76 
77 
78 public: // implements IFloatingWidget -----------------------------------------
79  virtual void startFloating(const QPoint& DragStartMousePos, const QSize& Size,
80  eDragState DragState, QWidget* MouseEventHandler) override;
81 
86  virtual void moveFloating() override;
87 
93  virtual void finishDragging() override;
94 
95 signals:
100  void draggingCanceled();
101 };
102 
103 
104 } // namespace ads
105 
106 //---------------------------------------------------------------------------
107 #endif // FloatingDragPreviewH
108 
ads::CFloatingDragPreview::Super
QWidget Super
Definition: FloatingDragPreview.h:53
ads::CFloatingDragPreview::onApplicationStateChanged
void onApplicationStateChanged(Qt::ApplicationState state)
Definition: FloatingDragPreview.cpp:390
detail::state
state
Definition: core.h:2305
ads::CFloatingDragPreview::startFloating
virtual void startFloating(const QPoint &DragStartMousePos, const QSize &Size, eDragState DragState, QWidget *MouseEventHandler) override
Definition: FloatingDragPreview.cpp:305
ads::CFloatingDragPreview::finishDragging
virtual void finishDragging() override
Definition: FloatingDragPreview.cpp:319
ads::CFloatingDragPreview::CFloatingDragPreview
CFloatingDragPreview(QWidget *Content, QWidget *parent)
Definition: FloatingDragPreview.cpp:219
FloatingDockContainer.h
Declaration of CFloatingDockContainer class.
ads::CFloatingDragPreview::moveFloating
virtual void moveFloating() override
Definition: FloatingDragPreview.cpp:294
ads::CDockAreaWidget
Definition: DockAreaWidget.h:55
ads::CFloatingDragPreview
Definition: FloatingDragPreview.h:28
ads::CFloatingDragPreview::d
FloatingDragPreviewPrivate * d
Definition: FloatingDragPreview.h:32
ads::CFloatingDragPreview::draggingCanceled
void draggingCanceled()
ads
Definition: ads_globals.h:69
ads::CFloatingDragPreview::eventFilter
virtual bool eventFilter(QObject *watched, QEvent *event) override
Definition: FloatingDragPreview.cpp:402
ads::CDockWidget
Definition: DockWidget.h:54
ads::CFloatingDragPreview::paintEvent
virtual void paintEvent(QPaintEvent *e) override
Definition: FloatingDragPreview.cpp:357
ads::eDragState
eDragState
Definition: ads_globals.h:99
ads::IFloatingWidget
Definition: FloatingDockContainer.h:68
ads::CFloatingDragPreview::~CFloatingDragPreview
~CFloatingDragPreview()
Definition: FloatingDragPreview.cpp:287
ads::FloatingDragPreviewPrivate
Definition: FloatingDragPreview.cpp:31


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44