2014-02-14 12:29:04 +01:00
|
|
|
/************************************************************************
|
|
|
|
**
|
2014-06-21 09:59:43 +02:00
|
|
|
** @file communitypage.h
|
2014-04-30 07:38:52 +02:00
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
2014-06-21 09:59:43 +02:00
|
|
|
** @date 21 6, 2014
|
2014-02-14 12:29:04 +01:00
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
2015-02-27 11:27:48 +01:00
|
|
|
** Copyright (C) 2013-2015 Valentina project
|
2014-02-14 12:29:04 +01:00
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
|
|
|
**
|
|
|
|
** Valentina 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 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** Valentina 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 Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
2014-06-21 09:59:43 +02:00
|
|
|
#ifndef COMMUNITYPAGE_H
|
|
|
|
#define COMMUNITYPAGE_H
|
2014-02-14 12:29:04 +01:00
|
|
|
|
2014-06-08 20:10:57 +02:00
|
|
|
#include <QObject>
|
2014-06-17 11:50:11 +02:00
|
|
|
#include <QWidget>
|
|
|
|
#include <QFormLayout>
|
2014-06-08 20:10:57 +02:00
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLineEdit;
|
2016-01-06 06:40:34 +01:00
|
|
|
class QLabel;
|
2014-02-14 12:29:04 +01:00
|
|
|
|
2014-06-15 21:30:26 +02:00
|
|
|
class CommunityPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-10-12 13:52:48 +02:00
|
|
|
explicit CommunityPage(QWidget *parent = nullptr);
|
2014-06-15 21:30:26 +02:00
|
|
|
void Apply();
|
2016-01-06 06:40:34 +01:00
|
|
|
protected:
|
|
|
|
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
2014-06-15 21:30:26 +02:00
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(CommunityPage)
|
|
|
|
// server name and https connection
|
2016-01-06 06:40:34 +01:00
|
|
|
QGroupBox *serverGroup;
|
2014-06-15 21:30:26 +02:00
|
|
|
QLineEdit *server;
|
|
|
|
QCheckBox *secureComm;
|
2016-01-06 06:40:34 +01:00
|
|
|
QLabel *serverNameLabel;
|
|
|
|
QLabel *secureConnectionLabel;
|
2014-06-15 21:30:26 +02:00
|
|
|
|
|
|
|
// proxy stuff
|
2016-01-06 06:40:34 +01:00
|
|
|
QGroupBox *proxyGroup;
|
2014-06-15 21:30:26 +02:00
|
|
|
QCheckBox *useProxy;
|
|
|
|
QLineEdit *proxyAddress;
|
|
|
|
QLineEdit *proxyPort;
|
|
|
|
QLineEdit *proxyUser;
|
|
|
|
QLineEdit *proxyPass;
|
|
|
|
|
2016-01-06 06:40:34 +01:00
|
|
|
QLabel *useProxyLabel;
|
|
|
|
QLabel *proxyAddressLabel;
|
|
|
|
QLabel *proxyPortLabel;
|
|
|
|
QLabel *proxyUserLabel;
|
|
|
|
QLabel *proxyPassLabel;
|
|
|
|
|
2014-06-15 21:30:26 +02:00
|
|
|
// username and password
|
2016-01-06 06:40:34 +01:00
|
|
|
QGroupBox *userGroup;
|
2014-06-15 21:30:26 +02:00
|
|
|
QLineEdit *username;
|
|
|
|
QCheckBox *savePassword;
|
|
|
|
QLineEdit *userpassword;
|
|
|
|
|
2016-01-06 06:40:34 +01:00
|
|
|
QLabel *usernameLabel;
|
|
|
|
QLabel *savePasswordLabel;
|
|
|
|
QLabel *userpasswordLabel;
|
|
|
|
|
|
|
|
static void add_checkbox(QCheckBox** thebox, QFormLayout *layout, bool checked, QLabel* label);
|
|
|
|
static void add_lineedit(QLineEdit** theline, QFormLayout *layout, QString value, QLabel *label);
|
2014-06-15 21:30:26 +02:00
|
|
|
|
|
|
|
void ProxyCheckChanged();
|
|
|
|
void PasswordCheckChanged();
|
|
|
|
|
|
|
|
QGroupBox *ServerGroup();
|
|
|
|
QGroupBox *ProxyGroup();
|
|
|
|
QGroupBox *UserGroup();
|
2016-01-06 06:40:34 +01:00
|
|
|
|
|
|
|
void RetranslateUi();
|
2014-06-15 21:30:26 +02:00
|
|
|
};
|
|
|
|
|
2014-06-21 09:59:43 +02:00
|
|
|
#endif // COMMUNITYPAGE_H
|