summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kofficepart/kopart_view.h
blob: c685333383dbba8a4ad0ca21aa4e04f19d1b71f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

/* This template is based off of the KOffice example written by Torben Weis <weis@kde.org
   It was converted to a KDevelop template by Ian Reinhart Geiser <geiseri@yahoo.com>
*/

#ifndef %{APPNAME}_VIEW
#define %{APPNAME}_VIEW

#include <koView.h>

class KAction;
class TQPaintEvent;

class %{APPNAME}Part;

class %{APPNAME}View : public KoView
{
    Q_OBJECT
  
public:
    %{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent = 0, const char* name = 0 );

protected slots:
    void cut();

protected:
    void paintEvent( TQPaintEvent* );

    virtual void updateReadWrite( bool readwrite );

private:
    //KAction* m_cut;
};

#endif