KDevelop API Documentation

CervisiaPlugin Class Reference

A quick and dirty hack for integrating CervisiaPart in KDevelop: it is nor complete nor without the obvious "crashing feature" ;-P. More...

#include <cervisia_plugin.h>

Inheritance diagram for CervisiaPlugin:

KDevVersionControl KDevPlugin QObject KXMLGUIClient List of all members.

Public Slots

void slotProjectOpened ()
void slotProjectClosed ()

Public Member Functions

 CervisiaPlugin (QObject *parent, const char *name, const QStringList &)
 Default constructor.

virtual ~CervisiaPlugin ()
 Destructor.


Private Attributes

KParts::ReadOnlyPartm_part

Detailed Description

A quick and dirty hack for integrating CervisiaPart in KDevelop: it is nor complete nor without the obvious "crashing feature" ;-P.

To make it compily with kdevelop GUI (file selector and ouput view being separated) I had to produce Cervisia sources: this will probably break because cervisia will change in future :-( The patch does:

This code is only an experimentation dealing with cervisia: it will be nice to have all the goodies cervisia provides but seems that XMLGUI wizardry is needed to merge the two guis in an acceptable way. In addition I see no way to have common context menus for other plugins in kdevelop :-/ (which is bad since we cannot have a file viewer for each VCS).

If you want to play with it feel free :-)) Just add some notes here if you have discovered something interesting ;-)

Author(s):
Mario Scalas

Maintainer(s):
Mario Scalas

Feature(s):
integrates CervisiaPart in KDevelop

creates the cervisia kpart and embed its widgets in gideon.

merge the two guis

intercept signal KDevCore::projectOpened() and use KParts::ReadOnlyPart::openURL(const KURL &)

Bug:
GUI are "each on its own": we must find a way to force Cervisia to behave as we wish (for example, encapsulating it in a submenu or two)

once the project is opened, how to close it? ;-)

The patch will be soon obsoleted: once it is, the cervisia_plugin.{h,cpp} code must be re-hacked to deal only with KParts::ReadOnlyPart or re-sync the patch.

Definition at line 29 of file cervisia_plugin.h.


Constructor & Destructor Documentation

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

Default constructor.

CervisiaPlugin::~CervisiaPlugin  )  [virtual]
 

Destructor.

Definition at line 69 of file cervisia_plugin.cpp.

References KParts::ReadOnlyPart::closeURL(), KMainWindow::guiFactory(), m_part, KDevMainWindow::main(), KDevPlugin::mainWindow(), KXMLGUIFactory::removeClient(), KDevMainWindow::removeView(), and KParts::Part::widget().


Member Function Documentation

void CervisiaPlugin::slotProjectClosed  )  [slot]
 

Definition at line 93 of file cervisia_plugin.cpp.

References KParts::ReadOnlyPart::closeURL(), KMainWindow::guiFactory(), m_part, KDevMainWindow::main(), KDevPlugin::mainWindow(), KXMLGUIFactory::removeClient(), KDevMainWindow::removeView(), and KParts::Part::widget().

void CervisiaPlugin::slotProjectOpened  )  [slot]
 

Definition at line 80 of file cervisia_plugin.cpp.

References KXMLGUIFactory::addClient(), KDevMainWindow::embedSelectView(), KMainWindow::guiFactory(), m_part, KDevMainWindow::main(), KDevPlugin::mainWindow(), KParts::ReadOnlyPart::openURL(), KDevPlugin::project(), and KParts::Part::widget().


Member Data Documentation

KParts::ReadOnlyPart* CervisiaPlugin::m_part [private]
 

Definition at line 47 of file cervisia_plugin.h.

Referenced by slotProjectClosed(), slotProjectOpened(), and ~CervisiaPlugin().


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