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