KDevelop API Documentation

perforcepart.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 1999-2001 by Bernd Gehrmann                             *
00003  *   bernd@kdevelop.org                                                    *
00004  *   Extended to use perforce 2002 by Harald Fernengel <harry@kdevelop.org>*
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  ***************************************************************************/
00012 
00013 #ifndef _PERFORCEPART_H_
00014 #define _PERFORCEPART_H_
00015 
00016 #include "kdevplugin.h"
00017 
00018 class Context;
00019 class QPopupMenu;
00020 class KAction;
00021 
00022 class PerforcePart : public KDevPlugin
00023 {
00024     Q_OBJECT
00025 
00026 public:
00027     PerforcePart( QObject *parent, const char *name, const QStringList & );
00028     ~PerforcePart();
00029 
00030     virtual QString shortDescription() const 
00031     { return "Perforce is a version control system"; };
00032 
00033 private slots:
00034     void contextMenu(QPopupMenu *popup, const Context *context);
00035     void slotCommit();
00036     void slotUpdate();
00037     void slotAdd();
00038     void slotRemove();
00039     void slotEdit();
00040     void slotRevert();
00041     void slotDiff();
00042 
00043     void slotActionCommit();
00044     void slotActionUpdate();
00045     void slotActionAdd();
00046     void slotActionRemove();
00047     void slotActionEdit();
00048     void slotActionRevert();
00049     void slotActionDiff();
00050 
00051     void slotDiffFinished( const QString&, const QString& );
00052 
00053 private:
00054     void commit( const QString& filename );
00055     void update( const QString& filename );
00056     void add( const QString& filename );
00057     void remove( const QString& filename );
00058     void edit( const QString& filename );
00059     void revert( const QString& filename );
00060     void diff( const QString& filename );
00061     QString currentFile();
00062 
00064     void execCommand( const QString& cmd, const QString& filename );
00065     void setupActions();
00066     QString popupfile;
00067     KAction *actionEdit, *actionRevert,
00068             *actionSubmit, *actionSync,
00069             *actionDiff, *actionAdd, *actionRemove;
00070 };
00071 
00072 #endif
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:03:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003