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

kdevelop/kdevplatform/language/codegen

  • extragear
  • kdevelop
  • kdevelop
  • kdevplatform
  • language
  • codegen
applychangeswidget.h
Go to the documentation of this file.
1 /* Copyright 2008 Aleix Pol <[email protected]>
2  * Copyright 2009 Ramón Zarazúa <[email protected]>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301, USA.
18  */
19 
20 #ifndef KDEVPLATFORM_APPLYCHANGESWIDGET_H
21 #define KDEVPLATFORM_APPLYCHANGESWIDGET_H
22 
23 #include <QDialog>
24 #include <language/languageexport.h>
25 
26 namespace KTextEditor {
27 class Document;
28 }
29 
30 namespace KDevelop {
31 class IndexedString;
32 class ApplyChangesWidgetPrivate;
33 
34 class KDEVPLATFORMLANGUAGE_EXPORT ApplyChangesWidget
35  : public QDialog
36 {
37  Q_OBJECT
38 
39 public:
40  explicit ApplyChangesWidget(QWidget* parent = nullptr);
41  ~ApplyChangesWidget() override;
42 
43  void setInformation(const QString& info);
44 
45  bool hasDocuments() const;
46 
47  KTextEditor::Document* document() const;
48 
50  void addDocuments(const IndexedString& original);
51 
53  bool applyAllChanges();
54 
57  void updateDiffView(int index = -1);
58 
59 public Q_SLOTS:
61  void indexChanged(int);
62 
63 private:
64  const QScopedPointer<class ApplyChangesWidgetPrivate> d_ptr;
65  Q_DECLARE_PRIVATE(ApplyChangesWidget)
66 };
67 }
68 
69 #endif
QWidget
KDevelop::ApplyChangesWidget
Definition: applychangeswidget.h:34
QScopedPointer< class ApplyChangesWidgetPrivate >
QString
QDialog
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 12 2019 03:33:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/language/codegen

Skip menu "kdevelop/kdevplatform/language/codegen"
  • 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