#include <designer.h>
Inherits ReadWritePart.
Signals | |
void | addedFunction (DesignerType type, const TQString &formName, Function function) |
void | removedFunction (DesignerType type, const TQString &formName, Function function) |
void | editedFunction (DesignerType type, const TQString &formName, Function oldFunction, Function function) |
void | editFunction (DesignerType type, const TQString &formName, const TQString &functionName) |
void | editSource (DesignerType type, const TQString &formName) |
void | newStatus (const TQString &formName, int status) |
Public Member Functions | |
Designer (TQObject *parent, const char *name) | |
virtual void | openProject (const TQString &projectFile)=0 |
virtual DesignerType | designerType ()=0 |
Detailed Description
GUI Designer Part Interface.
Each KPart that wants to act as a GUI Designer must implement this interface. It defines necessary signals to communicate with an IDE and abstract virtual functions to determine designer type.
Parts that implement this interface must emit its signals when necessary. See signals documentation for an explanation on when to emit those.
If a part which can "design" user interface files of a certain mimetype implements this interface and sets itself as a default handler for that mimetype then it becomes automatically integrated into TDevelop IDE.
Definition at line 66 of file designer.h.
Member Function Documentation
◆ addedFunction
|
signal |
Emit this signal when a function was added by a designer.
For example, when a slot or a callback function was defined.
◆ designerType()
|
pure virtual |
Reimplement this return the type of this designer.
◆ editedFunction
|
signal |
Emit this signal when a function signature was edited by a designer.
◆ editFunction
|
signal |
Emit this signal when a designer wants to open the editor with function definition.
◆ editSource
|
signal |
Emit this signal when a designer wants to open the editor for a form sources.
◆ newStatus
|
signal |
Emitted when a form state is changed in the designer.
- Parameters
-
formName An absolute name of the form file. status 0: form is clean, 1: form is modified.
◆ openProject()
|
pure virtual |
Reimplement this to be able to open projects.
◆ removedFunction
|
signal |
Emit this signal when a function was removed by a designer.
The documentation for this class was generated from the following files: