ODIN
odinqt
intedit.h
1
/***************************************************************************
2
intedit.h - description
3
-------------------
4
begin : Sun Aug 27 2000
5
copyright : (C) 2000-2021 by Thies Jochimsen
6
email : thies@jochimsen.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef INTEDIT_H
19
#define INTEDIT_H
20
21
#include <qgroupbox.h>
22
23
#include "odinqt.h"
24
28
class
intLineEdit
:
public
QObject {
29
Q_OBJECT
30
31
public
:
32
intLineEdit
(
int
minValue,
int
maxValue,
int
value, QWidget *parent,
const
char
*name,
int
width,
int
height );
33
~
intLineEdit
();
34
35
QWidget* get_widget() {
return
gle->get_widget();}
36
37
public
slots:
38
void
setintLineEditValue(
int
value );
39
40
private
slots:
41
void
emitSignal( );
42
43
signals:
44
void
intLineEditValueChanged(
int
value );
45
46
private
:
47
48
void
set_value(
int
value);
49
50
GuiLineEdit
* gle;
51
52
};
53
54
56
57
62
class
intLineBox
:
public
QGroupBox {
63
Q_OBJECT
64
65
public
:
66
intLineBox
(
int
value, QWidget *parent,
const
char
*name);
67
~
intLineBox
();
68
69
public
slots:
70
void
setintLineBoxValue(
int
value );
71
72
private
slots:
73
void
emitSignal(
int
value );
74
75
signals:
76
void
intLineBoxValueChanged(
int
value );
77
void
SignalToChild(
int
value );
78
79
private
:
80
GuiGridLayout
* grid;
81
intLineEdit
*le;
82
83
};
84
86
87
88
93
class
intScientSlider
:
public
QGroupBox {
94
Q_OBJECT
95
96
public
:
97
intScientSlider
(
int
minValue,
int
maxValue,
int
Step
,
int
value, QWidget *parent,
const
char
*name);
98
~
intScientSlider
();
99
100
public
slots:
101
void
setintScientSliderValue(
int
value );
102
103
104
private
slots:
105
void
emitSignal(
int
value );
106
107
signals:
108
void
intScientSliderValueChanged(
int
value );
109
110
private
:
111
int
value;
112
GuiSlider
* slider;
113
GuiGridLayout
* grid;
114
intLineEdit
*le;
115
116
};
117
119
120
121
#endif
GuiGridLayout
Definition:
odinqt.h:150
GuiLineEdit
Definition:
odinqt.h:204
GuiSlider
Definition:
odinqt.h:254
Step
Definition:
odindata/step.h:35
intLineBox
Definition:
intedit.h:62
intLineEdit
Definition:
intedit.h:28
intScientSlider
Definition:
intedit.h:93
Generated on Fri Oct 15 2021 11:36:57 for ODIN by
1.9.1