KDevelop API Documentation

PerforcePart Class Reference

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

#include <perforcepart.h>

Inheritance diagram for PerforcePart:

Inheritance graph
[legend]
Collaboration diagram for PerforcePart:

Collaboration graph
[legend]
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 52 of file perforcepart.cpp.


Member Function Documentation

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

Definition at line 213 of file perforcepart.cpp.

References execCommand().

Referenced by slotActionAdd(), and slotAdd().

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

Definition at line 160 of file perforcepart.cpp.

References CommitDialog::changeList(), KMessageBox::error(), KDevPlugin::makeFrontend(), message(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), and CommitDialog::setFiles().

Referenced by slotActionCommit(), and slotCommit().

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

Definition at line 87 of file perforcepart.cpp.

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

QString PerforcePart::currentFile  )  [private]
 

Definition at line 280 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 224 of file perforcepart.cpp.

References slotDiffFinished().

Referenced by slotActionDiff(), and slotDiff().

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

Definition at line 146 of file perforcepart.cpp.

References execCommand().

Referenced by 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 125 of file perforcepart.cpp.

References KMessageBox::error(), KDevPlugin::makeFrontend(), KDevMakeFrontend::queueCommand(), and KProcess::quote().

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

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

Definition at line 219 of file perforcepart.cpp.

References execCommand().

Referenced by slotActionRemove(), and slotRemove().

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

Definition at line 151 of file perforcepart.cpp.

References execCommand(), and KMessageBox::questionYesNo().

Referenced by slotActionRevert(), and slotRevert().

void PerforcePart::setupActions  )  [private]
 

Definition at line 55 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 300 of file perforcepart.cpp.

References add(), and currentFile().

Referenced by setupActions().

void PerforcePart::slotActionCommit  )  [private, slot]
 

Definition at line 291 of file perforcepart.cpp.

References commit(), and currentFile().

Referenced by setupActions().

void PerforcePart::slotActionDiff  )  [private, slot]
 

Definition at line 320 of file perforcepart.cpp.

References currentFile(), and diff().

Referenced by setupActions().

void PerforcePart::slotActionEdit  )  [private, slot]
 

Definition at line 310 of file perforcepart.cpp.

References currentFile(), and edit().

Referenced by setupActions().

void PerforcePart::slotActionRemove  )  [private, slot]
 

Definition at line 305 of file perforcepart.cpp.

References currentFile(), and remove().

Referenced by setupActions().

void PerforcePart::slotActionRevert  )  [private, slot]
 

Definition at line 315 of file perforcepart.cpp.

References currentFile(), and revert().

Referenced by setupActions().

void PerforcePart::slotActionUpdate  )  [private, slot]
 

Definition at line 296 of file perforcepart.cpp.

References currentFile(), and update().

Referenced by setupActions().

void PerforcePart::slotAdd  )  [private, slot]
 

Definition at line 335 of file perforcepart.cpp.

References add(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotCommit  )  [private, slot]
 

Definition at line 325 of file perforcepart.cpp.

References commit(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotDiff  )  [private, slot]
 

Definition at line 355 of file perforcepart.cpp.

References diff(), and popupfile.

Referenced by contextMenu().

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

Definition at line 246 of file perforcepart.cpp.

References KMessageBox::detailedError(), KDevPlugin::diffFrontend(), KMessageBox::information(), kdDebug(), KDevDiffFrontend::showDiff(), and KMessageBox::warningContinueCancelList().

Referenced by diff().

void PerforcePart::slotEdit  )  [private, slot]
 

Definition at line 345 of file perforcepart.cpp.

References edit(), and popupfile.

Referenced by contextMenu().

void PerforcePart::slotRemove  )  [private, slot]
 

Definition at line 340 of file perforcepart.cpp.

References popupfile, and remove().

Referenced by contextMenu().

void PerforcePart::slotRevert  )  [private, slot]
 

Definition at line 350 of file perforcepart.cpp.

References popupfile, and revert().

Referenced by contextMenu().

void PerforcePart::slotUpdate  )  [private, slot]
 

Definition at line 330 of file perforcepart.cpp.

References popupfile, and update().

Referenced by contextMenu().

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

Definition at line 189 of file perforcepart.cpp.

References KDevPlugin::makeFrontend(), KDevMakeFrontend::queueCommand(), and KProcess::quote().

Referenced by slotActionUpdate(), and slotUpdate().


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.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:28:03 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003