You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
840 B
44 lines
840 B
15 years ago
|
|
||
|
#ifndef __parts_h__
|
||
|
#define __parts_h__
|
||
|
|
||
12 years ago
|
#include <tdeparts/part.h>
|
||
15 years ago
|
|
||
14 years ago
|
class TQMultiLineEdit;
|
||
15 years ago
|
namespace KParts {
|
||
|
class GUIActivateEvent;
|
||
|
};
|
||
|
|
||
|
class Part1 : public KParts::ReadOnlyPart
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
Part1( TQObject *parent, TQWidget * parentWidget );
|
||
15 years ago
|
virtual ~Part1();
|
||
|
|
||
|
protected:
|
||
|
virtual bool openFile();
|
||
|
|
||
|
protected:
|
||
15 years ago
|
TQMultiLineEdit * m_edit;
|
||
12 years ago
|
TDEInstance *m_instance;
|
||
15 years ago
|
};
|
||
|
|
||
|
class Part2 : public KParts::Part
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
Part2( TQObject *parent, TQWidget * parentWidget );
|
||
15 years ago
|
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 * );
|
||
12 years ago
|
TDEInstance *m_instance;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|