• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
kdevlanguagesupport.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2001 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
3  Copyright (C) 2001-2002 Bernd Gehrmann <bernd@kdevelop.org>
4  Copyright (C) 2002-2003 Roberto Raggi <roberto@kdevelop.org>
5  Copyright (C) 2002 Simon Hausmann <hausmann@kde.org>
6  Copyright (C) 2002 F@lk Brettschneider <falkbr@kdevelop.org>
7  Copyright (C) 2003 Amilcar do Carmo Lucas <amilcar@ida.ing.tu-bs.de>
8  Copyright (C) 2003-2004 Alexander Dymo <adymo@kdevelop.org>
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Library General Public
12  License as published by the Free Software Foundation; either
13  version 2 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Library General Public License for more details.
19 
20  You should have received a copy of the GNU Library General Public License
21  along with this library; see the file COPYING.LIB. If not, write to
22  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23  Boston, MA 02110-1301, USA.
24 */
25 #ifndef KDEVLANGUAGESUPPORT_H
26 #define KDEVLANGUAGESUPPORT_H
27 
28 #include <tqstring.h>
29 #include <tqstringlist.h>
30 #include <kmimetype.h>
31 #include "kdevplugin.h"
32 #include "codemodel.h"
33 #include <designer.h>
34 
40 class Tag;
41 class KDevDesignerIntegration;
42 
43 using namespace KInterfaceDesigner;
44 
61 class KDevLanguageSupport: public KDevPlugin
62 {
63  Q_OBJECT
64 
65 
66 public:
67 
69  enum Features {
70  /*features of the language itself*/
71  Classes=1 ,
72  Structs=2 ,
73  Functions=4 ,
74  Variables=8 ,
75 
76  Namespaces=16 ,
77  Signals=32 ,
78  Slots=64 ,
79  Declarations=128 ,
80 
81  /*features of the language support part*/
82  NewClass=512 ,
83  AddMethod=1024 ,
84  AddAttribute=2048 ,
85  CreateAccessMethods=4096
86  };
87 
97  KDevLanguageSupport(const KDevPluginInfo *info, TQObject *parent, const char *name);
99  ~KDevLanguageSupport();
100 
103  virtual Features features();
104 
107  virtual KMimeType::List mimeTypes();
108 
111  virtual TQString formatTag(const Tag& tag);
112 
118  virtual TQString formatModelItem(const CodeModelItem *item, bool shortDescription=false);
119 
124  virtual TQString formatClassName(const TQString &name);
125 
128  virtual TQString unformatClassName(const TQString &name);
129 
135  virtual bool shouldSplitDocument( const KURL &url );
136 
139  virtual Qt::Orientation splitOrientation() const;
140 
143  virtual void addClass();
144 
148  virtual void addMethod(ClassDom klass);
149 
153  virtual void implementVirtualMethods(ClassDom klass);
154 
158  virtual void addAttribute(ClassDom klass);
159 
166  virtual void createAccessMethods(ClassDom theClass, VariableDom theVariable);
167 
172  virtual TQStringList subclassWidget(const TQString& formName);
173 
181  virtual TQStringList updateWidget(const TQString& formName, const TQString& fileName);
182 
206  virtual KDevDesignerIntegration *designer(KInterfaceDesigner::DesignerType type);
207 
208 public slots:
214  void addFunction(DesignerType type, const TQString &formName, Function function);
215 
221  void removeFunction(DesignerType type, const TQString &formName, Function function);
222 
229  void editFunction(DesignerType type, const TQString &formName, Function oldFunction, Function function);
230 
236  void openFunction(DesignerType type, const TQString &formName, const TQString &functionName);
237 
242  void openSource(DesignerType type, const TQString &formName);
243 
244 signals:
246  void updatedSourceInfo();
247 
249  void aboutToRemoveSourceInfo(const TQString& fileName);
250 
252  void removedSourceInfo(const TQString& fileName);
253 
255  void addedSourceInfo( const TQString& fileName );
256 
258  void splitOrientationChanged( Qt::Orientation orientation );
259 };
260 
261 #endif
KDevPlugin
The base class for all TDevelop plugins.
Definition: kdevplugin.h:107
codemodel.h
Code Model - a memory symbol store.
KInterfaceDesigner
KDevLanguageSupport
KDevelop language support interface - the base class for all programming language support plugins...
Definition: kdevlanguagesupport.h:61
KDevDesignerIntegration
TDevelop designer integration interface.
Definition: kdevdesignerintegration.h:51
VariableDom
Safe pointer to the VariableModel.
KDevLanguageSupport::Features
Features
Features supported by this language support.
Definition: kdevlanguagesupport.h:69
kdevplugin.h
TDevelop plugin interface.
CodeModelItem
Item in code model (symbol store).
Definition: codemodel.h:461
ClassDom
Safe pointer to the ClassModel.
KDevPluginInfo
Information about TDevelop plugin.
Definition: kdevplugininfo.h:39

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces 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 TDevelop Interfaces Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.