KDevelop API Documentation

ToolsPart Class Reference

This plugin provides an easy way to add external applications to the Tools menu and toolbar. More...

#include <tools_part.h>

Inheritance diagram for ToolsPart:

KDevPlugin QObject KXMLGUIClient List of all members.

Public Member Functions

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

Private Slots

void configWidget (KDialogBase *dlg)
void updateMenu ()
void slotToolActivated ()
void contextMenu (QPopupMenu *popup, const Context *context)
void updateToolsMenu ()
void toolsMenuActivated ()
void fileContextActivated (int id)
void dirContextActivated (int id)

Private Member Functions

void startCommand (QString cmdline, bool captured, QString fileName)

Private Attributes

QPopupMenum_contextPopup
QString m_contextFileName

Detailed Description

This plugin provides an easy way to add external applications to the Tools menu and toolbar.

Author(s):
Bernd Gehrmann

Unmaintained:
This part is currently un-maintained.

Feature(s):
Provides an easy way to add external applications to the Tools menu and toolbar.

Tool menu and the file and directory context menus can now be populated with any shell command.

Output can be sent to the app output part. S, D, T and W magic works.

Definition at line 23 of file tools_part.h.


Constructor & Destructor Documentation

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

ToolsPart::~ToolsPart  ) 
 

Definition at line 56 of file tools_part.cpp.


Member Function Documentation

void ToolsPart::configWidget KDialogBase dlg  )  [private, slot]
 

Definition at line 61 of file tools_part.cpp.

References KDialogBase::addVBoxPage(), configWidget(), updateMenu(), and updateToolsMenu().

Referenced by configWidget().

void ToolsPart::contextMenu QPopupMenu popup,
const Context context
[private, slot]
 

Definition at line 209 of file tools_part.cpp.

References contextMenu(), dirContextActivated(), fileContextActivated(), FileContext::fileName(), Context::hasType(), FileContext::isDirectory(), m_contextFileName, m_contextPopup, KConfigBase::readListEntry(), and KConfigBase::setGroup().

Referenced by contextMenu().

void ToolsPart::dirContextActivated int  id  )  [private, slot]
 

Definition at line 269 of file tools_part.cpp.

References dirContextActivated(), endl(), kdDebug(), m_contextFileName, m_contextPopup, KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), KConfigBase::setGroup(), and startCommand().

Referenced by contextMenu(), and dirContextActivated().

void ToolsPart::fileContextActivated int  id  )  [private, slot]
 

Definition at line 254 of file tools_part.cpp.

References endl(), fileContextActivated(), kdDebug(), m_contextFileName, m_contextPopup, KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), KConfigBase::setGroup(), and startCommand().

Referenced by contextMenu(), and fileContextActivated().

void ToolsPart::slotToolActivated  )  [private, slot]
 

Definition at line 103 of file tools_part.cpp.

Referenced by updateMenu().

void ToolsPart::startCommand QString  cmdline,
bool  captured,
QString  fileName
[private]
 

Definition at line 127 of file tools_part.cpp.

References KParts::PartManager::activePart(), KDevPlugin::appFrontend(), currentWord(), KDevPlugin::partController(), KURL::path(), KDevPlugin::project(), KDevProject::projectDirectory(), KTextEditor::SelectionInterface::selection(), KShellProcess::start(), KDevAppFrontend::startAppCommand(), startCommand(), and KParts::ReadOnlyPart::url().

Referenced by dirContextActivated(), fileContextActivated(), startCommand(), and toolsMenuActivated().

void ToolsPart::toolsMenuActivated  )  [private, slot]
 

Definition at line 236 of file tools_part.cpp.

References endl(), kdDebug(), KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), KConfigBase::setGroup(), and startCommand().

Referenced by updateToolsMenu().

void ToolsPart::updateMenu  )  [private, slot]
 

Definition at line 76 of file tools_part.cpp.

References KDesktopFile::readIcon(), KConfigBase::readListEntry(), KDesktopFile::readName(), KConfigBase::setGroup(), and slotToolActivated().

Referenced by configWidget().

void ToolsPart::updateToolsMenu  )  [private, slot]
 

Definition at line 181 of file tools_part.cpp.

References KConfigBase::readBoolEntry(), KDesktopFile::readIcon(), KConfigBase::readListEntry(), KConfigBase::readPathEntry(), KConfigBase::setGroup(), and toolsMenuActivated().

Referenced by configWidget().


Member Data Documentation

QString ToolsPart::m_contextFileName [private]
 

Definition at line 51 of file tools_part.h.

Referenced by contextMenu(), dirContextActivated(), and fileContextActivated().

QPopupMenu* ToolsPart::m_contextPopup [private]
 

Definition at line 50 of file tools_part.h.

Referenced by contextMenu(), dirContextActivated(), and fileContextActivated().


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:07 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003