Files
QTeletextMaker/pageenhancementsdockwidget.h

60 lines
1.8 KiB
C
Raw Permalink Normal View History

2020-09-06 16:47:38 +01:00
/*
2021-12-31 21:40:36 +00:00
* Copyright (C) 2020-2022 Gavin MacGregor
2020-09-06 16:47:38 +01:00
*
* This file is part of QTeletextMaker.
*
* QTeletextMaker 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.
*
* QTeletextMaker 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 QTeletextMaker. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef PAGEENHANCEMENTSDOCKWIDGET_H
#define PAGEENHANCEMENTSDOCKWIDGET_H
2020-09-06 16:47:38 +01:00
#include <QCheckBox>
#include <QComboBox>
#include <QDockWidget>
#include <QLineEdit>
#include <QRegExpValidator>
2020-09-06 16:47:38 +01:00
#include <QSpinBox>
#include <QString>
2020-09-06 16:47:38 +01:00
#include "mainwidget.h"
class PageEnhancementsDockWidget : public QDockWidget
2020-09-06 16:47:38 +01:00
{
Q_OBJECT
public:
PageEnhancementsDockWidget(TeletextWidget *parent);
2020-09-06 16:47:38 +01:00
void updateWidgets();
private:
void setLeftSidePanelWidth(int);
void setRightSidePanelWidth(int);
void setComposeLinkPageNumber(int, const QString &);
void setComposeLinkSubPageNumbers(int, const QString &);
2020-09-06 16:47:38 +01:00
TeletextWidget *m_parentMainWidget;
QComboBox *m_defaultScreenColourCombo, *m_defaultRowColourCombo, *m_colourTableCombo;
QCheckBox *m_blackBackgroundSubstAct, *m_sidePanelStatusAct;
QSpinBox *m_leftSidePanelSpinBox, *m_rightSidePanelSpinBox;
QCheckBox *m_composeLinkLevelCheckbox[4][2]; // For links 0-3
QComboBox *m_composeLinkFunctionComboBox[4]; // For links 4-7; remember to subtract 4!
QLineEdit *m_composeLinkPageNumberLineEdit[8], *m_composeLinkSubPageNumbersLineEdit[8];
QRegExpValidator *m_pageNumberValidator;
2020-09-06 16:47:38 +01:00
};
#endif