summaryrefslogtreecommitdiffstats
path: root/doc/api/Architecture.dox
blob: 52c1447af9e628ac4545bb002d37d0e29e80e321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
/** \file  Architecture.dox
  * \brief KDevelop architecture
  */

/** \page architecture KDevelop 3 Architecture

KDevelop uses a plugin based architecture. This will be explained in more
detail in the next sections. To add a new plugin check the \ref howToAddPlugins page.

\section devteammodel Development Team cooperation model

KDevelop is the result of the work of many people. To help syncronize the effords and to automate
some tasks, the team uses many tools:

  - CVS servers
  - KDE Bugzilla
  - Web servers
  - Mailing Lists
  - IRC
  - Doxygen
  - docbook
  - LXR
  - E-mail :)
  - Cron Jobs
  - and of course KDevelop :)
  .

They get interconnected like this:

\image html Development.png


\section overview Source Overview

\subsection source-division Main Source Divisions

The KDevelop 3 source is divided into several parts which correspond to
subdirectories in the KDevelop project directory. There are several main
parts to distinguish, mainly:

  - src            = The core part of KDevelop
  - lib/interfaces = Plugin handler interface classes
  - parts          = The various parts using the KParts framework ( TDevPlugin children )
  - languages      = \ref language-parts
  - buildtools     = \ref buildtool-parts
  - vcs            = \ref vcs-parts
  - editors        = \ref editor-parts
  .

\image html Architecture.png

This image is not complete there are parts that are not displayed. See below for a more detailed description.

\subsection core-part The Core Part of KDevelop

\subsubsection mainwindows Main Window Objects

There are two types of possible main window objects:

 - MainWindow implements standard MDI user interfaces:
   - Top level mode (see MainWindow::switchToToplevelMode() )
   - Childframe mode (see MainWindow::switchToChildframeMode() )
   - Tab page mode (see MainWindow::switchToTabPageMode() )
   - IDEAl mode (see MainWindow::switchToIDEAlMode() )
   .
 - MainWindowIDEAl implements an enhanced MDI main window providing a set of
   pre-arranged access tabs around user areas.
 .

Both main window classes inherit from the TDevMainWindow class which provides
access to common window features.

\subsubsection toplevel The TopLevel Object

There is only one toplevel object of class TDevMainWindow in KDevelop. It can
be accessed through the static function TopLevel::getInstance() (see the
TopLevel class).

\subsection parts-overview KDevelop Parts Overview

All parts reside in dedicated subdirectories acording to their function. They can
be viewed according to their functionalities as follows.

\subsubsection language-parts Programming Language Support Parts

These parts implement a TDevLanguageSupport Class interface.
To add support for a new programming language check the \ref howToAddProgrammingLanguages page (doc/api/HowToAddProgrammingLanguages.dox file).
Take a look at \ref LangSupportStatus (doc/api/LangSupportStatus.dox file) to see the current status/features of the programming languages currently supported by KDevelop.

  - languages/ada = Support for Ada
    - (see AdaSupportPart)
    .
  - languages/bash = Support for bash
    - (see BashSupportPart)
    .
  - languages/cpp = Support for C/C++
    - (see CppSupportPart)
      - languages/cpp/debugger = GNU Debugger frontend
        - (see GDBDebugger::DebuggerPart)
        .
      .
    .
  - languages/fortran = Support for Fortran
    - (see FortranSupportPart)
    .
  - languages/haskell = Support for Haskell
    - (see HaskellSupportPart)
    .
  - languages/java = Support for Java
    - (see JavaSupportPart)
      - languages/java/degugger = Java debugger frontend
        - (JAVADebugger::JavaDebuggerPart)
        .
      .
    .
  - languages/pascal = Support for Pascal
    - (see PascalSupportPart)
    .
  - languages/perl = Support for Perl
    - (see PerlSupportPart)
    .
  - languages/php = Support for PHP
    - (see PHPSupportPart)
    .
  - languages/python = Support for Python
    - (see PythonSupportPart)
    .
  - languages/ruby = Support for Ruby
    - (see RubySupportPart)
    .
  - languages/sql = Support for SQL
    - (see SQLSupportPart)
    .
  .

\subsubsection buildtool-parts Build tools Parts

These parts implement a TDevProject Class interface.

  - buildtools/ada = Ada build tool
    - (see AdaProjectPart)
    .
  - buildtools/ant = ANT build tool
    - (see AntProjectPart)
    .
  - buildtools/autotools = Autotools build tool
    - (see AutoProjectPart)
    .
  - buildtools/custommakefiles = Custom makefiles build tool
    - (see CustomProjectPart)
    .
  - buildtools/generic = Generic build tool
    - (see GenericProjectPart)
    .
  - buildtools/pascal = Pascal build tool
    - (see PascalProjectPart)
    .
  - buildtools/script = Script build tool
    - (see ScriptProjectPart)
    .
  - buildtools/qmake = QMake based build tool
    - (see TrollProjectPart)
    .
  .


\subsubsection vcs-parts VCS (Version Control System) Parts

These parts implement a TDevVersionControl Class interface.

  - vcs/cervisia = Cervisia Support
    - (see CervisiaPlugin)
    .
  - vcs/clearcase = IBM Rational ClearCase Support
    - (see ClearcasePart)
    .
  - vcs/cvs = CVS Support
    - (see CvsPart)
    .
  - vcs/cvsservice = cvsservice Support (Cervisia interface)
    - (see CvsServicePart)
    .
  - vcs/perforce = Version managment system perforce integration
    - (see PerforcePart)
    .
  - vcs/subversion = Subversion integration
    - (see subversionPart)
    .
  .


\subsubsection editor-parts editor support Specific Parts

These parts implement a KTextEditor Class interface.
Take a look at \ref EditorsSupportStatus (doc/api/EditorsSupportStatus.dox file) to see the current status/features of the editors currently supported by KDevelop.

  - editors/editor-chooser = Chooses an internal text editor
    - (see EditorChooserPart)
    .
  - editors/nedit = KTextEditor interface for nedit
    - (see KNEditFactory, Document, View)
    .
  - editors/qeditor = QEditor integration
    - (see QEditorPart)
    .
  .


\subsubsection global-parts Global Parts

Some of the parts are considered global - that is, they effect the entire
operation of KDevelop.

These parts implement a TDevPlugin Class interface.

  - parts/appwizard = New Project Wizard
    - see AppWizardPart
    - see \ref howToAddApplicationTemplates (doc/api/HowToAddApplicationTemplates.dox file)
    .
  - parts/history = Project history
    - (see HistoryPart)
    .
  - parts/konsole = Embedded Konsole
    - (see KonsoleViewPart)
    .
  - parts/doctreeview = Documentation Viewer
    - (see DocTreeViewPart)
    .
  - parts/openwith = "Open with" menu addon
    - (see OpenWithPart)
    .
  - parts/fileselector = A file selection widget
    - (see FileSelectorPart)
    .
  - parts/uimode = Customize the UI mode
    - (see UIChooserPart)
    .
  - parts/texttools = Additional text tools
    - (see TextToolsPart)
    .
  - parts/tipofday = A tip of the day
    - (see TipOfDayPart)
    .
  - parts/grepview = A graphical grep utility
    - (see GrepViewPart)
    .
  - parts/tools = Toolbar management
    - (see ToolsPart)
    .
  - parts/regexptest = A regular expression tester
    - (see RegexpTestPart)
    .
  - parts/abbrev = Abbreviation Expansion
    - (see AbbrevPart)
    .
  - parts/filter = Shell Filtering and Insertion
    - (see FilterPart)
    .
  - parts/valgrind = A graphical valgrind frontend
    - (see ValgrindPart)
    .
  .


\subsubsection project-specific-parts Project Specific Parts

These parts implement a TDevPlugin Class interface.

  - parts/astyle = Source code formatter
    - (see AStylePart)
    .
  - parts/buglist = Bug tracking application
    - (see BugList)
    .
  - parts/classview = Classview Manager
    - (see ClassViewPart)
    .
  - parts/ctags = CTags frontend
    - (see CTagsPart)
    .
  - parts/diff = Difference viewer
    - (see DiffPart)
    .
  - parts/distpart = Aids in building and publishing the final project
    - (see DistpartPart)
    .
  - parts/doxygen = Doxygen integration
    - (see DoxygenPart)
    .
  - parts/filecreate = New file creation
    - see FileCreatePart
    - see \ref howToAddFileTemplates (doc/api/HowToAddFileTemplates.dox file)
    .
  - parts/fileview = File groups
    - (see FileViewPart, FileGroupsPart)
    .
  - parts/manager = Document manager
    - (see DocManager, ViewManager)
    .
  - parts/outputviews = Application output views
    - (see AppOutputViewPart, MakeViewPart)
    .
  - parts/scripting = Python scripting interface
    - (see ScriptingPart)
    .
  - parts/sourcenav = Source code navigation
    - (see SourceNavPart)
    .
  - parts/visualboyadvance = VisualBoy Advance integration
    - (see VisualBoyAdvance::VisualBoyAdvancePart)
    .
  .

*/