File indexing completed on 2024-05-12 04:38:55
0001 /* 0002 SPDX-FileCopyrightText: 2007 Dukju Ahn <dukjuahn@gmail.com> 0003 SPDX-FileCopyrightText: 2011 Andrey Batyiev <batyiev@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KDEVPLATFORM_VCS_COMMITDIALOG_H 0009 #define KDEVPLATFORM_VCS_COMMITDIALOG_H 0010 0011 #include <QDialog> 0012 0013 #include <vcs/vcsexport.h> 0014 0015 namespace KDevelop 0016 { 0017 0018 class VcsStatusInfo; 0019 class IPatchSource; 0020 class VcsCommitDialogPrivate; 0021 0022 class KDEVPLATFORMVCS_EXPORT VcsCommitDialog : public QDialog 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit VcsCommitDialog( IPatchSource *patchSource, QWidget *parent = nullptr ); 0027 ~VcsCommitDialog() override; 0028 ///Sets the commit candidates 0029 void setCommitCandidates( const QList<KDevelop::VcsStatusInfo>& statuses ); 0030 void setRecursive( bool ); 0031 bool recursive() const; 0032 0033 private Q_SLOTS: 0034 void ok(); 0035 void cancel(); 0036 0037 private: 0038 const QScopedPointer<class VcsCommitDialogPrivate> d_ptr; 0039 Q_DECLARE_PRIVATE(VcsCommitDialog) 0040 }; 0041 0042 } 0043 0044 #endif