blob: 94cbf164a1bd191fb61a569bc6421488dedd21cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/***************************************************************************
doubleeditors.h - description
-------------------
begin : dom ago 3 2003
copyright : (C) 2003 by gulmini luciano
email : gulmini.luciano@student.unife.it
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef DOUBLEEDITORS_H
#define DOUBLEEDITORS_H
#include "minieditor.h"
class mySpinBox;
class specialSB;
class TQSpinBox;
class TQComboBox;
class doubleEditorBase : public miniEditor {
Q_OBJECT
protected:
TQString m_sxValue,
m_dxValue;
public:
doubleEditorBase(TQWidget *parent=0, const char *name=0);
virtual ~doubleEditorBase(){}
virtual void setInitialValue(){}
virtual void connectToPropertySetter(propertySetter* /*p*/){}
public slots:
void sxValueSlot(const TQString&);
void dxValueSlot(const TQString&);
signals:
void valueChanged(const TQString&);
};
class doublePercentageEditor : public doubleEditorBase {
Q_OBJECT
private:
mySpinBox *m_sbSx,
*m_sbDx;
public:
doublePercentageEditor(TQWidget *parent=0, const char *name=0);
virtual ~doublePercentageEditor();
virtual void setInitialValue(const TQString& sx, const TQString& dx);
virtual void connectToPropertySetter(propertySetter* p);
};
class doubleComboBoxEditor : public doubleEditorBase {
Q_OBJECT
private:
TQComboBox *m_cbSx,
*m_cbDx;
public:
doubleComboBoxEditor(TQWidget *parent=0, const char *name=0);
virtual ~doubleComboBoxEditor();
TQComboBox* cbSx() const { return m_cbSx;}
TQComboBox* cbDx() const { return m_cbDx;}
virtual void connectToPropertySetter(propertySetter* p);
};
class doubleLengthEditor : public doubleEditorBase {
Q_OBJECT
private:
specialSB *m_ssbSx,
*m_ssbDx;
public:
doubleLengthEditor(TQWidget *parent=0, const char *name=0);
virtual ~doubleLengthEditor();
virtual void setInitialValue(const TQString& sx, const TQString& dx);
virtual void connectToPropertySetter(propertySetter* p);
};
#endif
|