diff settingsdialog.h @ 0:a9098eba2ee5

Initial commit.
author Jari Korhonen <jtkorhonen@gmail.com>
date Thu, 22 Apr 2010 03:15:35 +0300
parents
children e275d0b5d6ca
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/settingsdialog.h	Thu Apr 22 03:15:35 2010 +0300
@@ -0,0 +1,49 @@
+#ifndef SETTINGSDIALOG_H
+#define SETTINGSDIALOG_H
+
+#include "mainwindow.h"
+
+//** Copyright (C) Jari Korhonen, 2010 (under lgpl)
+
+#include <QDialog>
+#include <QLabel>
+#include <QLineEdit>
+#include <QPushButton>
+
+class SettingsDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    SettingsDialog(QWidget *parent = 0);
+
+private slots:
+    void okClicked();
+    void cancelClicked();
+    void browseWorkFolder();
+    void browseRemoteRepo();
+
+private:
+    QLabel      *userInfoLabel;
+    QLineEdit   *userInfoLineEdit;
+
+    QLabel      *remoteRepoLabel;
+    QLineEdit   *remoteRepoLineEdit;
+    QPushButton *remoteRepoBrowseButton;
+    QHBoxLayout *remoteRepoLayout;
+
+    QLabel      *workFolderLabel;
+    QLineEdit   *workFolderLineEdit;
+    QPushButton *workFolderBrowseButton;
+    QHBoxLayout *workFolderLayout;
+
+    QPushButton *okButton;
+    QPushButton *cancelButton;
+
+    MainWindow  *mainWnd;
+
+    void browseDirAndSetLineEdit(QLineEdit *lineEdit);
+};
+
+
+#endif // SETTINGSDIALOG_H