KDevelop API Documentation

PerforcePart Class Reference

Integrates the perforce version managment system into KDevelop. More...

#include <perforcepart.h>

Inheritance diagram for PerforcePart:

KDevPlugin QObject KXMLGUIClient List of all members.

Public Member Functions

 PerforcePart (QObject *parent, const char *name, const QStringList &)
 ~PerforcePart ()
virtual QString shortDescription () const
 Returns the short description.


Private Slots

void contextMenu (QPopupMenu *popup, const Context *context)
void slotCommit ()
void slotUpdate ()
void slotAdd ()
void slotRemove ()
void slotEdit ()
void slotRevert ()
void slotDiff ()
void slotActionCommit ()
void slotActionUpdate ()
void slotActionAdd ()
void slotActionRemove ()
void slotActionEdit ()
void slotActionRevert ()
void slotActionDiff ()
void slotDiffFinished (const QString &, const QString &)

Private Member Functions

void commit (const QString &filename)
void update (const QString &filename)
void add (const QString &filename)
void remove (const QString &filename)
void edit (const QString &filename)
void revert (const QString &filename)
void diff (const QString &filename)
QString currentFile ()
void execCommand (const QString &cmd, const QString &filename)
 calls p4 with the command cmd and appends the filename

void setupActions ()

Private Attributes

QString popupfile
KActionactionEdit
KActionactionRevert
KActionactionSubmit
KActionactionSync
KActionactionDiff
KActionactionAdd
KActionactionRemove

Detailed Description

Integrates the perforce version managment system into KDevelop.

Author(s):
Bernd Gehrmann Copyright (C) 1999-2001

Harald Fernengel Copyright (C) 2002-2003

Maintainer(s):
Harald Fernengel

Feature(s):
edit, revert and submit

use the diff frontend (also removes the crappy perforce diff headers)

Uses KAction, so you can assign your favourite shortcuts to the commands.

Requirement(s):
Perforce 2003.1 http://www.perforce.com/perforce/products.html

Definition at line 22 of file perforcepart.h.


Constructor & Destructor Documentation

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

PerforcePart::~PerforcePart  ) 
 

Definition at line 54 of file perforcepart.cpp.


Member Function Documentation

void PerforcePart::add const QString filename  )  [private]
 

Definition at line 215 of file perforcepart.cpp.

References add(), and execCommand().

Referenced by add(), slotActionAdd(), and slotAdd().

void PerforcePart::commit const QString filename  )  [private]
 

Definition at line 162 of file perforcepart.cpp.

References CommitDialog::changeList(), commit(), KDevPlugin::makeFrontend(), message(), KDevMakeFrontend::queueCommand(), and CommitDialog::setFiles().

Referenced by commit(), slotActionCommit(), and slotCommit().

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

Definition at line 89 of file perforcepart.cpp.

References contextMenu(), FileContext::fileName(), Context::hasType(), KPopupMenu::insertTitle(), popupfile, slotAdd(), slotCommit(), slotDiff(), slotEdit(), slotRemove(), slotRevert(), and slotUpdate().

Referenced by contextMenu().

QString PerforcePart::currentFile  )  [private]
 

Definition at line 282 of file perforcepart.cpp.

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

Referenced by slotActionAdd(), slotActionCommit(), slotActionDiff(), slotActionEdit(), slotActionRemove(), slotActionRevert(), and slotActionUpdate().

void PerforcePart::diff const QString filename  )  [private]
 

Definition at line 226 of file perforcepart.cpp.

References diff(), and slotDiffFinished().

Referenced by diff(), slotActionDiff(), and slotDiff().

void PerforcePart::edit const QString filename  )  [private]
 

Definition at line 148 of file perforcepart.cpp.

References edit(), and execCommand().

Referenced by edit(), slotActionEdit(), and slotEdit().

void PerforcePart::execCommand const QString cmd,
const QString filename
[private]
 

calls p4 with the command cmd and appends the filename

Definition at line 127 of file perforcepart.cpp.

References execCommand(), KDevPlugin::makeFrontend(), and KDevMakeFrontend::queueCommand().

Referenced by add(), edit(), execCommand(), remove(), and revert().

void PerforcePart::remove const QString filename  )  [private]
 

Definition at line 221 of file perforcepart.cpp.

References execCommand(), and remove().

Referenced by remove(), slotActionRemove(), and slotRemove().

