PerforcePart Class Reference
Integrates the perforce version managment system into KDevelop. More...
#include <perforcepart.h>
Inheritance diagram for PerforcePart:


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 |
KAction * | actionEdit |
KAction * | actionRevert |
KAction * | actionSubmit |
KAction * | actionSync |
KAction * | actionDiff |
KAction * | actionAdd |
KAction * | actionRemove |
Detailed Description
Integrates the perforce version managment system into KDevelop.
- Author(s):
- Bernd Gehrmann Copyright (C) 1999-2001
Harald Fernengel Copyright (C) 2002-2003
- 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
|
|
|
Definition at line 52 of file perforcepart.cpp. |
Member Function Documentation
|
Definition at line 213 of file perforcepart.cpp. References execCommand(). Referenced by slotActionAdd(), and slotAdd(). |
|
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(). |
|
Definition at line 87 of file perforcepart.cpp. References FileContext::fileName(), Context::hasType(), KPopupMenu::insertTitle(), popupfile, slotAdd(), slotCommit(), slotDiff(), slotEdit(), slotRemove(), slotRevert(), and slotUpdate(). |
|
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(). |
|
Definition at line 224 of file perforcepart.cpp. References slotDiffFinished(). Referenced by slotActionDiff(), and slotDiff(). |
|
Definition at line 146 of file perforcepart.cpp. References execCommand(). Referenced by slotActionEdit(), and slotEdit(). |
|
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(). |
|
Definition at line 219 of file perforcepart.cpp. References execCommand(). Referenced by slotActionRemove(), and slotRemove(). |
|
Definition at line 151 of file perforcepart.cpp. References execCommand(), and KMessageBox::questionYesNo(). Referenced by slotActionRevert(), and slotRevert(). |
|
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(). |
|
Returns the short description.
Reimplemented from KDevPlugin. Definition at line 30 of file perforcepart.h. |
|
Definition at line 300 of file perforcepart.cpp. References add(), and currentFile(). Referenced by setupActions(). |
|
Definition at line 291 of file perforcepart.cpp. References commit(), and currentFile(). Referenced by setupActions(). |
|
Definition at line 320 of file perforcepart.cpp. References currentFile(), and diff(). Referenced by setupActions(). |
|
Definition at line 310 of file perforcepart.cpp. References currentFile(), and edit(). Referenced by setupActions(). |
|
Definition at line 305 of file perforcepart.cpp. References currentFile(), and remove(). Referenced by setupActions(). |
|
Definition at line 315 of file perforcepart.cpp. References currentFile(), and revert(). Referenced by setupActions(). |
|
Definition at line 296 of file perforcepart.cpp. References currentFile(), and update(). Referenced by setupActions(). |
|
Definition at line 335 of file perforcepart.cpp. References add(), and popupfile. Referenced by contextMenu(). |
|
Definition at line 325 of file perforcepart.cpp. References commit(), and popupfile. Referenced by contextMenu(). |
|
Definition at line 355 of file perforcepart.cpp. References diff(), and popupfile. Referenced by contextMenu(). |
|
Definition at line 246 of file perforcepart.cpp. References KMessageBox::detailedError(), KDevPlugin::diffFrontend(), KMessageBox::information(), kdDebug(), KDevDiffFrontend::showDiff(), and KMessageBox::warningContinueCancelList(). Referenced by diff(). |
|
Definition at line 345 of file perforcepart.cpp. References edit(), and popupfile. Referenced by contextMenu(). |
|
Definition at line 340 of file perforcepart.cpp. References popupfile, and remove(). Referenced by contextMenu(). |
|
Definition at line 350 of file perforcepart.cpp. References popupfile, and revert(). Referenced by contextMenu(). |
|
Definition at line 330 of file perforcepart.cpp. References popupfile, and update(). Referenced by contextMenu(). |
|
Definition at line 189 of file perforcepart.cpp. References KDevPlugin::makeFrontend(), KDevMakeFrontend::queueCommand(), and KProcess::quote(). Referenced by slotActionUpdate(), and slotUpdate(). |
Member Data Documentation
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
Definition at line 67 of file perforcepart.h. Referenced by setupActions(). |
|
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:
- vcs/perforce/perforcepart.h
- vcs/perforce/perforcepart.cpp