Mercurial > hg > easyhg
comparison settingsdialog.h @ 0:a9098eba2ee5
Initial commit.
author | Jari Korhonen <jtkorhonen@gmail.com> |
---|---|
date | Thu, 22 Apr 2010 03:15:35 +0300 |
parents | |
children | e275d0b5d6ca |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a9098eba2ee5 |
---|---|
1 #ifndef SETTINGSDIALOG_H | |
2 #define SETTINGSDIALOG_H | |
3 | |
4 #include "mainwindow.h" | |
5 | |
6 //** Copyright (C) Jari Korhonen, 2010 (under lgpl) | |
7 | |
8 #include <QDialog> | |
9 #include <QLabel> | |
10 #include <QLineEdit> | |
11 #include <QPushButton> | |
12 | |
13 class SettingsDialog : public QDialog | |
14 { | |
15 Q_OBJECT | |
16 | |
17 public: | |
18 SettingsDialog(QWidget *parent = 0); | |
19 | |
20 private slots: | |
21 void okClicked(); | |
22 void cancelClicked(); | |
23 void browseWorkFolder(); | |
24 void browseRemoteRepo(); | |
25 | |
26 private: | |
27 QLabel *userInfoLabel; | |
28 QLineEdit *userInfoLineEdit; | |
29 | |
30 QLabel *remoteRepoLabel; | |
31 QLineEdit *remoteRepoLineEdit; | |
32 QPushButton *remoteRepoBrowseButton; | |
33 QHBoxLayout *remoteRepoLayout; | |
34 | |
35 QLabel *workFolderLabel; | |
36 QLineEdit *workFolderLineEdit; | |
37 QPushButton *workFolderBrowseButton; | |
38 QHBoxLayout *workFolderLayout; | |
39 | |
40 QPushButton *okButton; | |
41 QPushButton *cancelButton; | |
42 | |
43 MainWindow *mainWnd; | |
44 | |
45 void browseDirAndSetLineEdit(QLineEdit *lineEdit); | |
46 }; | |
47 | |
48 | |
49 #endif // SETTINGSDIALOG_H |