• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • krita API Reference
  • KDE Home
  • Contact Us
 

KritaWidgets

  • sources
  • kfour-appscomplete
  • krita
  • libs
  • widgets
KoColorSetWidget.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  SPDX-FileCopyrightText: 2007 C. Boemann <[email protected]>
3  SPDX-FileCopyrightText: 2007 Fredy Yanardi <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KOCOLORSETWIDGET_H_
9 #define KOCOLORSETWIDGET_H_
10 
11 #include <QWidgetAction>
12 #include <QFrame>
13 
14 #include <KisSwatch.h>
15 #include <KoColorSet.h>
16 
17 #include <KoColorDisplayRendererInterface.h>
18 
19 #include "kritawidgets_export.h"
20 
21 class KoColor;
22 class KoColorPatch;
23 
30 class KRITAWIDGETS_EXPORT KoColorSetWidget : public QFrame
31 {
32 
33  Q_OBJECT
34 
35 public:
36 
42  explicit KoColorSetWidget(QWidget *parent=0);
43 
47  ~KoColorSetWidget() override;
48 
53  void setColorSet(KoColorSetSP colorSet);
54 
60  void setDisplayRenderer(const KoColorDisplayRendererInterface *displayRenderer);
61 
66  KoColorSetSP colorSet();
67 
68 protected:
69  void resizeEvent(QResizeEvent *event) override;
70 
71 Q_SIGNALS:
72 
79  void colorChanged(const KoColor &color, bool final);
80 
87  void widgetSizeChanged(const QSize &size);
88 
89 private Q_SLOTS:
94  void slotPatchTriggered(KoColorPatch *);
99  void slotColorSelectedByPalette(const KoColor &color);
100  void slotPaletteChoosen(KoColorSetSP );
101  void slotNameListSelection(const KoColor &);
102 
103 private:
104  class KoColorSetWidgetPrivate;
105  KoColorSetWidgetPrivate * const d;
106 };
107 
108 #endif
QFrame
QWidget::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
QWidget
QSize
KoColorSetWidget
A colormanaged widget for choosing a color from a colorset.
Definition: KoColorSetWidget.h:30
QResizeEvent
KoColorSetWidgetPrivate
KoColorPatch
SPDX-FileCopyrightText: 2006 C.
Definition: KoColorPatch.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 11:48:22 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KritaWidgets

Skip menu "KritaWidgets"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

krita API Reference

Skip menu "krita API Reference"
  • libs
  •   KritaBasicFlakes
  •   brush
  •   KritaUndo2
  •   KritaFlake
  •   image
  •   KritaPlugin
  •   Krita
  •   KritaPigment
  •   KritaResources
  •   KritaStore
  •   ui
  •   KritaWidgets
  •   KritaWidgetUtils
  • plugins
  •   Assitants
  •   Extensions
  •   Filters
  •   Generators
  •   Formats
  •           src
  •   PaintOps
  •     libpaintop

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal