• 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
KoResourcePopupAction.h
Go to the documentation of this file.
1 /*
2  * Made by Tomislav Lukman ([email protected])
3  * SPDX-FileCopyrightText: 2012 Jean-Nicolas Artaud <[email protected]>
4  * SPDX-FileCopyrightText: 2019 Boudewijn Rempt <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.0-or-later
7  */
8 
9 #ifndef KORESOURCEPOPUPACTION_H
10 #define KORESOURCEPOPUPACTION_H
11 
12 #include <QAction>
13 
14 #include <QSharedPointer>
15 
16 #include <KoResource.h>
17 
18 class KoShapeBackground;
19 class QModelIndex;
20 
21 class KoCanvasResourcesInterface;
22 using KoCanvasResourcesInterfaceSP = QSharedPointer<KoCanvasResourcesInterface>;
23 
24 #include "kritawidgets_export.h"
25 
26 class KRITAWIDGETS_EXPORT KoResourcePopupAction : public QAction
27 {
28  Q_OBJECT
29 
30 public:
37  explicit KoResourcePopupAction(const QString &resourceType, KoCanvasResourcesInterfaceSP canvasResourcesInterface, QObject *parent = 0);
38 
42  ~KoResourcePopupAction() override;
43 
44  QSharedPointer<KoShapeBackground> currentBackground() const;
45  void setCurrentBackground(QSharedPointer<KoShapeBackground> background);
46 
47  void setCurrentResource(KoResourceSP resource);
48  KoResourceSP currentResource() const;
49 
50  void setCanvasResourcesInterface(KoCanvasResourcesInterfaceSP canvasResourcesInterface);
51 
52 Q_SIGNALS:
54  void resourceSelected(QSharedPointer<KoShapeBackground> background);
55 
56 public Q_SLOTS:
57  void updateIcon();
58 
59 private Q_SLOTS:
60  void indexChanged(const QModelIndex &modelIndex);
61 
62 private:
63  class Private;
64  Private * const d;
65 };
66 
67 #endif /* KORESOURCEPOPUPACTION_H */
KoResourcePopupAction
Definition: KoResourcePopupAction.h:26
QSharedPointer< KoCanvasResourcesInterface >
QObject
QString
QAction
QModelIndex
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 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