Mercurial > hg > easyhg
comparison settingsdialog.h @ 175:6def8bf3be44
* Start implementing Settings dialog; add Test function to run on startup to make sure hg works
author | Chris Cannam |
---|---|
date | Thu, 16 Dec 2010 17:32:25 +0000 |
parents | |
children | a6ec8d0bdd34 |
comparison
equal
deleted
inserted
replaced
174:4dc802a4d5ae | 175:6def8bf3be44 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 EasyMercurial | |
5 | |
6 Based on HgExplorer by Jari Korhonen | |
7 Copyright (c) 2010 Jari Korhonen | |
8 Copyright (c) 2010 Chris Cannam | |
9 Copyright (c) 2010 Queen Mary, University of London | |
10 | |
11 This program is free software; you can redistribute it and/or | |
12 modify it under the terms of the GNU General Public License as | |
13 published by the Free Software Foundation; either version 2 of the | |
14 License, or (at your option) any later version. See the file | |
15 COPYING included with this distribution for more information. | |
16 */ | |
17 | |
18 #ifndef SETTINGS_DIALOG_H | |
19 #define SETTINGS_DIALOG_H | |
20 | |
21 #include <QDialog> | |
22 #include <QLineEdit> | |
23 #include <QLabel> | |
24 #include <QPushButton> | |
25 | |
26 class SettingsDialog : public QDialog | |
27 { | |
28 Q_OBJECT | |
29 | |
30 public: | |
31 SettingsDialog(QWidget *parent = 0); | |
32 | |
33 private slots: | |
34 void realNameChanged(const QString &); | |
35 void emailChanged(const QString &); | |
36 void hgPathChanged(const QString &); | |
37 void hgPathBrowse(); | |
38 void diffPathChanged(const QString &); | |
39 void diffPathBrowse(); | |
40 void mergePathChanged(const QString &); | |
41 void mergePathBrowse(); | |
42 void editorPathChanged(const QString &); | |
43 void editorPathBrowse(); | |
44 | |
45 void accept(); | |
46 | |
47 private: | |
48 QLineEdit *m_nameEdit; | |
49 QLineEdit *m_emailEdit; | |
50 QLineEdit *m_hgPathEdit; | |
51 QLineEdit *m_diffPathEdit; | |
52 QLineEdit *m_mergePathEdit; | |
53 QLineEdit *m_editorPathEdit; | |
54 | |
55 QPushButton *m_ok; | |
56 }; | |
57 | |
58 #endif |