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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • cloudsync
ConflictDialog.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2013 Utku Aydın <utkuaydin34@gmail.com>
9 //
10 
11 #ifndef CONFLICTDIALOG_H
12 #define CONFLICTDIALOG_H
13 
14 #include "MergeItem.h"
15 #include "marble_export.h"
16 
17 #include <QDialog>
18 #include <QDialogButtonBox>
19 
20 namespace Marble {
21 
22 class MARBLE_EXPORT ConflictDialog : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  enum Button {
28  Local = 1,
29  Cloud,
30  AllLocal,
31  AllCloud
32  };
33 
34  enum ResolveAction {
35  AskUser,
36  PreferLocal,
37  PreferCloud
38  };
39 
40  ConflictDialog( QWidget *parent = 0 );
41  void setMergeItem( MergeItem *item );
42 
43 public slots:
44  void open();
45  void stopAutoResolve();
46 
47 signals:
48  void resolveConflict( MergeItem *mergeItem );
49 
50 private slots:
51  void resolveConflict( QAbstractButton *button );
52 
53 private:
54  void prepareLayout();
55 
56  MergeItem *m_mergeItem;
57  QDialogButtonBox *m_box;
58  ConflictDialog::ResolveAction m_resolveAction;
59 };
60 
61 }
62 
63 #endif // CONFLICTDIALOG_H
QAbstractButton
Marble::ConflictDialog
Definition: ConflictDialog.h:22
Marble::ConflictDialog::ResolveAction
ResolveAction
Definition: ConflictDialog.h:34
QDialog
Marble::ConflictDialog::PreferLocal
Definition: ConflictDialog.h:36
Marble::ConflictDialog::Cloud
Definition: ConflictDialog.h:29
QWidget
Button
Definition: cloud-sync/Button.qml:11
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::ConflictDialog::AskUser
Definition: ConflictDialog.h:35
Marble::MergeItem
Definition: MergeItem.h:23
marble_export.h
MergeItem.h
Marble::ConflictDialog::AllLocal
Definition: ConflictDialog.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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