• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KInterfaceDesigner Library
 

KInterfaceDesigner Library

  • lib
  • interfaces
  • external
designer.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Alexander Dymo <cloudtemple@mksat.net>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19#ifndef KINTERFACEDESIGNER_FORMEDITOR_H
20#define KINTERFACEDESIGNER_FORMEDITOR_H
21
22#include <tdeparts/part.h>
23
25namespace KInterfaceDesigner{
26
28enum DesignerType {
29 TQtDesigner ,
30 Glade
31};
32
34enum FunctionType {
35 ftFunction ,
36 ftTQtSlot
37};
38
40struct Function{
42 TQString returnType;
44 TQString function;
46 TQString specifier;
48 TQString access;
50 FunctionType type;
51};
52
66class Designer: public KParts::ReadWritePart{
67 TQ_OBJECT
68
69public:
70 Designer(TQObject *parent, const char *name);
71
73 virtual void openProject(const TQString &projectFile) = 0;
75 virtual DesignerType designerType() = 0;
76
77signals:
80 void addedFunction(DesignerType type, const TQString &formName, Function function);
82 void removedFunction(DesignerType type, const TQString &formName, Function function);
84 void editedFunction(DesignerType type, const TQString &formName, Function oldFunction, Function function);
85
87 void editFunction(DesignerType type, const TQString &formName, const TQString &functionName);
89 void editSource(DesignerType type, const TQString &formName);
90
94 void newStatus(const TQString &formName, int status);
95};
96
97}
98
99#endif
KInterfaceDesigner::Designer
GUI Designer Part Interface.
Definition designer.h:66
KInterfaceDesigner::Designer::removedFunction
void removedFunction(DesignerType type, const TQString &formName, Function function)
Emit this signal when a function was removed by a designer.
KInterfaceDesigner::Designer::designerType
virtual DesignerType designerType()=0
Reimplement this return the type of this designer.
KInterfaceDesigner::Designer::addedFunction
void addedFunction(DesignerType type, const TQString &formName, Function function)
Emit this signal when a function was added by a designer.
KInterfaceDesigner::Designer::openProject
virtual void openProject(const TQString &projectFile)=0
Reimplement this to be able to open projects.
KInterfaceDesigner::Designer::editSource
void editSource(DesignerType type, const TQString &formName)
Emit this signal when a designer wants to open the editor for a form sources.
KInterfaceDesigner::Designer::editedFunction
void editedFunction(DesignerType type, const TQString &formName, Function oldFunction, Function function)
Emit this signal when a function signature was edited by a designer.
KInterfaceDesigner::Designer::newStatus
void newStatus(const TQString &formName, int status)
Emitted when a form state is changed in the designer.
KInterfaceDesigner::Designer::editFunction
void editFunction(DesignerType type, const TQString &formName, const TQString &functionName)
Emit this signal when a designer wants to open the editor with function definition.
KInterfaceDesigner
Contains KInterfaceDesigner classes.
Definition designer.cpp:21
KInterfaceDesigner::DesignerType
DesignerType
The type of a GUI Designer.
Definition designer.h:28
KInterfaceDesigner::TQtDesigner
@ TQtDesigner
TQt Designer.
Definition designer.h:29
KInterfaceDesigner::Glade
@ Glade
Glade (version >= 3).
Definition designer.h:30
KInterfaceDesigner::FunctionType
FunctionType
Function type.
Definition designer.h:34
KInterfaceDesigner::ftTQtSlot
@ ftTQtSlot
TQt slot.
Definition designer.h:36
KInterfaceDesigner::ftFunction
@ ftFunction
Simple function or a callback.
Definition designer.h:35
KInterfaceDesigner::Function
Function.
Definition designer.h:40
KInterfaceDesigner::Function::access
TQString access
Access, e.g.
Definition designer.h:48
KInterfaceDesigner::Function::specifier
TQString specifier
Specifier, e.g.
Definition designer.h:46
KInterfaceDesigner::Function::type
FunctionType type
Function type.
Definition designer.h:50
KInterfaceDesigner::Function::returnType
TQString returnType
Return type.
Definition designer.h:42
KInterfaceDesigner::Function::function
TQString function
Function name.
Definition designer.h:44

KInterfaceDesigner Library

Skip menu "KInterfaceDesigner Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KInterfaceDesigner Library

Skip menu "KInterfaceDesigner Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KInterfaceDesigner Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.