Chris@57: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@57: Chris@57: /* Chris@57: EasyMercurial Chris@57: Chris@57: Based on HgExplorer by Jari Korhonen Chris@57: Copyright (c) 2010 Jari Korhonen Chris@57: Copyright (c) 2010 Chris Cannam Chris@57: Copyright (c) 2010 Queen Mary, University of London Chris@57: Chris@57: This program is free software; you can redistribute it and/or Chris@57: modify it under the terms of the GNU General Public License as Chris@57: published by the Free Software Foundation; either version 2 of the Chris@57: License, or (at your option) any later version. See the file Chris@57: COPYING included with this distribution for more information. Chris@57: */ Chris@57: jtkorhonen@0: #ifndef SETTINGSDIALOG_H jtkorhonen@0: #define SETTINGSDIALOG_H jtkorhonen@0: jtkorhonen@0: #include "mainwindow.h" jtkorhonen@0: jtkorhonen@0: #include jtkorhonen@0: #include jtkorhonen@0: #include jtkorhonen@30: #include jtkorhonen@0: #include jtkorhonen@0: jtkorhonen@0: class SettingsDialog : public QDialog jtkorhonen@0: { jtkorhonen@0: Q_OBJECT jtkorhonen@0: jtkorhonen@0: public: jtkorhonen@0: SettingsDialog(QWidget *parent = 0); jtkorhonen@0: jtkorhonen@0: private slots: jtkorhonen@0: void okClicked(); jtkorhonen@0: void cancelClicked(); jtkorhonen@0: void browseWorkFolder(); jtkorhonen@0: void browseRemoteRepo(); jtkorhonen@0: jtkorhonen@0: private: jtkorhonen@0: QLabel *userInfoLabel; jtkorhonen@0: QLineEdit *userInfoLineEdit; jtkorhonen@0: jtkorhonen@0: QLabel *remoteRepoLabel; jtkorhonen@30: QComboBox *remoteRepoCombo; jtkorhonen@0: QPushButton *remoteRepoBrowseButton; jtkorhonen@0: QHBoxLayout *remoteRepoLayout; jtkorhonen@0: jtkorhonen@0: QLabel *workFolderLabel; jtkorhonen@30: QComboBox *workFolderCombo; jtkorhonen@0: QPushButton *workFolderBrowseButton; jtkorhonen@0: QHBoxLayout *workFolderLayout; jtkorhonen@0: jtkorhonen@0: QPushButton *okButton; jtkorhonen@0: QPushButton *cancelButton; jtkorhonen@0: jtkorhonen@0: MainWindow *mainWnd; jtkorhonen@0: jtkorhonen@30: void browseDirAndSetCombo(QComboBox *combo); jtkorhonen@30: void insertPathToMruList(QString newPath, QString mruList[]); jtkorhonen@0: }; jtkorhonen@0: jtkorhonen@0: jtkorhonen@0: #endif // SETTINGSDIALOG_H