KDevelop API Documentation

cvspart.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 1999-2001 by Bernd Gehrmann                             *
00003  *   bernd@kdevelop.org                                                    *
00004  *   Copyright (C) 2003 by Mario Scalas                                    *
00005  *   mario.scalas@libero.it                                                *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  ***************************************************************************/
00013 
00014 #ifndef _CVSPART_H_
00015 #define _CVSPART_H_
00016 
00017 #include <qguardedptr.h>
00018 #include <qcstring.h>
00019 
00020 #include "kdevversioncontrol.h"
00021 
00022 class Context;
00023 class QPopupMenu;
00024 class QDir;
00025 class KDialogBase;
00026 class KURL;
00027 class KURL::List;
00028 class KAction;
00029 
00030 class CvsProcessWidget;
00031 class CvsForm;
00032 class CheckoutDialog;
00033 
00034 class CvsService_stub;
00035 class Repository_stub;
00036 class CvsServicePartImpl;
00037 
00038 class CvsServicePart : public KDevVersionControl
00039 {
00040     Q_OBJECT
00041 
00042     friend class CvsServicePartImpl;
00043 
00044 public:
00046     CvsServicePart( QObject *parent, const char *name, const QStringList & );
00048     virtual ~CvsServicePart();
00049 
00054     virtual QWidget *newProjectWidget( QWidget *parent );
00058     virtual void createNewProject( const QString& dir );
00062     virtual bool fetchFromRepository();
00066     virtual KDevVCSFileInfoProvider *fileInfoProvider() const;
00071     virtual bool isValidDirectory( const QString &dirPath ) const;
00072 
00073 private slots:
00079     void contextMenu( QPopupMenu *popup, const Context *context );
00080 
00081     // Cvs operations (menubar)
00082     void slotActionLogin();
00083     void slotActionLogout();
00084 
00085     void slotActionCommit();
00086     void slotActionUpdate();
00087     void slotActionAdd();
00088     void slotActionAddBinary();
00089     void slotActionRemove();
00090     void slotActionRemoveSticky();
00091     void slotActionLog();
00092     void slotActionDiff();
00093     void slotActionTag();
00094     void slotActionUnTag();
00095     void slotActionAddToIgnoreList();
00096     void slotActionRemoveFromIgnoreList();
00097 
00098     // Cvs operations (context menu)
00099     void slotCommit();
00100     void slotUpdate();
00101     void slotAdd();
00102     void slotAddBinary();
00103     void slotRemove();
00104     void slotRemoveSticky();
00105     void slotLog();
00106     void slotDiff();
00107     void slotTag();
00108     void slotUnTag();
00109     void slotAddToIgnoreList();
00110     void slotRemoveFromIgnoreList();
00111 
00112     void slotProjectOpened();
00113     void slotProjectClosed();
00114 
00115     void slotAddFilesToProject(const QStringList &);
00116     void slotRemovedFilesFromProject(const QStringList &);
00117 
00121     void projectConfigWidget( KDialogBase *dlg );
00122 
00124     void slotStopButtonClicked( KDevPlugin* );
00125 
00126 private:
00127     void init();
00128     void setupActions();
00130     bool urlFocusedDocument( KURL &url );
00131 
00133     KURL::List m_urls;
00134 
00138     QGuardedPtr<CvsForm> m_cvsConfigurationForm;
00139 
00140     // Actions
00141     KAction *actionCommit,
00142         *actionDiff,
00143         *actionLog,
00144         *actionAdd,
00145         *actionAddBinary,
00146         *actionRemove,
00147         *actionUpdate,
00148         *actionRemoveSticky,
00149         *actionAddToIgnoreList,
00150         *actionRemoveFromIgnoreList,
00151         *actionTag,
00152         *actionUnTag,
00153         *actionLogin,
00154         *actionLogout;
00155 
00156     CvsServicePartImpl *m_impl;
00157 };
00158 
00159 #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 Tue Feb 22 09:22:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003