PascalSupportPart Class Reference
This is Pascal language support plugin. More...
#include <pascalsupport_part.h>
Inheritance diagram for PascalSupportPart:

Public Member Functions | |
PascalSupportPart (QObject *parent, const char *name, const QStringList &) | |
~PascalSupportPart () | |
virtual Features | features () |
Returns the feature set of the language. | |
virtual KMimeType::List | mimeTypes () |
Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog. | |
virtual QString | formatTag (const Tag &tag) |
Formats a Tag as used by the class store to the human-readable convention. | |
virtual QString | formatModelItem (const CodeModelItem *item, bool shortDescription=false) |
Formats a CodeModelItem as used by the CodeModel to the human-readable convention. | |
Private Slots | |
void | projectOpened () |
void | projectClosed () |
void | savedFile (const QString &fileName) |
void | configWidget (KDialogBase *dlg) |
void | projectConfigWidget (KDialogBase *dlg) |
void | contextMenu (QPopupMenu *popup, const Context *context) |
void | addedFilesToProject (const QStringList &fileList) |
void | removedFilesFromProject (const QStringList &fileList) |
void | slotProjectCompiled () |
void | initialParse () |
Private Member Functions | |
void | maybeParse (const QString &fileName) |
void | parse (const QString &fileName) |
Private Attributes | |
QGuardedPtr< PascalSupportWidget > | m_widget |
bool | m_projectClosed |
QStringList | m_projectFileList |
PascalSupportPartData * | d |
Detailed Description
This is Pascal language support plugin.Pascal support provides good fpc and dcc compiler support by compiler plugins. Nearly all command line switches for those compilers can be configured in Project Options. Language parser exists but it isn't perfect yet.
In order to generate the parser by hand, antlr v2.7.2 is required. There are parser compilation errors with some gcc versions. To avoid them, replace file antlr/CppCodeGenerator.java in the antlr source code tree with the one from ftp://fara.cs.uni-potsdam.de/incoming/CppCodeGenerar.java.gz.
- Feature(s):
- Pascal language support
Consult Programming Languages Support Status for a up to date features/status of this programming language support part.
- Bug:
- Language parser can sometimes treat correct lines as errors. Please send sample code to maintainer if you have this problem.
- F.A.Q.:
- Why KDevelop does not provide GNU pascal compiler plugin? If you need GNU pascal compiler plugin, please write about it to maintainer and prepare to help testing it.
Compiler plugin lacks option X. Write about it to maintaner or send a patch. Adding compiler options is easy task. Just look at languages/pascal/compiler directory.
Definition at line 22 of file pascalsupport_part.h.
Constructor & Destructor Documentation
|
|
|
Definition at line 76 of file pascalsupport_part.cpp. References d, KDevPlugin::mainWindow(), PascalSupportPartData::problemReporter, and KDevMainWindow::removeView(). |
Member Function Documentation
|
Definition at line 135 of file pascalsupport_part.cpp. References addedFilesToProject(), maybeParse(), KDevPlugin::project(), and KDevProject::projectDirectory(). Referenced by addedFilesToProject(), and projectOpened(). |
|
Definition at line 110 of file pascalsupport_part.cpp. References configWidget(). Referenced by configWidget(). |
|
Definition at line 122 of file pascalsupport_part.cpp. References contextMenu(). Referenced by contextMenu(). |
|
Returns the feature set of the language. This is e.g. used by the class view to decide which organizer items to display and which not. Reimplemented from KDevLanguageSupport. Definition at line 84 of file pascalsupport_part.cpp. |
|
Formats a CodeModelItem as used by the CodeModel to the human-readable convention.
Reimplemented from KDevLanguageSupport. Definition at line 281 of file pascalsupport_part.cpp. References FunctionModel::argumentList(), ArgumentList, ArgumentModel::defaultValue(), formatModelItem(), CodeModelItem::isArgument(), CodeModelItem::isFunction(), CodeModelItem::isFunctionDefinition(), CodeModelItem::isVariable(), FunctionModel::isVirtual(), CodeModelItem::name(), FunctionModel::resultType(), ArgumentModel::type(), and VariableModel::type(). Referenced by formatModelItem(). |
|
Formats a Tag as used by the class store to the human-readable convention.
Reimplemented from KDevLanguageSupport. Definition at line 252 of file pascalsupport_part.cpp. References formatTag(), Tag::kind(), and Tag::name(). Referenced by formatTag(). |
|
Definition at line 162 of file pascalsupport_part.cpp. References KDevProject::allFiles(), d, endl(), kdDebug(), KDevPlugin::mainWindow(), maybeParse(), PascalSupportPartData::problemReporter, KDevPlugin::project(), KDevProject::projectDirectory(), KDevMainWindow::statusBar(), and KDevLanguageSupport::updatedSourceInfo(). Referenced by projectOpened(). |
|
Definition at line 186 of file pascalsupport_part.cpp. References endl(), kdDebug(), KDevPlugin::mainWindow(), maybeParse(), parse(), KMimeType::Ptr, and KDevMainWindow::statusBar(). Referenced by addedFilesToProject(), initialParse(), maybeParse(), and savedFile(). |
|
Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.
Reimplemented from KDevLanguageSupport. Definition at line 243 of file pascalsupport_part.cpp. References KMimeType::List. |
|
|
Definition at line 105 of file pascalsupport_part.cpp. References m_projectClosed. |
|
Definition at line 116 of file pascalsupport_part.cpp. References projectConfigWidget(). Referenced by projectConfigWidget(). |
|
Definition at line 89 of file pascalsupport_part.cpp. References addedFilesToProject(), KDevProject::allFiles(), initialParse(), m_projectClosed, m_projectFileList, KDevPlugin::project(), removedFilesFromProject(), and slotProjectCompiled(). |
|
Definition at line 146 of file pascalsupport_part.cpp. References KDevPlugin::codeModel(), KDevPlugin::project(), KDevProject::projectDirectory(), removedFilesFromProject(), and CodeModel::removeFile(). Referenced by projectOpened(), and removedFilesFromProject(). |
|
Definition at line 129 of file pascalsupport_part.cpp. References maybeParse(), savedFile(), and KDevLanguageSupport::updatedSourceInfo(). Referenced by savedFile(). |
|
Definition at line 157 of file pascalsupport_part.cpp. Referenced by projectOpened(). |
Member Data Documentation
|
Reimplemented from KDevPlugin. Definition at line 58 of file pascalsupport_part.h. Referenced by initialParse(), parse(), and ~PascalSupportPart(). |
|
Definition at line 55 of file pascalsupport_part.h. Referenced by projectClosed(), and projectOpened(). |
|
Definition at line 56 of file pascalsupport_part.h. Referenced by projectOpened(). |
|
Definition at line 53 of file pascalsupport_part.h. |
The documentation for this class was generated from the following files:
- languages/pascal/pascalsupport_part.h
- languages/pascal/pascalsupport_part.cpp