summaryrefslogtreecommitdiffstats
path: root/kparts/tests/parts.h
blob: 873a6fea4d9ac94d3b369cab3af87e02701e4a6d (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
36
37
38
39
40
41
42
43

#ifndef __parts_h__
#define __parts_h__

#include <kparts/part.h>

class TQMultiLineEdit;
namespace KParts {
class GUIActivateEvent;
};

class Part1 : public KParts::ReadOnlyPart
{
  Q_OBJECT
public:
  Part1( TQObject *parent, TQWidget * tqparentWidget );
  virtual ~Part1();

protected:
  virtual bool openFile();

protected:
  TQMultiLineEdit * m_edit;
  KInstance *m_instance;
};

class Part2 : public KParts::Part
{
  Q_OBJECT
public:
  Part2( TQObject *parent, TQWidget * tqparentWidget );
  virtual ~Part2();

protected:
  // This is not mandatory - only if you care about setting the
  // part caption when the part is used in a multi-part environment
  // (i.e. in a part manager)
  // There is a default impl for ReadOnlyPart...
  virtual void guiActivateEvent( KParts::GUIActivateEvent * );
  KInstance *m_instance;
};

#endif