• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Designer Integration Support Library
 

KDevelop Designer Integration Support Library

  • languages
  • lib
  • designer_integration
tqtdesignerintegration.h
1/***************************************************************************
2 * Copyright (C) 2004 by Alexander Dymo *
3 * adymo@kdevelop.org *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU Library General Public License as *
7 * published by the Free Software Foundation; either version 2 of the *
8 * License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Library General Public *
16 * License along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
20#ifndef TQTDESIGNERINTEGRATION_H
21#define TQTDESIGNERINTEGRATION_H
22
23#include <tqmap.h>
24
25#include <codemodel.h>
26#include "kdevdesignerintegration.h"
27
28class KDevLanguageSupport;
29class ImplementationWidget;
30
38class QtDesignerIntegration : public KDevDesignerIntegration
39{
40TQ_OBJECT
41
42public:
43 QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl,
44 bool classHasDefinitions, const char* name = 0);
45 virtual ~QtDesignerIntegration();
46
47public slots:
48 virtual void addFunction(const TQString& formName, KInterfaceDesigner::Function function);
49 virtual void editFunction(const TQString& formName, KInterfaceDesigner::Function oldFunction, KInterfaceDesigner::Function function);
50 virtual void removeFunction(const TQString& formName, KInterfaceDesigner::Function function);
51
52 virtual void openFunction(const TQString &formName, const TQString &functionName);
53
54 virtual void openSource(const TQString &formName);
55
56 virtual void saveSettings(TQDomDocument dom, TQString path);
57 virtual void loadSettings(TQDomDocument dom, TQString path);
58
59 bool selectImplementation(const TQString &formName);
60
61protected:
64 virtual void addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass) = 0;
71 virtual void processImplementationName(TQString &name);
72
73 //Form file - derived class name
74 TQMap<TQString, ClassDom> m_implementations;
75
76 KDevLanguageSupport *m_part;
77 ImplementationWidget *m_impl;
78 bool m_classHasDefinitions;
79};
80
81#endif
ImplementationWidget
Base class for implementation creation widgets.
Definition implementationwidget.h:41
QtDesignerIntegration
TQt Designer integration base class.
Definition tqtdesignerintegration.h:39
QtDesignerIntegration::addFunctionToClass
virtual void addFunctionToClass(KInterfaceDesigner::Function function, ClassDom klass)=0
Reimplement this to add a function to a class.
QtDesignerIntegration::processImplementationName
virtual void processImplementationName(TQString &name)
Modifies name to be a name of a implementation file for languages that have separate files for interf...
Definition tqtdesignerintegration.cpp:180

KDevelop Designer Integration Support Library

Skip menu "KDevelop Designer Integration Support Library"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Designer Integration Support Library

Skip menu "KDevelop Designer Integration Support 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 KDevelop Designer Integration Support Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.