2015-08-02 17:27:18 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file tapeconfigurationpage.h
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 02 08, 2015
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2013-2015 Valentina project
|
|
|
|
** <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/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CONFIGURATIONPAGE_H
|
|
|
|
#define CONFIGURATIONPAGE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2015-12-02 16:05:30 +01:00
|
|
|
#include <QPlainTextEdit>
|
2015-08-02 17:27:18 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QSpinBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLabel;
|
|
|
|
|
|
|
|
class TapeConfigurationPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-10-12 13:52:48 +02:00
|
|
|
explicit TapeConfigurationPage(QWidget *parent = nullptr);
|
2015-08-02 17:27:18 +02:00
|
|
|
void Apply();
|
|
|
|
public slots:
|
|
|
|
void LangChanged();
|
|
|
|
void SystemChanged();
|
2015-12-12 12:11:39 +01:00
|
|
|
void DefGradationChanged();
|
2015-08-02 17:27:18 +02:00
|
|
|
void UnitChanged();
|
|
|
|
void LabelLangChanged();
|
2015-08-08 16:33:37 +02:00
|
|
|
protected:
|
|
|
|
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
2015-08-02 17:27:18 +02:00
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(TapeConfigurationPage)
|
|
|
|
QComboBox *langCombo;
|
|
|
|
QComboBox *systemCombo;
|
|
|
|
QComboBox *labelCombo;
|
|
|
|
QComboBox *unitCombo;
|
|
|
|
QCheckBox *osOptionCheck;
|
|
|
|
bool langChanged;
|
|
|
|
bool systemChanged;
|
2015-12-12 12:11:39 +01:00
|
|
|
bool defGradationChanged;
|
2015-08-02 17:27:18 +02:00
|
|
|
bool unitChanged;
|
|
|
|
bool labelLangChanged;
|
|
|
|
QCheckBox *sendReportCheck;
|
|
|
|
QCheckBox *askPointDeletionCheck;
|
|
|
|
QCheckBox *toolBarStyleCheck;
|
|
|
|
QLabel *systemAuthorValueLabel;
|
2015-12-02 16:05:30 +01:00
|
|
|
QPlainTextEdit *systemBookValueLabel;
|
2015-08-02 17:27:18 +02:00
|
|
|
|
2015-08-08 16:33:37 +02:00
|
|
|
QGroupBox *langGroup;
|
|
|
|
QLabel *guiLabel;
|
2015-12-12 12:11:39 +01:00
|
|
|
QLabel *separatorLabel;
|
|
|
|
|
|
|
|
QGroupBox *pmSystemGroup;
|
2015-08-08 16:33:37 +02:00
|
|
|
QLabel *systemLabel;
|
|
|
|
QLabel *systemAuthorLabel;
|
|
|
|
QLabel *systemBookLabel;
|
2015-12-12 12:11:39 +01:00
|
|
|
|
|
|
|
QGroupBox *gradationGroup;
|
|
|
|
QLabel *defHeightLabel;
|
|
|
|
QLabel *defSizeLabel;
|
|
|
|
QComboBox *defHeightCombo;
|
|
|
|
QComboBox *defSizeCombo;
|
2015-08-08 16:33:37 +02:00
|
|
|
|
2015-08-02 17:27:18 +02:00
|
|
|
QGroupBox *LangGroup();
|
2015-12-12 12:11:39 +01:00
|
|
|
QGroupBox *PMSystemGroup();
|
|
|
|
QGroupBox *GradationGroup();
|
2015-08-02 17:27:18 +02:00
|
|
|
void SetLabelComboBox(const QStringList &list);
|
2015-08-08 16:33:37 +02:00
|
|
|
void RetranslateUi();
|
2015-08-02 17:27:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONFIGURATIONPAGE_H
|