void PerforcePart::revert const QString filename  )  [private]
 

Definition at line 153 of file perforcepart.cpp.

References execCommand(), and revert().

Referenced by revert(), slotActionRevert(), and slotRevert().

void PerforcePart::setupActions  )  [private]
 

Definition at line 57 of file perforcepart.cpp.

References actionAdd, KXMLGUIClient::actionCollection(), actionDiff, actionEdit, actionRemove, actionRevert, actionSubmit, actionSync, KAction::setToolTip(), KAction::setWhatsThis(), slotActionAdd(), slotActionCommit(), slotActionDiff(), slotActionEdit(), slotActionRemove(), slotActionRevert(), and slotActionUpdate().

virtual QString PerforcePart::shortDescription  )  const [inline, virtual]
 

Returns the short description.

Reimplemented from KDevPlugin.

Definition at line 30 of file perforcepart.h.

void PerforcePart::slotActionAdd  )  [private, slot]
 

Definition at line 302 of file perforcepart.cpp.

References add(), and currentFile().

Referenced by setupActions().

void PerforcePart::slotActionCommit  )  [private, slot]
 

Definition at line 293 of file perforcepart.cpp.

References commit(), and currentFile().

Referenced by setupActions().

void PerforcePart::slotActionDiff  )  [private, slot]
 

Definition at line 322 of file perforcepart.cpp.

References currentFile(), and diff().

Referenced by setupActions().

void PerforcePart::slotActionEdit  )  [private, slot]
 

Definition at line 312 of file perforcepart.cpp.

References currentFile(), and edit().

Referenced by setupActions().

void PerforcePart::slotActionRemove  )  [private, slot]
 

Definition at line 307 of file perforcepart.cpp.

References currentFile(), and remove().

Referenced by setupActions().

void PerforcePart::slotActionRevert  )  [private, slot]
 

Definition at line 317 of file perforcepart.cpp.

References currentFile(), and revert().

Referenced by setupActions().

void PerforcePart::slotActionUpdate  )  [private, slot]
 

Definition at line 298 of file perforcepart.cpp.

References currentFile(), and update().

Referenced by setupActions().

void PerforcePart::slotAdd  )  [private, slot]
 

Definition at line 337 of file perforcepart.cpp.

References add(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotCommit  )  [private, slot]
 

Definition at line 327 of file perforcepart.cpp.

References commit(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotDiff  )  [private, slot]
 

Definition at line 357 of file perforcepart.cpp.

References diff(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotDiffFinished const QString ,
const QString
[private, slot]
 

Definition at line 248 of file perforcepart.cpp.

References KDevPlugin::diffFrontend(), endl(), kdDebug(), KDevDiffFrontend::showDiff(), and slotDiffFinished().

Referenced by diff(), and slotDiffFinished().

void PerforcePart::slotEdit  )  [private, slot]
 

Definition at line 347 of file perforcepart.cpp.

References edit(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotRemove  )  [private, slot]
 

Definition at line 342 of file perforcepart.cpp.

References popupfile, and remove().

Referenced by contextMenu().

void PerforcePart::slotRevert  )  [private, slot]
 

Definition at line 352 of file perforcepart.cpp.

References popupfile, and revert().

Referenced by contextMenu().

void PerforcePart::slotUpdate  )  [private, slot]
 

Definition at line 332 of file perforcepart.cpp.

References popupfile, and update().

Referenced by contextMenu().

void PerforcePart::update const QString filename  )  [private]
 

Definition at line 191 of file perforcepart.cpp.

References KDevPlugin::makeFrontend(), KDevMakeFrontend::queueCommand(), and update().

Referenced by slotActionUpdate(), slotUpdate(), and update().


Member Data Documentation

KAction * PerforcePart::actionAdd [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

KAction * PerforcePart::actionDiff [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

KAction* PerforcePart::actionEdit [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

KAction * PerforcePart::actionRemove [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

KAction * PerforcePart::actionRevert [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

KAction * PerforcePart::actionSubmit [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

KAction * PerforcePart::actionSync [private]
 

Definition at line 67 of file perforcepart.h.

Referenced by setupActions().

QString PerforcePart::popupfile [private]
 

Definition at line 66 of file perforcepart.h.

Referenced by contextMenu(), slotAdd(), slotCommit(), slotDiff(), slotEdit(), slotRemove(), slotRevert(), and slotUpdate().


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