MorphoGraphX
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
src
ResetableSlider.hpp
1
//
2
// This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3
// Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4
//
5
// If you use MorphoGraphX in your work, please cite:
6
// http://dx.doi.org/10.7554/eLife.05864
7
//
8
// MorphoGraphX is free software, and is licensed under under the terms of the
9
// GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10
//
11
#ifndef RESETABLESLIDER_H
12
#define RESETABLESLIDER_H
13
14
#include <Config.hpp>
15
16
#include <QSlider>
17
18
class
QMouseEvent
;
19
20
class
ResetableSlider
:
public
QSlider
{
21
Q_OBJECT
22
public
:
23
ResetableSlider
(
QWidget
* parent = 0);
24
ResetableSlider
(Qt::Orientation orientation,
QWidget
* parent = 0);
25
26
int
defaultValue() {
27
return
default_value;
28
}
29
30
public
slots:
31
void
setValueAsDefault();
32
void
setDefaultValue(
int
val);
33
void
resetValue();
34
35
protected
slots:
36
void
checkDefaultValue(
int
min,
int
max);
37
38
signals:
39
void
reset();
40
41
protected
:
42
void
init();
43
void
mouseDoubleClickEvent(
QMouseEvent
* e);
44
45
private
:
46
int
default_value;
47
};
48
49
#endif
QWidget
QMouseEvent
QSlider
ResetableSlider
Definition:
ResetableSlider.hpp:20
Generated on Tue Feb 27 2018 13:54:37 for MorphoGraphX by
1.8.11