~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to applets/kolourpicker/kolourpicker.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 68.
  • Revision ID: james.westby@ubuntu.com-20100525095014-e3cebfkdenjrx3xg
Tags: upstream-4.4.80
ImportĀ upstreamĀ versionĀ 4.4.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
#include <qcolor.h>
16
16
#include <qhash.h>
 
17
#include <QString>
 
18
#include <QColor>
17
19
 
18
20
class QMenu;
19
21
class QWidget;
43
45
        void grabClicked();
44
46
        void historyClicked();
45
47
        void colorActionTriggered(QAction *act);
 
48
        void colorActionTriggered(const QColor& color);
46
49
        void clearHistory(bool save = true);
47
50
        void installFilter();
 
51
        void setDefaultColorFormat(QAction* act);
48
52
 
49
53
    private:
50
54
        void addColor(const QColor &color, bool save = true);
51
55
        void saveData(KConfigGroup &cg);
52
 
 
 
56
        QString toLatex(const QColor& color);
53
57
        Plasma::ToolButton *m_grabButton;
54
 
        Plasma::ToolButton *m_historyButton;
55
 
        QMenu *m_historyMenu;
 
58
        Plasma::ToolButton *m_configAndHistory;
 
59
        QMenu *m_configAndHistoryMenu;
56
60
        QHash<QColor, QAction *> m_menus;
57
61
        QStringList m_colors;
 
62
        QStringList m_colors_format;
58
63
        QWidget *m_grabWidget;
 
64
        QString m_color_format;
59
65
};
60
66
 
61
67
inline uint qHash(const QColor &color)