KDevLanguageSupport Class Reference
#include <kdevlanguagesupport.h>
Inheritance diagram for KDevLanguageSupport:


Public Types | |
enum | Features { Classes = 1, Structs = 2, Functions = 4, Variables = 8, Namespaces = 16, Signals = 32, Slots = 64, Declarations = 128, NewClass = 512, AddMethod = 1024, AddAttribute = 2048, Scripts = 4096, NewScript = 8192 } |
Public Slots | |
void | addFunction (DesignerType type, const QString &formName, Function function) |
Adds a function requested by a gui designer. | |
void | removeFunction (DesignerType type, const QString &formName, Function function) |
Removes a function requested by a gui designer. | |
void | editFunction (DesignerType type, const QString &formName, Function oldFunction, Function function) |
Edits a function requested by a gui designer. | |
void | openFunction (DesignerType type, const QString &formName, const QString &functionName) |
Signals | |
void | updatedSourceInfo () |
Emitted when the content of the classtore has been modified. | |
void | aboutToRemoveSourceInfo (const QString &fileName) |
Emitted before remove the file from the classstore. | |
void | removedSourceInfo (const QString &fileName) |
Emitted when a file has been removed from the classstore. | |
void | addedSourceInfo (const QString &fileName) |
Emitted when a file has been added Emitted when a file has been removed from the classstorefrom the classstore. | |
Public Member Functions | |
KDevLanguageSupport (const QString &pluginName, const QString &icon, QObject *parent, const char *name) | |
~KDevLanguageSupport () | |
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. | |
virtual QString | formatClassName (const QString &name) |
Formats a canonicalized class path as used by the class store to the human-readable convention. | |
virtual QString | unformatClassName (const QString &name) |
The opposite of formatClassName(). | |
virtual void | addClass () |
Opens a "New class" dialog and adds the configured class to the sources. | |
virtual void | addMethod (ClassDom klass) |
Opens an "Add method" dialog and adds the configured method to the sources. | |
virtual void | implementVirtualMethods (ClassDom klass) |
Opens an "Implement Virtual Methods" dialog and adds the configured methods to the sources. | |
virtual void | addAttribute (ClassDom klass) |
Opens an "Add attribute" dialog and adds the configured method to the sources. | |
virtual QStringList | subclassWidget (const QString &formName) |
Opens an "Subclass Widget" dialog for given Qt .ui file (formName) and propmts to implement it's slots. | |
virtual QStringList | updateWidget (const QString &formName, const QString &fileName) |
Opens and "Update Widget" dialog for given Qt .ui file (formName) and prompts to add missing slot implementations in the subclass located in fileName. | |
virtual KDevDesignerIntegration * | designer (KInterfaceDesigner::DesignerType type) |
Returns a pointer to designer integration plugin of given type or 0. |
Member Enumeration Documentation
|
Definition at line 50 of file kdevlanguagesupport.h. Referenced by features(), SQLSupportPart::features(), RubySupportPart::features(), PythonSupportPart::features(), PHPSupportPart::features(), PerlSupportPart::features(), PascalSupportPart::features(), JavaSupportPart::features(), HaskellSupportPart::features(), FortranSupportPart::features(), CppSupportPart::features(), and BashSupportPart::features(). |
Constructor & Destructor Documentation
|
Definition at line 32 of file kdevlanguagesupport.cpp. |
|
Definition at line 37 of file kdevlanguagesupport.cpp. |
Member Function Documentation
|
|
Opens an "Add attribute" dialog and adds the configured method to the sources.
Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 78 of file kdevlanguagesupport.cpp. References ClassDom. Referenced by ClassViewWidget::slotAddAttribute(), and ClassTreeBase::slotAddAttribute(). |
|
Opens a "New class" dialog and adds the configured class to the sources.
Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 66 of file kdevlanguagesupport.cpp. Referenced by ClassViewWidget::slotNewClass(). |
|
|
Adds a function requested by a gui designer.
Definition at line 97 of file kdevlanguagesupport.cpp. References KDevDesignerIntegration::addFunction(), and designer(). |
|
Opens an "Add method" dialog and adds the configured method to the sources.
Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 70 of file kdevlanguagesupport.cpp. References ClassDom. Referenced by ClassViewWidget::slotAddMethod(), and ClassTreeBase::slotAddMethod(). |
|
Returns a pointer to designer integration plugin of given type or 0.
Reimplemented in CppSupportPart. Definition at line 128 of file kdevlanguagesupport.cpp. Referenced by addFunction(), editFunction(), openFunction(), and removeFunction(). |
|
Edits a function requested by a gui designer.
Definition at line 112 of file kdevlanguagesupport.cpp. References designer(), and KDevDesignerIntegration::editFunction(). |
|
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 in AdaSupportPart, BashSupportPart, CppSupportPart, FortranSupportPart, HaskellSupportPart, JavaSupportPart, PascalSupportPart, PerlSupportPart, PHPSupportPart, PythonSupportPart, RubySupportPart, and SQLSupportPart. Definition at line 41 of file kdevlanguagesupport.cpp. References Features. Referenced by ClassTreeItem::createPopup(), ClassViewPart::langHasFeature(), ClassTreeScopeItem::setOpen(), ClassViewWidget::slotAddAttribute(), ClassViewWidget::slotAddMethod(), and ClassViewWidget::slotNewClass(). |
|
Formats a canonicalized class path as used by the class store to the human-readable convention. For example, the C++ support part formats the string "KParts.Part" into "KParts::Part". Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 56 of file kdevlanguagesupport.cpp. Referenced by Navigator::fullFunctionDeclarationName(), Navigator::fullFunctionDefinitionName(), HierarchyDialog::refresh(), and HierarchyDialog::slotClassComboChoice(). |
|
|
Formats a Tag as used by the class store to the human-readable convention.
Reimplemented in CppSupportPart, JavaSupportPart, and PascalSupportPart. Definition at line 51 of file kdevlanguagesupport.cpp. Referenced by ClassBrowserPart::refreshMethods(). |
|
Opens an "Implement Virtual Methods" dialog and adds the configured methods to the sources.
Definition at line 74 of file kdevlanguagesupport.cpp. References ClassDom. |
|
Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.
Reimplemented in AdaSupportPart, BashSupportPart, CppSupportPart, HaskellSupportPart, JavaSupportPart, PascalSupportPart, PerlSupportPart, PHPSupportPart, PythonSupportPart, RubySupportPart, and SQLSupportPart. Definition at line 46 of file kdevlanguagesupport.cpp. References KMimeType::List. Referenced by ScriptProjectPart::openProject(), PascalProjectPart::openProject(), AdaProjectPart::openProject(), and ScriptOptionsWidget::ScriptOptionsWidget(). |
|
Definition at line 133 of file kdevlanguagesupport.cpp. References designer(), and KDevDesignerIntegration::openFunction(). |
|
Emitted when a file has been removed from the classstore.
|
|
Removes a function requested by a gui designer.
Definition at line 120 of file kdevlanguagesupport.cpp. References designer(), and KDevDesignerIntegration::removeFunction(). |
|
Opens an "Subclass Widget" dialog for given Qt .ui file (formName) and propmts to implement it's slots. Returns a list of newly created files. Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 82 of file kdevlanguagesupport.cpp. Referenced by TrollProjectWidget::slotDetailsContextMenu(), and AutoDetailsView::slotDetailsContextMenu(). |
|
The opposite of formatClassName().
Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 61 of file kdevlanguagesupport.cpp. |
|
|
Opens and "Update Widget" dialog for given Qt .ui file (formName) and prompts to add missing slot implementations in the subclass located in fileName. Returns a list of newly created files. Reimplemented in CppSupportPart, and JavaSupportPart. Definition at line 87 of file kdevlanguagesupport.cpp. Referenced by TrollProjectWidget::slotDetailsContextMenu(), and AutoDetailsView::slotDetailsContextMenu(). |
The documentation for this class was generated from the following files:
- lib/interfaces/kdevlanguagesupport.h
- lib/interfaces/kdevlanguagesupport.cpp