annotate settingsdialog.h @ 87:a7904378ac6a

* tiny mod
author Chris Cannam
date Mon, 22 Nov 2010 21:28:00 +0000
parents 2340b00561d2
children
rev   line source
Chris@57 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@57 2
Chris@57 3 /*
Chris@57 4 EasyMercurial
Chris@57 5
Chris@57 6 Based on HgExplorer by Jari Korhonen
Chris@57 7 Copyright (c) 2010 Jari Korhonen
Chris@57 8 Copyright (c) 2010 Chris Cannam
Chris@57 9 Copyright (c) 2010 Queen Mary, University of London
Chris@57 10
Chris@57 11 This program is free software; you can redistribute it and/or
Chris@57 12 modify it under the terms of the GNU General Public License as
Chris@57 13 published by the Free Software Foundation; either version 2 of the
Chris@57 14 License, or (at your option) any later version. See the file
Chris@57 15 COPYING included with this distribution for more information.
Chris@57 16 */
Chris@57 17
jtkorhonen@0 18 #ifndef SETTINGSDIALOG_H
jtkorhonen@0 19 #define SETTINGSDIALOG_H
jtkorhonen@0 20
jtkorhonen@0 21 #include "mainwindow.h"
jtkorhonen@0 22
jtkorhonen@0 23 #include <QDialog>
jtkorhonen@0 24 #include <QLabel>
jtkorhonen@0 25 #include <QLineEdit>
jtkorhonen@30 26 #include <QComboBox>
jtkorhonen@0 27 #include <QPushButton>
jtkorhonen@0 28
jtkorhonen@0 29 class SettingsDialog : public QDialog
jtkorhonen@0 30 {
jtkorhonen@0 31 Q_OBJECT
jtkorhonen@0 32
jtkorhonen@0 33 public:
jtkorhonen@0 34 SettingsDialog(QWidget *parent = 0);
jtkorhonen@0 35
jtkorhonen@0 36 private slots:
jtkorhonen@0 37 void okClicked();
jtkorhonen@0 38 void cancelClicked();
jtkorhonen@0 39 void browseWorkFolder();
jtkorhonen@0 40 void browseRemoteRepo();
jtkorhonen@0 41
jtkorhonen@0 42 private:
jtkorhonen@0 43 QLabel *userInfoLabel;
jtkorhonen@0 44 QLineEdit *userInfoLineEdit;
jtkorhonen@0 45
jtkorhonen@0 46 QLabel *remoteRepoLabel;
jtkorhonen@30 47 QComboBox *remoteRepoCombo;
jtkorhonen@0 48 QPushButton *remoteRepoBrowseButton;
jtkorhonen@0 49 QHBoxLayout *remoteRepoLayout;
jtkorhonen@0 50
jtkorhonen@0 51 QLabel *workFolderLabel;
jtkorhonen@30 52 QComboBox *workFolderCombo;
jtkorhonen@0 53 QPushButton *workFolderBrowseButton;
jtkorhonen@0 54 QHBoxLayout *workFolderLayout;
jtkorhonen@0 55
jtkorhonen@0 56 QPushButton *okButton;
jtkorhonen@0 57 QPushButton *cancelButton;
jtkorhonen@0 58
jtkorhonen@0 59 MainWindow *mainWnd;
jtkorhonen@0 60
jtkorhonen@30 61 void browseDirAndSetCombo(QComboBox *combo);
jtkorhonen@0 62 };
jtkorhonen@0 63
jtkorhonen@0 64
jtkorhonen@0 65 #endif // SETTINGSDIALOG_H