kdevplatform/vcs
#include <vcsdiffpatchsources.h>

Public Slots | |
void | addMessageToHistory (const QString &message) |
void | jobFinished (KJob *) |
void | oldMessageChanged (const QString &) |
Signals | |
void | reviewCancelled (const QString &message) |
void | reviewFinished (const QString &message, const QList< QUrl > &selection) |
![]() | |
void | patchChanged () |
Public Member Functions | |
VCSCommitDiffPatchSource (VCSDiffUpdater *updater) | |
~VCSCommitDiffPatchSource () override | |
bool | canCancel () const override |
void | cancelReview () override |
bool | canSelectFiles () const override |
QWidget * | customWidget () const override |
bool | finishReview (const QList< QUrl > &selection) override |
QString | finishReviewCustomText () const override |
QList< KDevelop::VcsStatusInfo > | infos () const |
QStringList | oldMessages () const |
![]() | |
VCSDiffPatchSource (const KDevelop::VcsDiff &diff) | |
VCSDiffPatchSource (VCSDiffUpdater *updater) | |
~VCSDiffPatchSource () override | |
QMap< QUrl, KDevelop::VcsStatusInfo::State > | additionalSelectableFiles () const override |
QUrl | baseDir () const override |
uint | depth () const override |
QUrl | file () const override |
bool | isAlreadyApplied () const override |
QString | name () const override |
void | update () override |
![]() | |
virtual QIcon | icon () const |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Public Attributes | |
QPointer< KTextEdit > | m_commitMessageEdit |
QPointer< QWidget > | m_commitMessageWidget |
KComboBox * | m_oldMessages |
KDevelop::IBasicVersionControl * | m_vcs |
![]() | |
QUrl | m_base |
QUrl | m_file |
QList< KDevelop::VcsStatusInfo > | m_infos |
QString | m_name |
QMap< QUrl, KDevelop::VcsStatusInfo::State > | m_selectable |
VCSDiffUpdater * | m_updater |
Additional Inherited Members | |
![]() | |
using | Ptr = QPointer< IPatchSource > |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Detailed Description
Definition at line 98 of file vcsdiffpatchsources.h.
Constructor & Destructor Documentation
◆ VCSCommitDiffPatchSource()
|
explicit |
The ownership of the updater is taken.
Definition at line 47 of file vcsdiffpatchsources.cpp.
◆ ~VCSCommitDiffPatchSource()
|
override |
Definition at line 219 of file vcsdiffpatchsources.cpp.
Member Function Documentation
◆ addMessageToHistory
|
slot |
Definition at line 89 of file vcsdiffpatchsources.cpp.
◆ canCancel()
|
overridevirtual |
Should return whether the user may cancel this review (cancelReview will be called when he does) The default implementation returns false.
Reimplemented from KDevelop::IPatchSource.
Definition at line 239 of file vcsdiffpatchsources.cpp.
◆ cancelReview()
|
overridevirtual |
Called when the user has rejected this patch.
Reimplemented from KDevelop::IPatchSource.
Definition at line 243 of file vcsdiffpatchsources.cpp.
◆ canSelectFiles()
|
overridevirtual |
Should return whether the user should be able to select files of the patch The files available for selection will be all files affected by the patch, and the files return by additionalSelectableFiles() The default implementation returns false.
Reimplemented from KDevelop::IPatchSource.
Definition at line 223 of file vcsdiffpatchsources.cpp.
◆ customWidget()
|
overridevirtual |
Can return a custom widget that should be shown to the user with this patch The ownership of the widget is shared between the caller and the patch-source (both may delete it at will) The default implementation returns zero.
Reimplemented from KDevelop::IPatchSource.
Definition at line 231 of file vcsdiffpatchsources.cpp.
◆ finishReview()
Called when the user has reviewed and accepted this patch If canSelectFiles() returned true, selection
will contain the list of selected files If this returns false, the review is not finished.
Reimplemented from KDevelop::IPatchSource.
Definition at line 255 of file vcsdiffpatchsources.cpp.
◆ finishReviewCustomText()
|
overridevirtual |
May return a custom text for the "Finish Review" action.
The default implementation returns QString(), which means that the default is used
Reimplemented from KDevelop::IPatchSource.
Definition at line 235 of file vcsdiffpatchsources.cpp.
◆ infos()
|
inline |
Definition at line 118 of file vcsdiffpatchsources.h.
◆ jobFinished
|
slot |
Definition at line 115 of file vcsdiffpatchsources.cpp.
◆ oldMessageChanged
|
slot |
Definition at line 106 of file vcsdiffpatchsources.cpp.
◆ oldMessages()
QStringList VCSCommitDiffPatchSource::oldMessages | ( | ) | const |
Definition at line 83 of file vcsdiffpatchsources.cpp.
◆ reviewCancelled
|
signal |
◆ reviewFinished
|
signal |
Member Data Documentation
◆ m_commitMessageEdit
QPointer<KTextEdit> VCSCommitDiffPatchSource::m_commitMessageEdit |
Definition at line 124 of file vcsdiffpatchsources.h.
◆ m_commitMessageWidget
Definition at line 123 of file vcsdiffpatchsources.h.
◆ m_oldMessages
KComboBox* VCSCommitDiffPatchSource::m_oldMessages |
Definition at line 126 of file vcsdiffpatchsources.h.
◆ m_vcs
KDevelop::IBasicVersionControl* VCSCommitDiffPatchSource::m_vcs |
Definition at line 125 of file vcsdiffpatchsources.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 09:41:52 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.