comparison 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
comparison
equal deleted inserted replaced
29:fad897ed9894 30:45bfb8dc1faf
1 #ifndef SETTINGSDIALOG_H 1 #ifndef SETTINGSDIALOG_H
2 #define SETTINGSDIALOG_H 2 #define SETTINGSDIALOG_H
3 3
4 #include "mainwindow.h" 4 #include "mainwindow.h"
5 5
6 6 /****************************************************************************
7 //** Copyright (C) Jari Korhonen, 2010 (under lgpl) 7 ** Copyright (C) Jari Korhonen, 2010 (under lgpl)
8 ****************************************************************************/
8 9
9 #include <QDialog> 10 #include <QDialog>
10 #include <QLabel> 11 #include <QLabel>
11 #include <QLineEdit> 12 #include <QLineEdit>
13 #include <QComboBox>
12 #include <QPushButton> 14 #include <QPushButton>
13 15
14 class SettingsDialog : public QDialog 16 class SettingsDialog : public QDialog
15 { 17 {
16 Q_OBJECT 18 Q_OBJECT
27 private: 29 private:
28 QLabel *userInfoLabel; 30 QLabel *userInfoLabel;
29 QLineEdit *userInfoLineEdit; 31 QLineEdit *userInfoLineEdit;
30 32
31 QLabel *remoteRepoLabel; 33 QLabel *remoteRepoLabel;
32 QLineEdit *remoteRepoLineEdit; 34 QComboBox *remoteRepoCombo;
33 QPushButton *remoteRepoBrowseButton; 35 QPushButton *remoteRepoBrowseButton;
34 QHBoxLayout *remoteRepoLayout; 36 QHBoxLayout *remoteRepoLayout;
35 37
36 QLabel *workFolderLabel; 38 QLabel *workFolderLabel;
37 QLineEdit *workFolderLineEdit; 39 QComboBox *workFolderCombo;
38 QPushButton *workFolderBrowseButton; 40 QPushButton *workFolderBrowseButton;
39 QHBoxLayout *workFolderLayout; 41 QHBoxLayout *workFolderLayout;
40 42
41 QPushButton *okButton; 43 QPushButton *okButton;
42 QPushButton *cancelButton; 44 QPushButton *cancelButton;
43 45
44 MainWindow *mainWnd; 46 MainWindow *mainWnd;
45 47
46 void browseDirAndSetLineEdit(QLineEdit *lineEdit); 48 void browseDirAndSetCombo(QComboBox *combo);
49 void insertPathToMruList(QString newPath, QString mruList[]);
47 }; 50 };
48 51
49 52
50 #endif // SETTINGSDIALOG_H 53 #endif // SETTINGSDIALOG_H