Engauge Digitizer
2
View
ViewPointStyle.h
Go to the documentation of this file.
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
ViewPointStyle::unsetPointStyle
void unsetPointStyle()
Apply no PointStyle.
Definition:
ViewPointStyle.cpp:89
ViewPointStyle::ViewPointStyle
ViewPointStyle(QWidget *parent=0)
Single constructor.
Definition:
ViewPointStyle.cpp:16
PointStyle.h
ViewPointStyle
Class that displays a view of the current Curve's point style.
Definition:
ViewPointStyle.h:15
ViewPointStyle::setEnabled
void setEnabled(bool enabled)
Show the style with semi-transparency or full-transparency to indicate if associated Curve is active ...
Definition:
ViewPointStyle.cpp:72
ViewPointStyle::setPointStyle
void setPointStyle(const PointStyle &pointStyle)
Apply the PointStyle of the currently selected curve.
Definition:
ViewPointStyle.cpp:81
PointStyle
Details for a specific Point.
Definition:
PointStyle.h:19
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16