KDevelop API Documentation

PythonSupportPart Class Reference

This is a Python support plugin. More...

#include <pythonsupportpart.h>

Inheritance diagram for PythonSupportPart:

KDevLanguageSupport KDevPlugin QObject KXMLGUIClient List of all members.

Public Member Functions

 PythonSupportPart (QObject *parent, const char *name, const QStringList &)
 ~PythonSupportPart ()

Protected Member Functions

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.


Private Slots

void projectConfigWidget (KDialogBase *dlg)
void projectOpened ()
void projectClosed ()
void savedFile (const QString &fileName)
void addedFilesToProject (const QStringList &fileList)
void removedFilesFromProject (const QStringList &fileList)
void slotExecute ()
void slotExecuteString ()
void slotStartInterpreter ()
void initialParse ()
void slotPydoc ()

Private Member Functions

QString interpreter ()
void startApplication (const QString &program)
void maybeParse (const QString fileName)
void parse (const QString &fileName)

Detailed Description

This is a Python support plugin.

Put a more detailed description of your part in these lines. It can span over several lines. You can even use some html commands in these lines like: This is code, html links link text, and images.

Author(s):
Bernd Gehrmann

Maintainer(s):
$AUTHOR$

2nd maintainer full name ...

nth maintainer full name

Feature(s):
Python support

Consult Programming Languages Support Status for a up to date features/status of this programming language support part.

Bug:
Describe a the 1st bug that you know of, but probably hasn't been reported yet. ..

Describe a the nth bug that you know of, but probably hasn't been reported yet.

Requirement(s):
Describe a the 1st requirement of your part.

Describe a the 2nd requirement of your part. ...

Describe a the nth requirement of your part.

Todo:
Describe a the 1st TODO of your part.

Describe a the 2nd TODO of your part. ...

Describe a the nth TODO of your part.

F.A.Q.:
First frequenly asked question about your part ? Answer.

Second frequenly asked question about your part ? Answer. ...

Last frequenly asked question about your part ? Answer.

Note:
First note text.

Second note text. ...

Last note text.

Warning:
First warning text.

Second warning text. ...

Last warning text.

Definition at line 21 of file pythonsupportpart.h.


Constructor & Destructor Documentation

PythonSupportPart::PythonSupportPart QObject parent,
const char *  name,
const QStringList
 

PythonSupportPart::~PythonSupportPart  ) 
 

Definition at line 84 of file pythonsupportpart.cpp.


Member Function Documentation

void PythonSupportPart::addedFilesToProject const QStringList fileList  )  [private, slot]
 

Definition at line 151 of file pythonsupportpart.cpp.

References addedFilesToProject(), endl(), kdDebug(), maybeParse(), KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by addedFilesToProject(), and projectOpened().

KDevLanguageSupport::Features PythonSupportPart::features  )  [protected, virtual]
 

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 199 of file pythonsupportpart.cpp.

void PythonSupportPart::initialParse  )  [private, slot]
 

Definition at line 131 of file pythonsupportpart.cpp.

References KDevProject::allFiles(), endl(), kdDebug(), maybeParse(), KDevPlugin::project(), KDevProject::projectDirectory(), and KDevLanguageSupport::updatedSourceInfo().

Referenced by projectOpened().

QString PythonSupportPart::interpreter  )  [private]
 

Definition at line 292 of file pythonsupportpart.cpp.

References KDevPlugin::projectDom().

Referenced by slotExecute(), and slotStartInterpreter().

void PythonSupportPart::maybeParse const QString  fileName  )  [private]
 

Definition at line 116 of file pythonsupportpart.cpp.

References KDevPlugin::codeModel(), CodeModel::hasFile(), maybeParse(), parse(), and CodeModel::removeFile().

Referenced by addedFilesToProject(), initialParse(), maybeParse(), and savedFile().

KMimeType::List PythonSupportPart::mimeTypes  )  [protected, virtual]
 

Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.

Reimplemented from KDevLanguageSupport.

Definition at line 205 of file pythonsupportpart.cpp.

References KMimeType::List, and KMimeType::Ptr.

void PythonSupportPart::parse const QString fileName  )  [private]
 

Definition at line 219 of file pythonsupportpart.cpp.

References CodeModel::addFile(), ClassDom, KDevPlugin::codeModel(), CodeModel::create(), endl(), FileDom, FunctionDom, kdDebug(), and parse().

Referenced by maybeParse(), and parse().

void PythonSupportPart::projectClosed  )  [private, slot]
 

Definition at line 111 of file pythonsupportpart.cpp.

void PythonSupportPart::projectConfigWidget KDialogBase dlg  )  [private, slot]
 

Definition at line 88 of file pythonsupportpart.cpp.

References KDialogBase::addVBoxPage(), projectConfigWidget(), and KDevPlugin::projectDom().

Referenced by projectConfigWidget().

void PythonSupportPart::projectOpened  )  [private, slot]
 

Definition at line 96 of file pythonsupportpart.cpp.

References addedFilesToProject(), endl(), initialParse(), kdDebug(), KDevPlugin::project(), and removedFilesFromProject().

void PythonSupportPart::removedFilesFromProject const QStringList fileList  )  [private, slot]
 

Definition at line 168 of file pythonsupportpart.cpp.

References KDevPlugin::codeModel(), endl(), CodeModel::hasFile(), kdDebug(), KDevPlugin::project(), KDevProject::projectDirectory(), removedFilesFromProject(), and CodeModel::removeFile().

Referenced by projectOpened(), and removedFilesFromProject().

void PythonSupportPart::savedFile const QString fileName  )  [private, slot]
 

Definition at line 188 of file pythonsupportpart.cpp.

References KDevProject::allFiles(), endl(), kdDebug(), length(), maybeParse(), KDevPlugin::project(), and savedFile().

Referenced by savedFile().

void PythonSupportPart::slotExecute  )  [private, slot]
 

Definition at line 309 of file pythonsupportpart.cpp.

References interpreter(), KDevProject::mainProgram(), KDevPlugin::project(), and startApplication().

void PythonSupportPart::slotExecuteString  )  [private, slot]
 

Definition at line 323 of file pythonsupportpart.cpp.

References startApplication().

void PythonSupportPart::slotPydoc  )  [private, slot]
 

Definition at line 335 of file pythonsupportpart.cpp.

References KDevPlugin::partController(), and KDevPartController::showDocument().

void PythonSupportPart::slotStartInterpreter  )  [private, slot]
 

Definition at line 317 of file pythonsupportpart.cpp.

References interpreter(), and startApplication().

void PythonSupportPart::startApplication const QString program  )  [private]
 

Definition at line 302 of file pythonsupportpart.cpp.

References KDevPlugin::appFrontend(), KDevPlugin::projectDom(), KDevAppFrontend::startAppCommand(), and startApplication().

Referenced by slotExecute(), slotExecuteString(), slotStartInterpreter(), and startApplication().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003