1 /**************************************************************************
5 Unix Remote Printing Operation
6 Copyright (c) Arto Hyvättinen 2010
8 This file is part of URPO.
10 URPO is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 URPO is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
21 **************************************************************************/
23 #ifndef SETTINGSDIALOG_H
24 #define SETTINGSDIALOG_H
27 #include <QTextBrowser>
30 class UrpoConnectionSettings;
32 /*! GUI dialog for Urpo Setting
34 @author Arto Hyvättinen
38 Dialog for settings. Remember to set setSettings() and setHelp().
39 Designed for modeless use (in modal can't show help
42 class SettingsDialog : public QDialog
46 explicit SettingsDialog(QWidget *parent = 0);
47 /*! Set UrpoConnection having connection settings */
48 void setSettings(UrpoConnectionSettings* settings);
49 /*! Set QTextBrowser showing help */
50 void setHelp(QTextBrowser* helpWidget);
55 void serverChanged(const QString& text);
60 QLineEdit* serverEdit;
62 QLineEdit* identityEdit;
63 QPushButton* browseButton;
64 QPushButton* okButton;
65 QPushButton* helpButton;
66 UrpoConnectionSettings* settings_;
67 QTextBrowser* helpWidget_;
71 #endif // SETTINGSDIALOG_H