jtkorhonen@0: #ifndef SETTINGSDIALOG_H jtkorhonen@0: #define SETTINGSDIALOG_H jtkorhonen@0: jtkorhonen@0: #include "mainwindow.h" jtkorhonen@0: jtkorhonen@0: //** Copyright (C) Jari Korhonen, 2010 (under lgpl) jtkorhonen@0: jtkorhonen@0: #include jtkorhonen@0: #include jtkorhonen@0: #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@0: QLineEdit *remoteRepoLineEdit; jtkorhonen@0: QPushButton *remoteRepoBrowseButton; jtkorhonen@0: QHBoxLayout *remoteRepoLayout; jtkorhonen@0: jtkorhonen@0: QLabel *workFolderLabel; jtkorhonen@0: QLineEdit *workFolderLineEdit; 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@0: void browseDirAndSetLineEdit(QLineEdit *lineEdit); jtkorhonen@0: }; jtkorhonen@0: jtkorhonen@0: jtkorhonen@0: #endif // SETTINGSDIALOG_H