Debian Codegraph @

src/qutespinbox.h

raw symbols SCIP
1 /*
2 Copyright (C) 2008, 2009 Andres Cabrera
3 [email protected]
4
5 This file is part of CsoundQt.
6
7 CsoundQt is free software; you can redistribute it
8 and/or modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 CsoundQt is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with Csound; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 02111-1307 USA
21 */
22
23 #ifndef QUTESPINBOX_H
24 #define QUTESPINBOX_H
25
26 #include "qutetext.h"
27
28 class QuteSpinBox : public QuteText
29 {
30 Q_OBJECT
31 public:
32 QuteSpinBox(QWidget* parent);
33 ~QuteSpinBox();
34
35 virtual void setText(QString text);
36 virtual void setMidiValue(int value);
37 virtual bool acceptsMidi() {return true;}
38 // virtual void setResolution(double resolution);
39 virtual QString getWidgetLine();
40 virtual QString getCsladspaLine();
41 virtual QString getWidgetXmlText();
42 virtual QString getWidgetType();
43 virtual QString getCabbageLine();
44 virtual QString getQml();
45
46 virtual void refreshWidget();
47 virtual void applyInternalProperties();
48
49 protected:
50 virtual void createPropertiesDialog();
51 virtual void applyProperties();
52
53 protected slots:
54 void valueChanged(double value);
55 void setInternalValue(double value);
56 void editingFinishedSlot();
57
58 private:
59 QDoubleSpinBox *minSpinBox;
60 QDoubleSpinBox *maxSpinBox;
61 QDoubleSpinBox* resolutionSpinBox;
62 };
63
64 #endif