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
25
namespace
KInterfaceDesigner
{
26
28
enum
DesignerType
{
29
TQtDesigner
,
30
Glade
31
};
32
34
enum
FunctionType
{
35
ftFunction
,
36
ftTQtSlot
37
};
38
40
struct
Function
{
42
TQString
returnType
;
44
TQString
function
;
46
TQString
specifier
;
48
TQString
access
;
50
FunctionType
type
;
51
};
52
66
class
Designer
:
public
KParts::ReadWritePart{
67
Q_OBJECT
68
69
public
:
70
Designer
(TQObject *parent,
const
char
*name);
71
73
virtual
void
openProject(
const
TQString &projectFile) = 0;
75
virtual
DesignerType
designerType() = 0;
76
77
signals:
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::Function::specifier
TQString specifier
Specifier, e.g.
Definition:
designer.h:46
KInterfaceDesigner::Designer
GUI Designer Part Interface.
Definition:
designer.h:66
KInterfaceDesigner::ftTQtSlot
TQt slot.
Definition:
designer.h:36
KInterfaceDesigner
Contains KInterfaceDesigner classes.
Definition:
designer.cpp:21
KInterfaceDesigner::Function::returnType
TQString returnType
Return type.
Definition:
designer.h:42
KInterfaceDesigner::ftFunction
Simple function or a callback.
Definition:
designer.h:35
KInterfaceDesigner::Function::access
TQString access
Access, e.g.
Definition:
designer.h:48
KInterfaceDesigner::Glade
Glade (version >= 3).
Definition:
designer.h:30
KInterfaceDesigner::TQtDesigner
TQt Designer.
Definition:
designer.h:29
KInterfaceDesigner::FunctionType
FunctionType
Function type.
Definition:
designer.h:34
KInterfaceDesigner::Function
Function.
Definition:
designer.h:40
KInterfaceDesigner::Function::type
FunctionType type
Function type.
Definition:
designer.h:50
KInterfaceDesigner::DesignerType
DesignerType
The type of a GUI Designer.
Definition:
designer.h:28
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