Debian Codegraph @

src/qutecheckbox.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 QUTECHECKBOX_H
24 #define QUTECHECKBOX_H
25
26 #include "qutewidget.h"
27
28 class QuteCheckBox : public QuteWidget
29 {
30 Q_OBJECT
31 public:
32 QuteCheckBox(QWidget *parent);
33
34 ~QuteCheckBox();
35
36 virtual void setValue(double value); // Value of checkbox when pressed and state at the same time (if negative set value)
37 void setLabel(QString label);
38 virtual double getValue(); // This value represents the state of the button
39 // QString getLabel();
40 virtual QString getWidgetLine();
41 virtual QString getCabbageLine();
42 virtual QString getWidgetXmlText();
43 virtual QString getWidgetType();
44 virtual QString getQml();
45 virtual void setMidiValue(int value);
46 virtual bool acceptsMidi() {return true;}
47
48 virtual void refreshWidget();
49 virtual void applyInternalProperties();
50
51 // void popUpMenu(QPoint pos);
52 virtual void resizeEvent(QResizeEvent *);
53
54 protected:
55 virtual void applyProperties();
56 virtual void createPropertiesDialog();
57
58
59 private:
60 double m_currentValue;
61 QDoubleSpinBox *valueBox;
62
63 private slots:
64 void stateChanged(int state);
65
66 };
67
68 #endif