diff 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
line wrap: on
line diff
--- a/settingsdialog.h	Sat May 29 18:45:46 2010 +0300
+++ b/settingsdialog.h	Mon Jun 14 21:55:17 2010 +0300
@@ -3,12 +3,14 @@
 
 #include "mainwindow.h"
 
-
-//** Copyright (C) Jari Korhonen, 2010 (under lgpl)
+/****************************************************************************
+** Copyright (C) Jari Korhonen, 2010 (under lgpl)
+****************************************************************************/
 
 #include <QDialog>
 #include <QLabel>
 #include <QLineEdit>
+#include <QComboBox>
 #include <QPushButton>
 
 class SettingsDialog : public QDialog
@@ -29,12 +31,12 @@
     QLineEdit   *userInfoLineEdit;
 
     QLabel      *remoteRepoLabel;
-    QLineEdit   *remoteRepoLineEdit;
+    QComboBox   *remoteRepoCombo;
     QPushButton *remoteRepoBrowseButton;
     QHBoxLayout *remoteRepoLayout;
 
     QLabel      *workFolderLabel;
-    QLineEdit   *workFolderLineEdit;
+    QComboBox   *workFolderCombo;
     QPushButton *workFolderBrowseButton;
     QHBoxLayout *workFolderLayout;
 
@@ -43,7 +45,8 @@
 
     MainWindow  *mainWnd;
 
-    void browseDirAndSetLineEdit(QLineEdit *lineEdit);
+    void browseDirAndSetCombo(QComboBox *combo);
+    void insertPathToMruList(QString newPath, QString mruList[]);
 };