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

kapptemplate

  • sources
  • kde-4.14
  • kdesdk
  • kapptemplate
  • templates
  • C++
  • flake
%{APPNAME}Tool.h
Go to the documentation of this file.
1 #ifndef %{APPNAMEUC}TOOL_H
2 #define %{APPNAMEUC}TOOL_H
3 
4 #include <KoTool.h>
5 class %{APPNAME}Shape;
6 class %{APPNAME}Widget;
7 
8 class %{APPNAME}Tool : public KoTool
9 {
10  Q_OBJECT
11 public:
12  %{APPNAME}Tool ( KoCanvasBase *canvas );
13  void paint( QPainter& painter, const KoViewConverter& viewconverter );
14  void mousePressEvent( KoPointerEvent* );
15  void mouseMoveEvent( KoPointerEvent* );
16  void mouseReleaseEvent( KoPointerEvent* );
17  QWidget *createOptionWidget();
18  void activate( bool temporary = false );
19  void deactivate();
20 private:
21  %{APPNAME}Shape *m_shape;
22 };
23 
24 #endif // %{APPNAME}Tool.h
QWidget
deactivate
void deactivate()
paint
void paint(QPainter &painter, const KoViewConverter &viewconverter)
Widget
class @2 Widget
Tool
class @3 Tool(KoCanvasBase *canvas)
mouseReleaseEvent
void mouseReleaseEvent(KoPointerEvent *)
m_shape
m_shape(0)
Definition: %{APPNAME}Tool.cpp:9
mouseMoveEvent
void mouseMoveEvent(KoPointerEvent *)
createOptionWidget
QWidget * createOptionWidget()
QPainter
activate
void activate(bool temporary=false)
APPNAME
main APPNAME
mousePressEvent
void mousePressEvent(KoPointerEvent *)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

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