~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/plugins/extensions/dockers/colorselectorng/kis_shade_selector_line_combo_box.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (c) 2010 Adam Celarek <kdedev at xibo dot at>
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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.
 
16
 */
 
17
 
 
18
#ifndef KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
 
19
#define KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H
 
20
 
 
21
#include <QComboBox>
 
22
 
 
23
class KisShadeSelectorLineComboBoxPrivate;
 
24
class KisShadeSelectorLine;
 
25
 
 
26
class KisShadeSelectorLineComboBox : public QComboBox
 
27
{
 
28
    Q_OBJECT
 
29
public:
 
30
    explicit KisShadeSelectorLineComboBox(QWidget *parent = 0);
 
31
    void hidePopup();
 
32
    void showPopup();
 
33
    QString configuration() const;
 
34
    void setLineNumber(int n);
 
35
//    QSize sizeHint() const;
 
36
 
 
37
protected:
 
38
    void resizeEvent(QResizeEvent *e);
 
39
 
 
40
public slots:
 
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);
 
47
 
 
48
private:
 
49
    KisShadeSelectorLineComboBoxPrivate* m_private;
 
50
    KisShadeSelectorLine* m_currentLine;
 
51
 
 
52
};
 
53
 
 
54
#endif // KIS_SHADE_SELECTOR_LINE_COMBO_BOX_H