VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
widgetAnimator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 
10 #include <QtCore/QTimeLine>
11 #include <QtCore/QPoint>
12 #include <QtWidgets/QWidget>
13 #include <QtGui/QPaintEvent>
14 
15 namespace makVrf
16 {
18  {
25  };
26 
29 
32  class RenderArea : public QWidget
33  {
34  Q_OBJECT
35 
36  public:
37 
38  RenderArea(QWidget* parent = 0);
39 
40  void setPixmap( QPixmap& px);
41 
42  protected:
43  virtual void paintEvent(QPaintEvent* event) override;
44 
45  private:
46 
47  QPixmap myPixmap;
48  };
49 
54  {
55  Q_OBJECT
56 
57  public:
58 
60  DtWidgetAnimator(QObject* parent = 0);
61 
63  virtual ~DtWidgetAnimator() override;
64 
67  void move(QWidget* w, int top, int left, int time = 800);
68 
70  void reset();
71 
74  void slide(QWidget* w, AnimationType type=SlideOpenRToL, int time = 200, const QRect& finalRect = QRect());
75 
76  protected:
77 
79  void setup();
80 
81  protected slots:
82 
84  void slot_timeLineFrameChanged(int);
85 
87  void slot_timeLineStateChanged(QTimeLine::State);
88 
90  void widgetDestroyed();
91 
92  protected:
93 
94  QTimeLine* myTimeLine;
96  QWidget* myWidget;
97  QPixmap myPixmap;
99  QPoint myOrigin;
101  QPoint myVector;
103  };
104 }
RenderArea * myRendering
Definition: widgetAnimator.h:98
Definition: widgetAnimator.h:19
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QRect myFinalGeometry
Definition: widgetAnimator.h:102
virtual void paintEvent(QPaintEvent *event) override
AnimationType
Definition: widgetAnimator.h:17
QPixmap myPixmap
Definition: widgetAnimator.h:97
RenderArea(QWidget *parent=0)
Definition: widgetAnimator.h:22
QTimeLine * myTimeLine
Definition: widgetAnimator.h:94
Represents a widget that gets drawn for animation purposes.
Definition: widgetAnimator.h:32
QPoint myOrigin
Definition: widgetAnimator.h:99
Definition: widgetAnimator.h:23
QPoint myVector
Definition: widgetAnimator.h:101
Definition: widgetAnimator.h:21
QWidget * myWidget
Definition: widgetAnimator.h:96
QPoint myDestination
Definition: widgetAnimator.h:100
Represents a widget that can animate the movement of other widgets.
Definition: widgetAnimator.h:53
QPixmap myPixmap
Definition: widgetAnimator.h:47
Definition: widgetAnimator.h:20
AnimationType myAnimationType
Definition: widgetAnimator.h:95
void setPixmap(QPixmap &px)
Definition: widgetAnimator.h:24

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)