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.
80 lines
1.6 KiB
80 lines
1.6 KiB
//
|
|
// C++ Interface: kmfruleoptioneditiip
|
|
//
|
|
// Description:
|
|
//
|
|
//
|
|
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2004
|
|
//
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
//
|
|
//
|
|
#ifndef KMFRULEOPTIONEDITINTERFACE_H
|
|
#define KMFRULEOPTIONEDITINTERFACE_H
|
|
|
|
#include "../../core/kmfruleoptioneditinterface.h"
|
|
|
|
// KDE includes
|
|
#include <kparts/part.h>
|
|
#include <kparts/plugin.h>
|
|
#include <kparts/factory.h>
|
|
#include <kxmlgui.h>
|
|
|
|
class KInstance;
|
|
|
|
namespace KMF {
|
|
class IPTRule;
|
|
class KMFRuleEditorInterface;
|
|
/**
|
|
@author Christian Hubinger
|
|
*/
|
|
class KMFRuleOptionEditorInterface : public KMFRuleOptionEditInterface {
|
|
Q_OBJECT
|
|
TQ_OBJECT
|
|
public:
|
|
KMFRuleOptionEditorInterface(TQObject *tqparent = 0, const char *name = 0);
|
|
|
|
~KMFRuleOptionEditorInterface();
|
|
void loadRule( IPTRule* rule );
|
|
TQWidget* editWidget();
|
|
const TQString& optionEditName() const;
|
|
const TQString& description() const;
|
|
|
|
private slots:
|
|
void slotShowOverview();
|
|
|
|
private:
|
|
KMFRuleEditorInterface *m_edit;
|
|
IPTRule *m_rule;
|
|
|
|
};
|
|
|
|
|
|
|
|
class KMFRuleOptionEditorInterfaceFactory : public KLibFactory {
|
|
Q_OBJECT
|
|
TQ_OBJECT
|
|
public:
|
|
KMFRuleOptionEditorInterfaceFactory( TQObject *tqparent = 0, const char *name = 0 );
|
|
virtual ~KMFRuleOptionEditorInterfaceFactory() {
|
|
/* delete s_instance; */
|
|
};
|
|
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
|
|
const char* name = TQOBJECT_OBJECT_NAME_STRING,
|
|
const TQStringList &args = TQStringList() );
|
|
/* static KInstance* instance(); */
|
|
|
|
/*private:
|
|
static KInstance* s_instance;*/
|
|
};
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|