stec-platform
vprofile.h
1 #ifndef VPROFILE_H
2 #define VPROFILE_H
3 /*
4 *
5 * $LastChangedDate: 2014-08-14 12:47:21 -0400 (Thu, 14 Aug 2014) $
6 * $LastChangedBy: ed $
7 * $Revision: 61 $
8 * $Author: ed $
9 * $URL: svn+ssh://svn.vremsoft.com/var/share/svn/tags/platfom3.4.3/platformglib/vprofile.h $
10 * $Id: vprofile.h 61 2014-08-14 16:47:21Z ed $
11 * edc@vremsoft.com
12 *
13 * 19
14 *
15 * *** 2014<c> ***
16 *
17 *
18 */
19 #include <QWidget>
20 #include <QString>
21 #include "platformg_global.h"
22 #include <memoryheap.h>
23 #include <memoryatom.h>
24 #include <subscription.h>
25 #include <QPen>
26 #include <QPainter>
27 
33 class PLATFORMGSHARED_EXPORT VProfile : public QWidget
34 {
35  Q_OBJECT
36 public:
37  enum Shape { Line, Points, Rect, Text, Pixmap };
38 
39  explicit VProfile(QWidget *parent = 0);
40 
41  QSize minimumSizeHint() const;
42  QSize sizeHint() const;
43 
44  QString ProfileTag;
45  QString ControlTag;
46 signals:
47 
48 public slots:
49  void setShape(Shape shape);
50  void setPen(const QPen &pen);
51  void setBrush(const QBrush &brush);
52  void setAntialiased(bool antialiased);
53  void setTransformed(bool transformed);
54  void setPixmap(QPixmap Pixmap);
55  void setProfileTag(QString tag);
56  void setProfileLogicTag(QString tag);
57 
58 protected:
59  void paintEvent(QPaintEvent *event);
60 
61 private:
62  Shape shape;
63  QPen pen;
64  QBrush brush;
65  bool antialiased;
66  bool transformed;
67  QPixmap pixmap;
68 
69 };
70 
71 #endif // VPROFILE_H
The VProfile class simple profiles if needed.
Definition: vprofile.h:34