KDevelop API Documentation

BashSupportPart Class Reference

Supports bash language. More...

#include <bashsupport_part.h>

Inheritance diagram for BashSupportPart:

KDevLanguageSupport KDevPlugin QObject KXMLGUIClient List of all members.

Public Member Functions

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

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 slotRun ()
void projectConfigWidget (KDialogBase *dlg)
void projectOpened ()
void projectClosed ()
void savedFile (const QString &fileName)
void addedFilesToProject (const QStringList &fileList)
void removedFilesFromProject (const QStringList &fileList)
void parse ()
void slotActivePartChanged (KParts::Part *part)

Private Member Functions

void startApplication (const QString &program)
QString interpreter ()
void parse (const QString &fileName)
void addAttribute (const QString &name, FileDom file, uint line)

Private Attributes

BashCodeCompletionm_cc
QStringList m_vars

Detailed Description

Supports bash language.

Author(s):
Ian Reinhart Geiser

Maintainer(s):
Ian Reinhart Geiser

Feature(s):
function browser support

runs bash script in external terminal

syntax highlighting and code folding via katepart

Code completion works for variables

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

Definition at line 50 of file bashsupport_part.h.


Constructor & Destructor Documentation

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

BashSupportPart::~BashSupportPart  )  [virtual]
 

Definition at line 64 of file bashsupport_part.cpp.

References m_cc.


Member Function Documentation

void BashSupportPart::addAttribute const QString name,
FileDom  file,
uint  line
[private]
 

Definition at line 276 of file bashsupport_part.cpp.

References addAttribute(), KDevPlugin::codeModel(), CodeModel::create(), endl(), file, kdDebug(), and VariableDom.

Referenced by addAttribute(), and parse().

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

Definition at line 138 of file bashsupport_part.cpp.

References addedFilesToProject(), endl(), kdDebug(), parse(), KDevPlugin::project(), and KDevLanguageSupport::updatedSourceInfo().

Referenced by addedFilesToProject(), and projectOpened().

KDevLanguageSupport::Features BashSupportPart::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 189 of file bashsupport_part.cpp.

QString BashSupportPart::interpreter  )  [private]
 

Definition at line 110 of file bashsupport_part.cpp.

References KDevPlugin::projectDom().

Referenced by slotRun().

KMimeType::List BashSupportPart::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 431 of file bashsupport_part.cpp.

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

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

Definition at line 194 of file bashsupport_part.cpp.

References addAttribute(), CodeModel::addFile(), KDevPlugin::codeModel(), CodeModel::create(), endl(), FileDom, FunctionDom, CodeModel::globalNamespace(), CodeModel::hasFile(), kdDebug(), m_cc, m_vars, CodeModel::removeFile(), BashCodeCompletion::setVars(), and VariableList.

void BashSupportPart::parse  )  [private, slot]
 

Definition at line 118 of file bashsupport_part.cpp.

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

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

void BashSupportPart::projectClosed  )  [private, slot]
 

Definition at line 94 of file bashsupport_part.cpp.

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

Definition at line 71 of file bashsupport_part.cpp.

References projectConfigWidget().

Referenced by projectConfigWidget().

void BashSupportPart::projectOpened  )  [private, slot]
 

Definition at line 79 of file bashsupport_part.cpp.

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

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

Definition at line 153 of file bashsupport_part.cpp.

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

Referenced by projectOpened(), and removedFilesFromProject().

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

Definition at line 171 of file bashsupport_part.cpp.

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

Referenced by savedFile().

void BashSupportPart::slotActivePartChanged KParts::Part part  )  [private, slot]
 

Definition at line 270 of file bashsupport_part.cpp.

References endl(), kdDebug(), m_cc, BashCodeCompletion::setActiveEditorPart(), and slotActivePartChanged().

Referenced by slotActivePartChanged().

void BashSupportPart::slotRun  )  [private, slot]
 

Definition at line 99 of file bashsupport_part.cpp.

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

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

Definition at line 182 of file bashsupport_part.cpp.

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

Referenced by slotRun(), and startApplication().


Member Data Documentation

BashCodeCompletion* BashSupportPart::m_cc [private]
 

Definition at line 77 of file bashsupport_part.h.

Referenced by parse(), slotActivePartChanged(), and ~BashSupportPart().

QStringList BashSupportPart::m_vars [private]
 

Definition at line 78 of file bashsupport_part.h.

Referenced by parse().


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 Wed Oct 6 17:39:20 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003