blob: e7d42069367276288c47d87d2fea2f84ba036d91 (
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
46
|
// Copyright (c) 2018 Artur Shepilko
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/filepath.h>
#include <QDialog>
QT_BEGIN_NAMESPACE
class QCheckBox;
class QLineEdit;
class QRadioButton;
QT_END_NAMESPACE
namespace Utils { class PathChooser; }
namespace Fossil::Internal {
enum class FossilCommand { Pull, Push };
class PullOrPushDialog : public QDialog
{
public:
explicit PullOrPushDialog(FossilCommand command, QWidget *parent = nullptr);
// Common parameters and options
QString remoteLocation() const;
bool isRememberOptionEnabled() const;
bool isPrivateOptionEnabled() const;
void setDefaultRemoteLocation(const QString &url);
void setLocalBaseDirectory(const Utils::FilePath &dir);
// Pull-specific options
// Push-specific options
private:
QRadioButton *m_defaultButton;
QRadioButton *m_localButton;
Utils::PathChooser *m_localPathChooser;
QRadioButton *m_urlButton;
QLineEdit *m_urlLineEdit;
QCheckBox *m_rememberCheckBox;
QCheckBox *m_privateCheckBox;
};
} // Fossil::Internal
|