Mercurial > hg > easyhg
view settingsdialog.h @ 55:261bfb9481fe
* Make changeset item boxes wider if they have no neighbours.
Changeset item code is horrible -- items generally need
refactoring to take out hardcoded dimensions.
author | Chris Cannam |
---|---|
date | Fri, 12 Nov 2010 17:30:53 +0000 |
parents | 45bfb8dc1faf |
children | f583e44d9d31 |
line wrap: on
line source
#ifndef SETTINGSDIALOG_H #define SETTINGSDIALOG_H #include "mainwindow.h" /**************************************************************************** ** Copyright (C) Jari Korhonen, 2010 (under lgpl) ****************************************************************************/ #include <QDialog> #include <QLabel> #include <QLineEdit> #include <QComboBox> #include <QPushButton> class SettingsDialog : public QDialog { Q_OBJECT public: SettingsDialog(QWidget *parent = 0); private slots: void okClicked(); void cancelClicked(); void browseWorkFolder(); void browseRemoteRepo(); private: QLabel *userInfoLabel; QLineEdit *userInfoLineEdit; QLabel *remoteRepoLabel; QComboBox *remoteRepoCombo; QPushButton *remoteRepoBrowseButton; QHBoxLayout *remoteRepoLayout; QLabel *workFolderLabel; QComboBox *workFolderCombo; QPushButton *workFolderBrowseButton; QHBoxLayout *workFolderLayout; QPushButton *okButton; QPushButton *cancelButton; MainWindow *mainWnd; void browseDirAndSetCombo(QComboBox *combo); void insertPathToMruList(QString newPath, QString mruList[]); }; #endif // SETTINGSDIALOG_H