Mercurial > hg > easyhg
annotate settingsdialog.h @ 30:45bfb8dc1faf
UpdateToRev has more power. Copyrights updated. Mrulist of repos added.
author | Jari Korhonen <jtkorhonen@gmail.com> |
---|---|
date | Mon, 14 Jun 2010 21:55:17 +0300 |
parents | e275d0b5d6ca |
children | f583e44d9d31 |
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@30 | 6 /**************************************************************************** |
jtkorhonen@30 | 7 ** Copyright (C) Jari Korhonen, 2010 (under lgpl) |
jtkorhonen@30 | 8 ****************************************************************************/ |
jtkorhonen@0 | 9 |
jtkorhonen@0 | 10 #include <QDialog> |
jtkorhonen@0 | 11 #include <QLabel> |
jtkorhonen@0 | 12 #include <QLineEdit> |
jtkorhonen@30 | 13 #include <QComboBox> |
jtkorhonen@0 | 14 #include <QPushButton> |
jtkorhonen@0 | 15 |
jtkorhonen@0 | 16 class SettingsDialog : public QDialog |
jtkorhonen@0 | 17 { |
jtkorhonen@0 | 18 Q_OBJECT |
jtkorhonen@0 | 19 |
jtkorhonen@0 | 20 public: |
jtkorhonen@0 | 21 SettingsDialog(QWidget *parent = 0); |
jtkorhonen@0 | 22 |
jtkorhonen@0 | 23 private slots: |
jtkorhonen@0 | 24 void okClicked(); |
jtkorhonen@0 | 25 void cancelClicked(); |
jtkorhonen@0 | 26 void browseWorkFolder(); |
jtkorhonen@0 | 27 void browseRemoteRepo(); |
jtkorhonen@0 | 28 |
jtkorhonen@0 | 29 private: |
jtkorhonen@0 | 30 QLabel *userInfoLabel; |
jtkorhonen@0 | 31 QLineEdit *userInfoLineEdit; |
jtkorhonen@0 | 32 |
jtkorhonen@0 | 33 QLabel *remoteRepoLabel; |
jtkorhonen@30 | 34 QComboBox *remoteRepoCombo; |
jtkorhonen@0 | 35 QPushButton *remoteRepoBrowseButton; |
jtkorhonen@0 | 36 QHBoxLayout *remoteRepoLayout; |
jtkorhonen@0 | 37 |
jtkorhonen@0 | 38 QLabel *workFolderLabel; |
jtkorhonen@30 | 39 QComboBox *workFolderCombo; |
jtkorhonen@0 | 40 QPushButton *workFolderBrowseButton; |
jtkorhonen@0 | 41 QHBoxLayout *workFolderLayout; |
jtkorhonen@0 | 42 |
jtkorhonen@0 | 43 QPushButton *okButton; |
jtkorhonen@0 | 44 QPushButton *cancelButton; |
jtkorhonen@0 | 45 |
jtkorhonen@0 | 46 MainWindow *mainWnd; |
jtkorhonen@0 | 47 |
jtkorhonen@30 | 48 void browseDirAndSetCombo(QComboBox *combo); |
jtkorhonen@30 | 49 void insertPathToMruList(QString newPath, QString mruList[]); |
jtkorhonen@0 | 50 }; |
jtkorhonen@0 | 51 |
jtkorhonen@0 | 52 |
jtkorhonen@0 | 53 #endif // SETTINGSDIALOG_H |