Engauge Digitizer  2
ViewPointStyle.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef VIEW_POINT_STYLE_H
8 #define VIEW_POINT_STYLE_H
9 
10 #include "PointStyle.h"
11 #include <QLabel>
12 #include <QPixmap>
13 
16 class ViewPointStyle : public QLabel
17 {
18 public:
20  ViewPointStyle(QWidget *parent = 0);
21 
23  void setEnabled (bool enabled);
24 
26  void setPointStyle (const PointStyle &pointStyle);
27 
29  void unsetPointStyle ();
30 
31 private:
32 
33  QPixmap pixmapForCurrentSettings () const;
34 
35  // Current settings
36  PointStyle m_pointStyle;
37  bool m_enabled;
38 };
39 
40 #endif // VIEW_POINT_STYLE_H
void unsetPointStyle()
Apply no PointStyle.
ViewPointStyle(QWidget *parent=0)
Single constructor.
Details for a specific Point.
Definition: PointStyle.h:20
void setEnabled(bool enabled)
Show the style with semi-transparency or full-transparency to indicate if associated Curve is active ...
void setPointStyle(const PointStyle &pointStyle)
Apply the PointStyle of the currently selected curve.
Class that displays a view of the current Curve&#39;s point style.