#include <kdevdesignerintegration.h>
Inherits TQObject.
Public Slots | |
virtual void | addFunction (const TQString &formName, KInterfaceDesigner::Function function)=0 |
virtual void | removeFunction (const TQString &formName, KInterfaceDesigner::Function function)=0 |
virtual void | editFunction (const TQString &formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function)=0 |
virtual void | openFunction (const TQString &formName, const TQString &functionName)=0 |
virtual void | openSource (const TQString &formName)=0 |
Public Member Functions | |
KDevDesignerIntegration (TQObject *parent=0, const char *name=0) | |
~KDevDesignerIntegration () | |
virtual void | saveSettings (TQDomDocument dom, TQString path)=0 |
virtual void | loadSettings (TQDomDocument dom, TQString path)=0 |
Detailed Description
TDevelop designer integration interface.
Designer integration object provides functionality which is used by integrated into KDevelop GUI designers:
- adding/removing/editing functions (class methods);
- opening form implementation files;
- saving and loading designer integration settings.
Designer integration is a layer between visual form (GUI) designer of any type and the current language support. Usually designers create some kind of forms and allow developers to define actions which are executed upon some GUI events (for example, TQt Designer allows to define slots connected to GUI signals). The actual code with action implementations needs to be written by hand in source files. Designer integration captures such implementation requests and opens necessary files at desired line numbers and adds (edits, removes) code for implementations.
For example, TQt Designer integration should be able to create an subclass for a form and reimplement slots defined in the form.
Definition at line 51 of file kdevdesignerintegration.h.
Constructor & Destructor Documentation
◆ KDevDesignerIntegration()
KDevDesignerIntegration::KDevDesignerIntegration | ( | TQObject * | parent = 0 , |
const char * | name = 0 |
||
) |
Constructor.
- Parameters
-
parent Parent object. name Internal name.
Definition at line 27 of file kdevdesignerintegration.cpp.
◆ ~KDevDesignerIntegration()
KDevDesignerIntegration::~KDevDesignerIntegration | ( | ) |
Destructor.
Definition at line 35 of file kdevdesignerintegration.cpp.
Member Function Documentation
◆ addFunction
|
pure virtualslot |
Adds the implementation for a function.
- Parameters
-
formName The name of a GUI form. function The function which needs to be implemented in the source.
◆ editFunction
|
pure virtualslot |
Edites the implementation of a function.
- Parameters
-
formName The name of a GUI form. oldFunction The function which needs to be edited from the source. function The new function declaration.
◆ loadSettings()
|
pure virtual |
Loads designer integration settings.
◆ openFunction
|
pure virtualslot |
Opens the function and jumps to the line number of its definition (declaration).
- Parameters
-
formName The name of a GUI form. functionName The name of a function to find in the source.
◆ openSource
|
pure virtualslot |
Opens the form source.
- Parameters
-
formName The name of a GUI form.
◆ removeFunction
|
pure virtualslot |
Removes the implementation of a function.
- Parameters
-
formName The name of a GUI form. function The function which needs to be removed from the source.
◆ saveSettings()
|
pure virtual |
Saves designer integration settings.
The documentation for this class was generated from the following files: