2
* Copyright (c) 2010 Adam Celarek <kdedev at xibo dot at>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 2 of the License.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
#ifndef KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
19
#define KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
23
class KisShadeSelectorLineComboBoxPrivate;
24
class KisShadeSelectorLine;
26
class KisShadeSelectorLineComboBox : public QComboBox
30
explicit KisShadeSelectorLineComboBox(QWidget *parent = 0);
33
QString configuration() const;
34
void setLineNumber(int n);
35
// QSize sizeHint() const;
38
void resizeEvent(QResizeEvent *e);
41
void setConfiguration(const QString& stri);
42
void updateSettings();
43
void setGradient(bool);
44
void setPatches(bool);
45
void setPatchCount(int count);
46
void setLineHeight(int height);
49
KisShadeSelectorLineComboBoxPrivate* m_private;
50
KisShadeSelectorLine* m_currentLine;
54
#endif // KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H