designer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KINTERFACEDESIGNER_FORMEDITOR_H
00020 #define KINTERFACEDESIGNER_FORMEDITOR_H
00021
00022 #include <kparts/part.h>
00023
00024 namespace KInterfaceDesigner{
00025
00026 enum DesignerType {QtDesigner, Glade};
00027
00028 enum FunctionType {ftFunction, ftQtSlot};
00029
00030 struct Function{
00031 QString returnType;
00032 QString function;
00033 QString specifier;
00034 QString access;
00035 FunctionType type;
00036 };
00037
00038 class Designer: public KParts::ReadWritePart{
00039 Q_OBJECT
00040 public:
00041 Designer(QObject *parent, const char *name);
00042
00043 virtual void openProject(const QString &projectFile) = 0;
00044 virtual DesignerType designerType() = 0;
00045
00046 signals:
00047 void addedFunction(DesignerType type, const QString &formName, Function function);
00048 void removedFunction(DesignerType type, const QString &formName, Function function);
00049 void editedFunction(DesignerType type, const QString &formName, Function oldFunction, Function function);
00050
00051 void editFunction(DesignerType type, const QString &formName, const QString &functionName);
00052 };
00053
00054 }
00055
00056 #endif
This file is part of the documentation for KDevelop Version 3.1.2.