1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
/**************************************************************************
* Copyright (C) 2005-2014 by Oleksandr Shneyder *
* o.shneyder@phoca-gmbh.de *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef CONFIGDIALOG_H
#define CONFIGDIALOG_H
#include "x2goclientconfig.h"
#include <QDialog>
class QLineEdit;
class QCheckBox;
class QSpinBox;
class QPushButton;
class QRadioButton;
class QButtonGroup;
class PrintWidget;
class ConnectionWidget;
class SettingsWidget;
class QTabWidget;
class QGroupBox;
#if defined (Q_OS_WIN) && defined (CFGCLIENT )
class XSettingsWidget;
#endif
/**
@author Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
*/
class ConfigDialog : public QDialog
{
Q_OBJECT
public:
ConfigDialog ( QWidget * parent,
Qt::WFlags f = 0 );
~ConfigDialog();
#ifdef Q_OS_DARWIN
static QString findXDarwin ( QString& version,
QString path="" );
static QString retMaxXDarwinVersion ( QString v1,
QString v2 );
static QString getXDarwinDirectory();
void printXDarwinVersionWarning ( QString version );
#endif
#ifdef Q_OS_WIN
static QString getCygwinDir ( const QString& dir );
#endif
private:
QTabWidget* tabWidg;
QCheckBox* cbStartEmbed;
QLineEdit* ldapBase;
QLineEdit* ldapServer;
QSpinBox* port;
QLineEdit* ldapServer1;
QSpinBox* port1;
PrintWidget* pwid;
QLineEdit* ldapServer2;
bool embedMode;
QSpinBox* port2;
QSpinBox* clientSshPort;
QPushButton* ok;
bool advOptionsShown;
QGroupBox* gbLDAP;
QPushButton* defaults;
QPushButton* advancedOptions;
QLineEdit* leXexec;
QLineEdit* leCmdOpt;
QSpinBox* sbDisp;
QLineEdit* leXexecDir;
QRadioButton* rbX[3];
QPushButton* pbOpenExec;
QButtonGroup* bgRadio;
ConnectionWidget* conWidg;
SettingsWidget* setWidg;
#if defined ( Q_OS_WIN) && defined (CFGCLIENT )
XSettingsWidget* xsetWidg;
#endif
QGroupBox *gbTrayIcon;
QCheckBox *cbMinimizeTray;
QCheckBox *cbMaxmizeTray;
QCheckBox *cbNoClose;
QCheckBox *cbMinToTray;
public slots:
void slot_accepted();
void slot_checkOkStat();
private slots:
#ifdef Q_OS_DARWIN
void slot_selectXDarwin();
void slot_findXDarwin();
#endif
private slots:
void slotAdvClicked();
void slotDefaults();
};
#endif
|