File indexing completed on 2024-05-05 05:43:42
0001 /* 0002 SPDX-FileCopyrightText: 2010 Sebastian Doerner <sebastian@sebastian-doerner.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PUSHDIALOG_H 0008 #define PUSHDIALOG_H 0009 0010 #include <QDialog> 0011 #include <QHash> 0012 class QCheckBox; 0013 class QComboBox; 0014 class QDialogButtonBox; 0015 0016 class PushDialog : public QDialog 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 explicit PushDialog(QWidget* parent = nullptr); 0022 QString destination() const; 0023 QString localBranch() const; 0024 QString remoteBranch() const; 0025 bool force() const; 0026 private Q_SLOTS: 0027 void remoteSelectionChanged(const QString& newRemote); 0028 void localBranchSelectionChanged(const QString& newLocalBranch); 0029 private: 0030 QHash<QString, QStringList> m_remoteBranches; 0031 0032 QComboBox * m_remoteComboBox; 0033 QComboBox * m_localBranchComboBox; 0034 QComboBox * m_remoteBranchComboBox; 0035 QCheckBox * m_forceCheckBox; 0036 QDialogButtonBox * m_buttonBox; 0037 }; 0038 0039 #endif // PUSHDIALOG_H