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

kdevelop/kdevplatform/vcs

  • extragear
  • kdevelop
  • kdevelop
  • kdevplatform
  • vcs
  • interfaces
ipatchsource.cpp
Go to the documentation of this file.
1 /*
2  Copyright 2006 David Nolden <[email protected]-master.de>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "ipatchsource.h"
20 
21 #include <QIcon>
22 
23 using namespace KDevelop;
24 
25 
26 QIcon IPatchSource::icon() const
27 {
28  return QIcon();
29 }
30 
31 IPatchReview::~IPatchReview()
32 {
33 
34 }
35 
36 void IPatchSource::cancelReview()
37 {
38 
39 }
40 
41 bool IPatchSource::finishReview(const QList<QUrl>& selection)
42 {
43  Q_UNUSED(selection);
44  return true;
45 }
46 
47 bool IPatchSource::canCancel() const
48 {
49  return false;
50 }
51 
52 QMap<QUrl, KDevelop::VcsStatusInfo::State> IPatchSource::additionalSelectableFiles() const
53 {
54  return QMap<QUrl, KDevelop::VcsStatusInfo::State>();
55 }
56 
57 bool IPatchSource::canSelectFiles() const
58 {
59  return false;
60 }
61 
62 QString IPatchSource::finishReviewCustomText() const
63 {
64  return QString();
65 }
66 
67 QWidget* IPatchSource::customWidget() const
68 {
69  return nullptr;
70 }
71 
72 uint IPatchSource::depth() const
73 {
74  return 0;
75 }
76 
77 
QWidget
KDevelop::IPatchSource::icon
virtual QIcon icon() const
Icon that will be shown with the patch.
Definition: ipatchsource.cpp:26
KDevelop::IPatchSource::canSelectFiles
virtual bool canSelectFiles() const
Should return whether the user should be able to select files of the patch The files available for se...
Definition: ipatchsource.cpp:57
KDevelop::IPatchSource::finishReview
virtual bool finishReview(const QList< QUrl > &selection)
Called when the user has reviewed and accepted this patch If canSelectFiles() returned true...
Definition: ipatchsource.cpp:41
QMap< QUrl, KDevelop::VcsStatusInfo::State >
KDevelop::IPatchSource::canCancel
virtual bool canCancel() const
Should return whether the user may cancel this review (cancelReview will be called when he does) The ...
Definition: ipatchsource.cpp:47
KDevelop::IPatchSource::customWidget
virtual QWidget * customWidget() const
Can return a custom widget that should be shown to the user with this patch The ownership of the widg...
Definition: ipatchsource.cpp:67
KDevelop::IPatchReview::~IPatchReview
virtual ~IPatchReview()
Definition: ipatchsource.cpp:31
QString
QList< QUrl >
ipatchsource.h
KDevelop::IPatchSource::finishReviewCustomText
virtual QString finishReviewCustomText() const
May return a custom text for the "Finish Review" action.
Definition: ipatchsource.cpp:62
KDevelop::IPatchSource::additionalSelectableFiles
virtual QMap< QUrl, KDevelop::VcsStatusInfo::State > additionalSelectableFiles() const
May return an additional list of selectable files together with short description strings for this pa...
Definition: ipatchsource.cpp:52
KDevelop::IPatchSource::depth
virtual uint depth() const
Depth - number of directories to left-strip from paths in the patch - see "patch -p" Defaults to 0...
Definition: ipatchsource.cpp:72
KDevelop::IPatchSource::cancelReview
virtual void cancelReview()
Called when the user has rejected this patch.
Definition: ipatchsource.cpp:36
QIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 14 2019 02:58:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/vcs

Skip menu "kdevelop/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