annotate settingsdialog.h @ 0:a9098eba2ee5

Initial commit.
author Jari Korhonen <jtkorhonen@gmail.com>
date Thu, 22 Apr 2010 03:15:35 +0300
parents
children e275d0b5d6ca
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@0 6 //** Copyright (C) Jari Korhonen, 2010 (under lgpl)
jtkorhonen@0 7
jtkorhonen@0 8 #include <QDialog>
jtkorhonen@0 9 #include <QLabel>
jtkorhonen@0 10 #include <QLineEdit>
jtkorhonen@0 11 #include <QPushButton>
jtkorhonen@0 12
jtkorhonen@0 13 class SettingsDialog : public QDialog
jtkorhonen@0 14 {
jtkorhonen@0 15 Q_OBJECT
jtkorhonen@0 16
jtkorhonen@0 17 public:
jtkorhonen@0 18 SettingsDialog(QWidget *parent = 0);
jtkorhonen@0 19
jtkorhonen@0 20 private slots:
jtkorhonen@0 21 void okClicked();
jtkorhonen@0 22 void cancelClicked();
jtkorhonen@0 23 void browseWorkFolder();
jtkorhonen@0 24 void browseRemoteRepo();
jtkorhonen@0 25
jtkorhonen@0 26 private:
jtkorhonen@0 27 QLabel *userInfoLabel;
jtkorhonen@0 28 QLineEdit *userInfoLineEdit;
jtkorhonen@0 29
jtkorhonen@0 30 QLabel *remoteRepoLabel;
jtkorhonen@0 31 QLineEdit *remoteRepoLineEdit;
jtkorhonen@0 32 QPushButton *remoteRepoBrowseButton;
jtkorhonen@0 33 QHBoxLayout *remoteRepoLayout;
jtkorhonen@0 34
jtkorhonen@0 35 QLabel *workFolderLabel;
jtkorhonen@0 36 QLineEdit *workFolderLineEdit;
jtkorhonen@0 37 QPushButton *workFolderBrowseButton;
jtkorhonen@0 38 QHBoxLayout *workFolderLayout;
jtkorhonen@0 39
jtkorhonen@0 40 QPushButton *okButton;
jtkorhonen@0 41 QPushButton *cancelButton;
jtkorhonen@0 42
jtkorhonen@0 43 MainWindow *mainWnd;
jtkorhonen@0 44
jtkorhonen@0 45 void browseDirAndSetLineEdit(QLineEdit *lineEdit);
jtkorhonen@0 46 };
jtkorhonen@0 47
jtkorhonen@0 48
jtkorhonen@0 49 #endif // SETTINGSDIALOG_H