• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/vcs

Public Slots | Signals | Public Member Functions | Public Attributes | List of all members
VCSCommitDiffPatchSource Class Reference

#include <vcsdiffpatchsources.h>

Inheritance diagram for VCSCommitDiffPatchSource:
Inheritance graph
[legend]

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)
 
- Signals inherited from KDevelop::IPatchSource
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
 
- Public Member Functions inherited from VCSDiffPatchSource
 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
 
- Public Member Functions inherited from KDevelop::IPatchSource
virtual QIcon icon () const
 
- Public Member Functions inherited from QObject
 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 &regExp) 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
 
- Public Attributes inherited from VCSDiffPatchSource
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

- Public Types inherited from KDevelop::IPatchSource
using Ptr = QPointer< IPatchSource >
 
- Static Public Member Functions inherited from QObject
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)
 
- Protected Member Functions inherited from QObject
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)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 98 of file vcsdiffpatchsources.h.

Constructor & Destructor Documentation

◆ VCSCommitDiffPatchSource()

VCSCommitDiffPatchSource::VCSCommitDiffPatchSource ( VCSDiffUpdater *  updater)
explicit

The ownership of the updater is taken.

Definition at line 47 of file vcsdiffpatchsources.cpp.

◆ ~VCSCommitDiffPatchSource()

VCSCommitDiffPatchSource::~VCSCommitDiffPatchSource ( )
override

Definition at line 219 of file vcsdiffpatchsources.cpp.

Member Function Documentation

◆ addMessageToHistory

void VCSCommitDiffPatchSource::addMessageToHistory ( const QString &  message)
slot

Definition at line 89 of file vcsdiffpatchsources.cpp.

◆ canCancel()

bool VCSCommitDiffPatchSource::canCancel ( ) const
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()

void VCSCommitDiffPatchSource::cancelReview ( )
overridevirtual

Called when the user has rejected this patch.

Reimplemented from KDevelop::IPatchSource.

Definition at line 243 of file vcsdiffpatchsources.cpp.

◆ canSelectFiles()

bool VCSCommitDiffPatchSource::canSelectFiles ( ) const
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()

QWidget * VCSCommitDiffPatchSource::customWidget ( ) const
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()

bool VCSCommitDiffPatchSource::finishReview ( const QList< QUrl > &  selection)
overridevirtual

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()

QString VCSCommitDiffPatchSource::finishReviewCustomText ( ) const
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()

QList<KDevelop::VcsStatusInfo> VCSCommitDiffPatchSource::infos ( ) const
inline

Definition at line 118 of file vcsdiffpatchsources.h.

◆ jobFinished

void VCSCommitDiffPatchSource::jobFinished ( KJob *  job)
slot

Definition at line 115 of file vcsdiffpatchsources.cpp.

◆ oldMessageChanged

void VCSCommitDiffPatchSource::oldMessageChanged ( const QString &  text)
slot

Definition at line 106 of file vcsdiffpatchsources.cpp.

◆ oldMessages()

QStringList VCSCommitDiffPatchSource::oldMessages ( ) const

Definition at line 83 of file vcsdiffpatchsources.cpp.

◆ reviewCancelled

void VCSCommitDiffPatchSource::reviewCancelled ( const QString &  message)
signal

◆ reviewFinished

void VCSCommitDiffPatchSource::reviewFinished ( const QString &  message,
const QList< QUrl > &  selection 
)
signal

Member Data Documentation

◆ m_commitMessageEdit

QPointer<KTextEdit> VCSCommitDiffPatchSource::m_commitMessageEdit

Definition at line 124 of file vcsdiffpatchsources.h.

◆ m_commitMessageWidget

QPointer<QWidget> VCSCommitDiffPatchSource::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:
  • vcsdiffpatchsources.h
  • vcsdiffpatchsources.cpp
This file is part of the KDE documentation.
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.

kdevplatform/vcs

Skip menu "kdevplatform/vcs"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal