KDevelop API Documentation

RubySupportPart Class Reference

This is a Ruby support plugin. More...

#include <rubysupport_part.h>

Inheritance diagram for RubySupportPart:

Inheritance graph
[legend]
Collaboration diagram for RubySupportPart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

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 savedFile (const KURL &fileName)
void addedFilesToProject (const QStringList &fileList)
void removedFilesFromProject (const QStringList &fileList)
void slotRun ()
void initialParse ()

Private Member Functions

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

Detailed Description

This is a Ruby support plugin.

Author(s):
Marek Janukowicz

Maintainer(s):
Marek Janukowicz

Feature(s):
Ruby language support

.rb template for New File

Ruby project template for Application Wizard

"Run" option in menu

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 22 of file rubysupport_part.h.


Constructor & Destructor Documentation

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

RubySupportPart::~RubySupportPart  )  [virtual]
 

Definition at line 54 of file rubysupport_part.cpp.


Member Function Documentation

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

Definition at line 111 of file rubysupport_part.cpp.

References KDevLanguageSupport::addedSourceInfo(), kdDebug(), maybeParse(), KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by projectOpened().

KDevLanguageSupport::Features RubySupportPart::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 152 of file rubysupport_part.cpp.

References KDevLanguageSupport::Features.

void RubySupportPart::initialParse  )  [private, slot]
 

Definition at line 92 of file rubysupport_part.cpp.

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

Referenced by projectOpened().

QString RubySupportPart::interpreter  )  [private]
 

Definition at line 238 of file rubysupport_part.cpp.

References KDevPlugin::projectDom(), and DomUtil::readEntry().

Referenced by slotRun().

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

Definition at line 78 of file rubysupport_part.cpp.

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

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

KMimeType::List RubySupportPart::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 251 of file rubysupport_part.cpp.

References KMimeType::List, KMimeType::mimeType(), and KMimeType::Ptr.

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

Definition at line 157 of file rubysupport_part.cpp.

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

Referenced by maybeParse().

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

Definition at line 58 of file rubysupport_part.cpp.

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

void RubySupportPart::projectOpened  )  [private, slot]
 

Definition at line 64 of file rubysupport_part.cpp.

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

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

Definition at line 125 of file rubysupport_part.cpp.

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

Referenced by projectOpened().

void RubySupportPart::savedFile const KURL fileName  )  [private, slot]
 

Definition at line 142 of file rubysupport_part.cpp.

References KDevLanguageSupport::addedSourceInfo(), KDevProject::allFiles(), kdDebug(), Structure::length(), maybeParse(), KURL::path(), and KDevPlugin::project().

void RubySupportPart::slotRun  )  [private, slot]
 

Definition at line 228 of file rubysupport_part.cpp.

References KParts::PartManager::activePart(), file, interpreter(), KDevPlugin::partController(), KURL::path(), startApplication(), and KParts::ReadOnlyPart::url().

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

Definition at line 245 of file rubysupport_part.cpp.

References KDevPlugin::appFrontend(), KDevPlugin::project(), KDevPlugin::projectDom(), DomUtil::readBoolEntry(), and KDevAppFrontend::startAppCommand().

Referenced by slotRun().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:47:19 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003