Debian Codegraph @

src/quteslider.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 QUTESLIDER_H
24 #define QUTESLIDER_H
25
26 #include "qutewidget.h"
27
28 class QuteSlider : public QuteWidget
29 {
30 Q_OBJECT
31 public:
32 QuteSlider(QWidget *parent);
33
34 ~QuteSlider();
35
36 virtual void setWidgetGeometry(int x, int y, int w, int h);
37 virtual QString getWidgetLine();
38 virtual QString getCabbageLine();
39 virtual QString getCsladspaLine();
40 virtual QString getWidgetXmlText();
41 virtual QString getQml();
42
43 virtual QString getWidgetType();
44 // void setInternalValue(double value);
45 virtual void setValue(double value);
46 virtual void setMidiValue(int value);
47 virtual bool acceptsMidi() {return true;}
48
49 virtual void refreshWidget();
50 virtual void applyInternalProperties();
51
52 protected:
53 virtual void createPropertiesDialog();
54 virtual void applyProperties();
55
56 protected slots:
57 // void valueChanged(int value);
58
59 private:
60 QDoubleSpinBox *minSpinBox;
61 QDoubleSpinBox *maxSpinBox;
62 int m_len; //length of the slider
63
64 private slots:
65 void sliderChanged(int value);
66 void setInternalValue(double value); // This function must be protected using the widget mutex by the caller
67 };
68
69 #endif