Mercurial > hg > easyhg
annotate settingsdialog.h @ 202:3d4291d4226c
* Treat command failure on hg heads as a success, so that following actions happen properly (hg heads fails on empty repo)
* Hide no-modifications-yet label when widget is first created, show it only if it would actually be true
* Set directory name to window title
* Various textual fixes
author | Chris Cannam |
---|---|
date | Tue, 04 Jan 2011 14:31:22 +0000 |
parents | ff0d76dcb3b8 |
children | e67bd8abc3e3 |
rev | line source |
---|---|
Chris@175 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@175 | 2 |
Chris@175 | 3 /* |
Chris@175 | 4 EasyMercurial |
Chris@175 | 5 |
Chris@175 | 6 Based on HgExplorer by Jari Korhonen |
Chris@175 | 7 Copyright (c) 2010 Jari Korhonen |
Chris@175 | 8 Copyright (c) 2010 Chris Cannam |
Chris@175 | 9 Copyright (c) 2010 Queen Mary, University of London |
Chris@175 | 10 |
Chris@175 | 11 This program is free software; you can redistribute it and/or |
Chris@175 | 12 modify it under the terms of the GNU General Public License as |
Chris@175 | 13 published by the Free Software Foundation; either version 2 of the |
Chris@175 | 14 License, or (at your option) any later version. See the file |
Chris@175 | 15 COPYING included with this distribution for more information. |
Chris@175 | 16 */ |
Chris@175 | 17 |
Chris@175 | 18 #ifndef SETTINGS_DIALOG_H |
Chris@175 | 19 #define SETTINGS_DIALOG_H |
Chris@175 | 20 |
Chris@175 | 21 #include <QDialog> |
Chris@175 | 22 #include <QLineEdit> |
Chris@175 | 23 #include <QLabel> |
Chris@175 | 24 #include <QPushButton> |
Chris@176 | 25 #include <QCheckBox> |
Chris@175 | 26 |
Chris@175 | 27 class SettingsDialog : public QDialog |
Chris@175 | 28 { |
Chris@175 | 29 Q_OBJECT |
Chris@175 | 30 |
Chris@175 | 31 public: |
Chris@175 | 32 SettingsDialog(QWidget *parent = 0); |
Chris@175 | 33 |
Chris@175 | 34 private slots: |
Chris@175 | 35 void hgPathBrowse(); |
Chris@175 | 36 void diffPathBrowse(); |
Chris@175 | 37 void mergePathBrowse(); |
Chris@178 | 38 void editPathBrowse(); |
Chris@176 | 39 void extensionPathBrowse(); |
Chris@175 | 40 |
Chris@175 | 41 void accept(); |
Chris@175 | 42 |
Chris@175 | 43 private: |
Chris@175 | 44 QLineEdit *m_nameEdit; |
Chris@175 | 45 QLineEdit *m_emailEdit; |
Chris@195 | 46 QLineEdit *m_hgPathLabel; |
Chris@195 | 47 QLineEdit *m_diffPathLabel; |
Chris@195 | 48 QLineEdit *m_mergePathLabel; |
Chris@195 | 49 QLineEdit *m_editPathLabel; |
Chris@175 | 50 |
Chris@176 | 51 QCheckBox *m_useExtension; |
Chris@195 | 52 QLineEdit *m_extensionPathLabel; |
Chris@176 | 53 |
Chris@175 | 54 QPushButton *m_ok; |
Chris@181 | 55 |
Chris@195 | 56 void browseFor(QString, QLineEdit *); |
Chris@175 | 57 }; |
Chris@175 | 58 |
Chris@175 | 59 #endif |