File indexing completed on 2025-01-05 05:14:50
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "appdialog.h" 0010 #include "libkommitwidgets_export.h" 0011 #include "ui_switchbranchdialog.h" 0012 0013 namespace Git 0014 { 0015 class CommandSwitchBranch; 0016 } 0017 class LIBKOMMITWIDGETS_EXPORT SwitchBranchDialog : public AppDialog, private Ui::SwitchBranchDialog 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit SwitchBranchDialog(Git::Manager *git, QWidget *parent = nullptr); 0023 0024 Q_REQUIRED_RESULT Git::CommandSwitchBranch *command() const; 0025 0026 private slots: 0027 void slotButtonBoxAccepted(); 0028 0029 private: 0030 QStringList _existingLocalBranches; 0031 QStringList _existingRemoteBranches; 0032 };