blob: 383752e1f7fd787694ffd4502efcc95501e45137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (C) 2016 Brian McGillion
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/pathchooser.h>
#include <vcsbase/vcsbaseplugin.h>
#include <QDialog>
QT_BEGIN_NAMESPACE
class QCheckBox;
class QLineEdit;
class QRadioButton;
QT_END_NAMESPACE
namespace Mercurial::Internal {
class SrcDestDialog : public QDialog
{
public:
enum Direction { outgoing, incoming };
explicit SrcDestDialog(const VcsBase::VcsBasePluginState &state, Direction dir, QWidget *parent = nullptr);
~SrcDestDialog() override;
QString getRepositoryString() const;
Utils::FilePath workingDir() const;
private:
QUrl getRepoUrl() const;
Direction m_direction;
mutable QString m_workingdir;
VcsBase::VcsBasePluginState m_state;
QRadioButton *m_defaultButton;
QRadioButton *m_localButton;
Utils::PathChooser *m_localPathChooser;
QLineEdit *m_urlLineEdit;
QCheckBox *m_promptForCredentials;
};
} // Mercurial::Internal
|