vcs/perforce/perforcepart.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
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
This file is part of the documentation for KDevelop Version 3.0.4.