Mercurial > hg > easyhg
comparison settingsdialog.h @ 239:661f5808aa0a
* Overhaul settings-defaults mechanism, and add Restore Defaults button to settings dialog
author | Chris Cannam |
---|---|
date | Mon, 10 Jan 2011 15:18:21 +0000 |
parents | e67bd8abc3e3 |
children | 53ad43d5a463 |
comparison
equal
deleted
inserted
replaced
238:e2f2c6e3c01b | 239:661f5808aa0a |
---|---|
32 SettingsDialog(QWidget *parent = 0); | 32 SettingsDialog(QWidget *parent = 0); |
33 | 33 |
34 bool presentationChanged() { | 34 bool presentationChanged() { |
35 return m_presentationChanged; | 35 return m_presentationChanged; |
36 } | 36 } |
37 | |
38 static void findDefaultLocations(QString installPath = m_installPath); | |
37 | 39 |
38 private slots: | 40 private slots: |
39 void hgPathBrowse(); | 41 void hgPathBrowse(); |
40 void diffPathBrowse(); | 42 void diffPathBrowse(); |
41 void mergePathBrowse(); | 43 void mergePathBrowse(); |
42 void editPathBrowse(); | 44 void editPathBrowse(); |
43 void extensionPathBrowse(); | 45 void extensionPathBrowse(); |
44 | 46 |
45 void accept(); | 47 void accept(); |
48 void reset(); | |
49 void clear(); | |
50 void restoreDefaults(); | |
46 | 51 |
47 private: | 52 private: |
48 QLineEdit *m_nameEdit; | 53 QLineEdit *m_nameEdit; |
49 QLineEdit *m_emailEdit; | 54 QLineEdit *m_emailEdit; |
50 QLineEdit *m_hgPathLabel; | 55 QLineEdit *m_hgPathLabel; |
61 QPushButton *m_ok; | 66 QPushButton *m_ok; |
62 | 67 |
63 bool m_presentationChanged; | 68 bool m_presentationChanged; |
64 | 69 |
65 void browseFor(QString, QLineEdit *); | 70 void browseFor(QString, QLineEdit *); |
71 | |
72 static void findHgBinaryName(); | |
73 static void findExtension(); | |
74 static void findDiffBinaryName(); | |
75 static void findMergeBinaryName(); | |
76 static void findEditorBinaryName(); | |
77 | |
78 static QString m_installPath; | |
66 }; | 79 }; |
67 | 80 |
68 #endif | 81 #endif |