Vuo
2.0.3
editor
VuoDetailsEditorNumeric.hh
Go to the documentation of this file.
1
10
#pragma once
11
12
class
VuoType
;
13
18
class
VuoDetailsEditorNumeric
:
public
QWidget
19
{
20
Q_OBJECT
21
public
:
22
explicit
VuoDetailsEditorNumeric
(
VuoType
*type, QWidget *parent=0);
23
json_object
*
show
(QPoint portLeftCenter,
json_object
*originalDetails);
24
25
protected
:
26
void
setUpDialog
(QDialog &dialog,
json_object
*originalDetails);
27
void
setUpLineEdit
(QLineEdit *lineEdit,
json_object
*originalValue);
28
QString
convertToLineEditFormat
(
json_object
*value);
29
json_object
*
convertFromLineEditsFormat
(
const
QString &suggestedMinValueAsString,
30
const
QString &suggestedMaxValueAsString,
31
const
QString &suggestedStepValueAsString);
32
json_object
*
getAcceptedValue
(
void
);
33
34
private
:
35
enum
detail
36
{
37
suggestedMin,
38
suggestedMax,
39
suggestedStep
40
};
41
42
VuoType
*type;
43
map<detail, QLineEdit *> lineEditForDetail;
44
map<detail, QLabel *> labelForDetail;
45
46
QFont getDefaultFont(
void
);
47
};
Generated on Tue Apr 28 2020 16:53:59 for Vuo by
1.8.17