KDevelop API Documentation

ClearcasePart Class Reference

Integrates Clearcase configuration management system into KDevelop. More...

#include <clearcasepart.h>

Inheritance diagram for ClearcasePart:

Inheritance graph
[legend]
Collaboration diagram for ClearcasePart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Public Attributes

const QString default_checkin
const QString default_checkout
const QString default_uncheckout
const QString default_create
const QString default_remove
const QString default_diff

Private Slots

void contextMenu (QPopupMenu *popup, const Context *context)
void slotCheckin ()
void slotCheckout ()
void slotUncheckout ()
void slotCreate ()
void slotRemove ()
void slotDiff ()
void slotDiffFinished (const QString &diff, const QString &err)

Private Attributes

QString popupfile
QString viewname

Detailed Description

Integrates Clearcase configuration management system into KDevelop.

Based on Perforce (PerforcePart) implementation by Harald Fernengel <harry AT kdevelop.org>

To use clearcase functions, you need to:

  1. Create a view in which you will keep your project files
  2. Start the view and open project as a view extended directory.
    IMPORTANT: If you have a view test_vu and your project is located under /vobs/source/project1 you should open the project from /view/test_vu/vobs/source/project1 rather than inside the view from /vobs/source/project1. File open dialog does not show any files if you do otherwise. Who knows, maybe it will work for you. If so, let me know.
  3. Clearcase functions appear in the popup menu for an open file just like cvs or perforce.
  4. Functions supported so far are: checkout, checkin, uncheckout, diff, mkelem, and rmname (not rmelem).
  5. For mkelem or rmname, you need to make sure that current directory is checked out or the operation will fail.
  6. No support for snapshot views yet. I haven't worked with them.
  7. To checkout a directory, select directory in file selector part and use popup-menu.

Author(s):
Ajay Guleria

Feature(s):
Integrates Clearcase configuration management system into KDevelop.

Provided a dialog for checkout and checkin comments.

If selected file is not a clearcase file, "ClearCase" menu does not appear in the popup. A filename must start with /view or /vobs to qualify as a clearcase filename.

Definition at line 20 of file clearcasepart.h.


Constructor & Destructor Documentation

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

ClearcasePart::~ClearcasePart  ) 
 

Definition at line 50 of file clearcasepart.cpp.


Member Function Documentation

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

Definition at line 54 of file clearcasepart.cpp.

References FileContext::fileName(), Context::hasType(), KPopupMenu::insertTitle(), popupfile, slotCheckin(), slotCheckout(), slotCreate(), slotDiff(), slotRemove(), slotUncheckout(), and viewname.

void ClearcasePart::slotCheckin  )  [private, slot]
 

Definition at line 95 of file clearcasepart.cpp.

References default_checkin, CcaseCommentDlg::logMessage(), KDevPlugin::makeFrontend(), message(), popupfile, KDevPlugin::projectDom(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), and DomUtil::readEntry().

Referenced by contextMenu().

void ClearcasePart::slotCheckout  )  [private, slot]
 

Definition at line 130 of file clearcasepart.cpp.

References default_checkout, CcaseCommentDlg::isReserved(), CcaseCommentDlg::logMessage(), KDevPlugin::makeFrontend(), message(), popupfile, KDevPlugin::projectDom(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), and DomUtil::readEntry().

Referenced by contextMenu().

void ClearcasePart::slotCreate  )  [private, slot]
 

Definition at line 190 of file clearcasepart.cpp.

References default_create, KDevPlugin::makeFrontend(), popupfile, KDevPlugin::projectDom(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), and DomUtil::readEntry().

Referenced by contextMenu().

void ClearcasePart::slotDiff  )  [private, slot]
 

Definition at line 241 of file clearcasepart.cpp.

References default_diff, popupfile, KDevPlugin::projectDom(), DomUtil::readEntry(), and slotDiffFinished().

Referenced by contextMenu().

void ClearcasePart::slotDiffFinished const QString diff,
const QString err
[private, slot]
 

Definition at line 265 of file clearcasepart.cpp.

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

Referenced by slotDiff().

void ClearcasePart::slotRemove  )  [private, slot]
 

Definition at line 217 of file clearcasepart.cpp.

References default_remove, KDevPlugin::makeFrontend(), popupfile, KDevPlugin::projectDom(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), and DomUtil::readEntry().

Referenced by contextMenu().

void ClearcasePart::slotUncheckout  )  [private, slot]
 

Definition at line 166 of file clearcasepart.cpp.

References default_uncheckout, KDevPlugin::makeFrontend(), popupfile, KDevPlugin::projectDom(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), and DomUtil::readEntry().

Referenced by contextMenu().


Member Data Documentation

const QString ClearcasePart::default_checkin
 

Definition at line 27 of file clearcasepart.h.

Referenced by slotCheckin().

const QString ClearcasePart::default_checkout
 

Definition at line 28 of file clearcasepart.h.

Referenced by slotCheckout().

const QString ClearcasePart::default_create
 

Definition at line 30 of file clearcasepart.h.

Referenced by slotCreate().

const QString ClearcasePart::default_diff
 

Definition at line 32 of file clearcasepart.h.

Referenced by slotDiff().

const QString ClearcasePart::default_remove
 

Definition at line 31 of file clearcasepart.h.

Referenced by slotRemove().

const QString ClearcasePart::default_uncheckout
 

Definition at line 29 of file clearcasepart.h.

Referenced by slotUncheckout().

QString ClearcasePart::popupfile [private]
 

Definition at line 50 of file clearcasepart.h.

Referenced by contextMenu(), slotCheckin(), slotCheckout(), slotCreate(), slotDiff(), slotRemove(), and slotUncheckout().

QString ClearcasePart::viewname [private]
 

Definition at line 51 of file clearcasepart.h.

Referenced by contextMenu().


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 Tue Feb 22 09:38:11 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003