| 1 | #ifndef GITREMOTEDIALOG_H |
| 2 | #define GITREMOTEDIALOG_H |
| 3 | |
| 4 | #include <QDialog> |
| 5 | |
| 6 | namespace Ui { |
| 7 | class GitRemoteDialog; |
| 8 | } |
| 9 | |
| 10 | class GitRemoteDialog : public QDialog |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | |
| 14 | public: |
| 15 | explicit GitRemoteDialog(const QString& folder, QWidget *parent = nullptr); |
| 16 | ~GitRemoteDialog(); |
| 17 | QString chooseRemote(); |
| 18 | |
| 19 | private slots: |
| 20 | void onUpdateIcons(); |
| 21 | void onRemotesSelectionChanged(); |
| 22 | void checkDetails(); |
| 23 | void refresh(); |
| 24 | void on_btnAdd_clicked(); |
| 25 | |
| 26 | void on_btnRemove_clicked(); |
| 27 | void on_btnProcess_clicked(); |
| 28 | |
| 29 | void on_txtName_textChanged(const QString &arg1); |
| 30 | |
| 31 | void on_txtURL_textChanged(const QString &arg1); |
| 32 | |
| 33 | |
| 34 | void on_btnClose_clicked(); |
| 35 | |
| 36 | private: |
| 37 | Ui::GitRemoteDialog *ui; |
| 38 | QString mFolder; |
| 39 | QStringList mRemotes; |
| 40 | bool mChooseMode; |
| 41 | }; |
| 42 | |
| 43 | #endif // GITREMOTEDIALOG_H |
| 44 | |