|
|
@ -20,7 +20,7 @@ |
|
|
|
#include <QTreeWidget> |
|
|
|
#include <QTreeWidget> |
|
|
|
#include <QPushButton> |
|
|
|
#include <QPushButton> |
|
|
|
#include <QDomDocument> |
|
|
|
#include <QDomDocument> |
|
|
|
|
|
|
|
#include <QScrollArea> |
|
|
|
|
|
|
|
|
|
|
|
#include "UBTeacherGuideWidget.h" |
|
|
|
#include "UBTeacherGuideWidget.h" |
|
|
|
|
|
|
|
|
|
|
@ -632,8 +632,11 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons |
|
|
|
QWidget(parent) |
|
|
|
QWidget(parent) |
|
|
|
, mpLayout(NULL) |
|
|
|
, mpLayout(NULL) |
|
|
|
, mpButtonTitleLayout(NULL) |
|
|
|
, mpButtonTitleLayout(NULL) |
|
|
|
|
|
|
|
, mpContainerWidgetLayout(NULL) |
|
|
|
, mpModePushButton(NULL) |
|
|
|
, mpModePushButton(NULL) |
|
|
|
, mpPageNumberLabel(NULL) |
|
|
|
, mpPageNumberLabel(NULL) |
|
|
|
|
|
|
|
, mpScrollArea(NULL) |
|
|
|
|
|
|
|
, mpContainerWidget(NULL) |
|
|
|
, mpSessionTitle(NULL) |
|
|
|
, mpSessionTitle(NULL) |
|
|
|
, mpSeparatorSessionTitle(NULL) |
|
|
|
, mpSeparatorSessionTitle(NULL) |
|
|
|
, mpAuthorsLabel(NULL) |
|
|
|
, mpAuthorsLabel(NULL) |
|
|
@ -673,6 +676,16 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons |
|
|
|
mpPageNumberLabel->setText(tr("Title page")); |
|
|
|
mpPageNumberLabel->setText(tr("Title page")); |
|
|
|
mpLayout->addWidget(mpPageNumberLabel); |
|
|
|
mpLayout->addWidget(mpPageNumberLabel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpScrollArea = new QScrollArea(); |
|
|
|
|
|
|
|
mpContainerWidget = new QWidget(); |
|
|
|
|
|
|
|
mpContainerWidgetLayout = new QVBoxLayout(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpLayout->addWidget(mpScrollArea); |
|
|
|
|
|
|
|
mpScrollArea->setWidget(mpContainerWidget); |
|
|
|
|
|
|
|
mpScrollArea->setWidgetResizable(true); |
|
|
|
|
|
|
|
mpScrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
|
|
|
|
|
|
|
mpContainerWidget->setLayout(mpContainerWidgetLayout); |
|
|
|
|
|
|
|
|
|
|
|
mpButtonTitleLayout = new QHBoxLayout(0); |
|
|
|
mpButtonTitleLayout = new QHBoxLayout(0); |
|
|
|
|
|
|
|
|
|
|
|
mpModePushButton = new QPushButton(this); |
|
|
|
mpModePushButton = new QPushButton(this); |
|
|
@ -684,132 +697,139 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons |
|
|
|
|
|
|
|
|
|
|
|
mpSessionTitle = new UBTGAdaptableText(0, this, "UBTGSessionTitle"); |
|
|
|
mpSessionTitle = new UBTGAdaptableText(0, this, "UBTGSessionTitle"); |
|
|
|
mpSessionTitle->setPlaceHolderText(tr("Type session title here ...")); |
|
|
|
mpSessionTitle->setPlaceHolderText(tr("Type session title here ...")); |
|
|
|
|
|
|
|
mpSessionTitle->setMaximumLength(1000); |
|
|
|
mpButtonTitleLayout->addWidget(mpSessionTitle); |
|
|
|
mpButtonTitleLayout->addWidget(mpSessionTitle); |
|
|
|
connect(this, SIGNAL(resized()), mpSessionTitle, SLOT(onTextChanged())); |
|
|
|
connect(this, SIGNAL(resized()), mpSessionTitle, SLOT(onTextChanged())); |
|
|
|
|
|
|
|
|
|
|
|
mpLayout->addLayout(mpButtonTitleLayout); |
|
|
|
mpContainerWidgetLayout->addLayout(mpButtonTitleLayout); |
|
|
|
|
|
|
|
|
|
|
|
mpSeparatorSessionTitle = new QFrame(this); |
|
|
|
mpSeparatorSessionTitle = new QFrame(this); |
|
|
|
mpSeparatorSessionTitle->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorSessionTitle->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorSessionTitle->setObjectName("UBTGSeparator"); |
|
|
|
mpSeparatorSessionTitle->setObjectName("UBTGSeparator"); |
|
|
|
mpLayout->addWidget(mpSeparatorSessionTitle); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSeparatorSessionTitle); |
|
|
|
|
|
|
|
|
|
|
|
mpAuthorsLabel = new QLabel(this); |
|
|
|
mpAuthorsLabel = new QLabel(this); |
|
|
|
mpAuthorsLabel->setObjectName("UBTGZeroPageEditionModeTitle"); |
|
|
|
mpAuthorsLabel->setObjectName("UBTGZeroPageEditionModeTitle"); |
|
|
|
mpAuthorsLabel->setText(tr("Author(s)")); |
|
|
|
mpAuthorsLabel->setText(tr("Author(s)")); |
|
|
|
mpAuthorsLabel->setStyleSheet(chapterStyle); |
|
|
|
mpAuthorsLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpAuthorsLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpAuthorsLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpAuthors = new UBTGAdaptableText(0, this); |
|
|
|
mpAuthors = new UBTGAdaptableText(0, this); |
|
|
|
mpAuthors->setObjectName("UBTGZeroPageInputText"); |
|
|
|
mpAuthors->setObjectName("UBTGZeroPageInputText"); |
|
|
|
mpAuthors->setPlaceHolderText(tr("Type authors here ...")); |
|
|
|
mpAuthors->setPlaceHolderText(tr("Type authors here ...")); |
|
|
|
mpLayout->addWidget(mpAuthors); |
|
|
|
mpContainerWidgetLayout->addWidget(mpAuthors); |
|
|
|
connect(this, SIGNAL(resized()), mpAuthors, SLOT(onTextChanged())); |
|
|
|
connect(this, SIGNAL(resized()), mpAuthors, SLOT(onTextChanged())); |
|
|
|
|
|
|
|
|
|
|
|
mpCreationLabel = new QLabel(this); |
|
|
|
mpCreationLabel = new QLabel(this); |
|
|
|
mpCreationLabel->setObjectName("UBTGZeroPageDateLabel"); |
|
|
|
mpCreationLabel->setObjectName("UBTGZeroPageDateLabel"); |
|
|
|
mpLayout->addWidget(mpCreationLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpCreationLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpLastModifiedLabel = new QLabel(this); |
|
|
|
mpLastModifiedLabel = new QLabel(this); |
|
|
|
mpLastModifiedLabel->setObjectName("UBTGZeroPageDateLabel"); |
|
|
|
mpLastModifiedLabel->setObjectName("UBTGZeroPageDateLabel"); |
|
|
|
mpLayout->addWidget(mpLastModifiedLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpLastModifiedLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpSeparatorAuthors = new QFrame(this); |
|
|
|
mpSeparatorAuthors = new QFrame(this); |
|
|
|
mpSeparatorAuthors->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorAuthors->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorAuthors->setObjectName("UBTGSeparator"); |
|
|
|
mpSeparatorAuthors->setObjectName("UBTGSeparator"); |
|
|
|
mpLayout->addWidget(mpSeparatorAuthors); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSeparatorAuthors); |
|
|
|
|
|
|
|
|
|
|
|
mpObjectivesLabel = new QLabel(this); |
|
|
|
mpObjectivesLabel = new QLabel(this); |
|
|
|
mpObjectivesLabel->setObjectName("UBTGZeroPageEditionModeTitle"); |
|
|
|
mpObjectivesLabel->setObjectName("UBTGZeroPageEditionModeTitle"); |
|
|
|
mpObjectivesLabel->setText(tr("Objective(s)")); |
|
|
|
mpObjectivesLabel->setText(tr("Objective(s)")); |
|
|
|
mpObjectivesLabel->setStyleSheet(chapterStyle); |
|
|
|
mpObjectivesLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpObjectivesLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpObjectivesLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpObjectives = new UBTGAdaptableText(0, this); |
|
|
|
mpObjectives = new UBTGAdaptableText(0, this); |
|
|
|
mpObjectives->setObjectName("UBTGZeroPageInputText"); |
|
|
|
mpObjectives->setObjectName("UBTGZeroPageInputText"); |
|
|
|
mpObjectives->setPlaceHolderText(tr("Type objectives here...")); |
|
|
|
mpObjectives->setPlaceHolderText(tr("Type objectives here...")); |
|
|
|
mpLayout->addWidget(mpObjectives); |
|
|
|
mpContainerWidgetLayout->addWidget(mpObjectives); |
|
|
|
connect(this, SIGNAL(resized()), mpObjectives, SLOT(onTextChanged())); |
|
|
|
connect(this, SIGNAL(resized()), mpObjectives, SLOT(onTextChanged())); |
|
|
|
|
|
|
|
|
|
|
|
mpSeparatorObjectives = new QFrame(this); |
|
|
|
mpSeparatorObjectives = new QFrame(this); |
|
|
|
mpSeparatorObjectives->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorObjectives->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorObjectives->setObjectName("UBTGSeparator"); |
|
|
|
mpSeparatorObjectives->setObjectName("UBTGSeparator"); |
|
|
|
mpLayout->addWidget(mpSeparatorObjectives); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSeparatorObjectives); |
|
|
|
|
|
|
|
|
|
|
|
mpIndexLabel = new QLabel(this); |
|
|
|
mpIndexLabel = new QLabel(this); |
|
|
|
mpIndexLabel->setObjectName("UBTGZeroPageEditionModeTitle"); |
|
|
|
mpIndexLabel->setObjectName("UBTGZeroPageEditionModeTitle"); |
|
|
|
mpIndexLabel->setText(tr("Resource indexing")); |
|
|
|
mpIndexLabel->setText(tr("Resource indexing")); |
|
|
|
mpIndexLabel->setStyleSheet(chapterStyle); |
|
|
|
mpIndexLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpIndexLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpIndexLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpKeywordsLabel = new QLabel(this); |
|
|
|
mpKeywordsLabel = new QLabel(this); |
|
|
|
mpKeywordsLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpKeywordsLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpKeywordsLabel->setText(tr("Keywords:")); |
|
|
|
mpKeywordsLabel->setText(tr("Keywords:")); |
|
|
|
mpKeywordsLabel->setStyleSheet(chapterStyle); |
|
|
|
mpKeywordsLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpKeywordsLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpKeywordsLabel); |
|
|
|
mpKeywords = new UBTGAdaptableText(0, this); |
|
|
|
mpKeywords = new UBTGAdaptableText(0, this); |
|
|
|
mpKeywords->setPlaceHolderText(tr("Type keywords here ...")); |
|
|
|
mpKeywords->setPlaceHolderText(tr("Type keywords here ...")); |
|
|
|
mpLayout->addWidget(mpKeywords); |
|
|
|
mpContainerWidgetLayout->addWidget(mpKeywords); |
|
|
|
connect(this, SIGNAL(resized()), mpKeywords, SLOT(onTextChanged())); |
|
|
|
connect(this, SIGNAL(resized()), mpKeywords, SLOT(onTextChanged())); |
|
|
|
|
|
|
|
|
|
|
|
mpSchoolLevelItemLabel = new QLabel(this); |
|
|
|
mpSchoolLevelItemLabel = new QLabel(this); |
|
|
|
mpSchoolLevelItemLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpSchoolLevelItemLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpSchoolLevelItemLabel->setText(tr("Level:")); |
|
|
|
mpSchoolLevelItemLabel->setText(tr("Level:")); |
|
|
|
mpSchoolLevelItemLabel->setStyleSheet(chapterStyle); |
|
|
|
mpSchoolLevelItemLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpSchoolLevelItemLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolLevelItemLabel); |
|
|
|
mpSchoolLevelBox = new QComboBox(this); |
|
|
|
mpSchoolLevelBox = new QComboBox(this); |
|
|
|
mpSchoolLevelBox->setMinimumHeight(22); |
|
|
|
mpSchoolLevelBox->setMinimumHeight(22); |
|
|
|
|
|
|
|
mpSchoolLevelBox->setMinimumWidth(LOWER_RESIZE_WIDTH); |
|
|
|
mpSchoolLevelBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpSchoolLevelBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
connect(mpSchoolLevelBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(onSchoolLevelChanged(QString))); |
|
|
|
connect(mpSchoolLevelBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(onSchoolLevelChanged(QString))); |
|
|
|
mpLayout->addWidget(mpSchoolLevelBox); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolLevelBox); |
|
|
|
mpSchoolLevelValueLabel = new QLabel(this); |
|
|
|
mpSchoolLevelValueLabel = new QLabel(this); |
|
|
|
mpLayout->addWidget(mpSchoolLevelValueLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolLevelValueLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpSchoolSubjectsItemLabel = new QLabel(this); |
|
|
|
mpSchoolSubjectsItemLabel = new QLabel(this); |
|
|
|
mpSchoolSubjectsItemLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpSchoolSubjectsItemLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpSchoolSubjectsItemLabel->setText(tr("Subjects:")); |
|
|
|
mpSchoolSubjectsItemLabel->setText(tr("Subjects:")); |
|
|
|
mpSchoolSubjectsItemLabel->setStyleSheet(chapterStyle); |
|
|
|
mpSchoolSubjectsItemLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpSchoolSubjectsItemLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolSubjectsItemLabel); |
|
|
|
mpSchoolSubjectsBox = new QComboBox(this); |
|
|
|
mpSchoolSubjectsBox = new QComboBox(this); |
|
|
|
mpSchoolSubjectsBox->setMinimumHeight(22); |
|
|
|
mpSchoolSubjectsBox->setMinimumHeight(22); |
|
|
|
|
|
|
|
mpSchoolSubjectsBox->setMinimumWidth(LOWER_RESIZE_WIDTH); |
|
|
|
mpSchoolSubjectsBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpSchoolSubjectsBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpLayout->addWidget(mpSchoolSubjectsBox); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolSubjectsBox); |
|
|
|
mpSchoolSubjectsValueLabel = new QLabel(this); |
|
|
|
mpSchoolSubjectsValueLabel = new QLabel(this); |
|
|
|
mpLayout->addWidget(mpSchoolSubjectsValueLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolSubjectsValueLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpSchoolTypeItemLabel = new QLabel(this); |
|
|
|
mpSchoolTypeItemLabel = new QLabel(this); |
|
|
|
mpSchoolTypeItemLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpSchoolTypeItemLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpSchoolTypeItemLabel->setText(tr("Type:")); |
|
|
|
mpSchoolTypeItemLabel->setText(tr("Type:")); |
|
|
|
mpSchoolTypeItemLabel->setStyleSheet(chapterStyle); |
|
|
|
mpSchoolTypeItemLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpSchoolTypeItemLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolTypeItemLabel); |
|
|
|
mpSchoolTypeBox = new QComboBox(this); |
|
|
|
mpSchoolTypeBox = new QComboBox(this); |
|
|
|
mpSchoolTypeBox->setMinimumHeight(22); |
|
|
|
mpSchoolTypeBox->setMinimumHeight(22); |
|
|
|
|
|
|
|
mpSchoolTypeBox->setMinimumWidth(LOWER_RESIZE_WIDTH); |
|
|
|
mpSchoolTypeBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpSchoolTypeBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpLayout->addWidget(mpSchoolTypeBox); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolTypeBox); |
|
|
|
mpSchoolTypeValueLabel = new QLabel(this); |
|
|
|
mpSchoolTypeValueLabel = new QLabel(this); |
|
|
|
mpLayout->addWidget(mpSchoolTypeValueLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSchoolTypeValueLabel); |
|
|
|
|
|
|
|
|
|
|
|
mpSeparatorIndex = new QFrame(this); |
|
|
|
mpSeparatorIndex = new QFrame(this); |
|
|
|
mpSeparatorIndex->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorIndex->setFixedHeight(UBTG_SEPARATOR_FIXED_HEIGHT); |
|
|
|
mpSeparatorIndex->setObjectName("UBTGSeparator"); |
|
|
|
mpSeparatorIndex->setObjectName("UBTGSeparator"); |
|
|
|
mpLayout->addWidget(mpSeparatorIndex); |
|
|
|
mpContainerWidgetLayout->addWidget(mpSeparatorIndex); |
|
|
|
|
|
|
|
|
|
|
|
mpLicenceLabel = new QLabel(this); |
|
|
|
mpLicenceLabel = new QLabel(this); |
|
|
|
mpLicenceLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpLicenceLabel->setObjectName("UBTGZeroPageItemLabel"); |
|
|
|
mpLicenceLabel->setText(tr("Licence")); |
|
|
|
mpLicenceLabel->setText(tr("Licence")); |
|
|
|
mpLicenceLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLicenceLabel->setStyleSheet(chapterStyle); |
|
|
|
mpLayout->addWidget(mpLicenceLabel); |
|
|
|
mpContainerWidgetLayout->addWidget(mpLicenceLabel); |
|
|
|
mpLicenceBox = new QComboBox(this); |
|
|
|
mpLicenceBox = new QComboBox(this); |
|
|
|
mpLicenceBox->setMinimumHeight(22); |
|
|
|
mpLicenceBox->setMinimumHeight(22); |
|
|
|
|
|
|
|
mpLicenceBox->setMinimumWidth(LOWER_RESIZE_WIDTH); |
|
|
|
mpLicenceBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpLicenceBox->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
mpLayout->addWidget(mpLicenceBox); |
|
|
|
mpContainerWidgetLayout->addWidget(mpLicenceBox); |
|
|
|
mpLicenceLayout = new QHBoxLayout(0); |
|
|
|
mpLicenceLayout = new QHBoxLayout(0); |
|
|
|
mpLicenceIcon = new QLabel(this); |
|
|
|
mpLicenceIcon = new QLabel(this); |
|
|
|
|
|
|
|
mpLicenceIcon->setMinimumWidth(LOWER_RESIZE_WIDTH/2); |
|
|
|
mpLicenceLayout->addWidget(mpLicenceIcon); |
|
|
|
mpLicenceLayout->addWidget(mpLicenceIcon); |
|
|
|
mpLicenceValueLabel = new QLabel(this); |
|
|
|
mpLicenceValueLabel = new QLabel(this); |
|
|
|
|
|
|
|
mpLicenceValueLabel->setMinimumWidth(LOWER_RESIZE_WIDTH/2); |
|
|
|
mpLicenceLayout->addWidget(mpLicenceValueLabel); |
|
|
|
mpLicenceLayout->addWidget(mpLicenceValueLabel); |
|
|
|
mpLayout->addLayout(mpLicenceLayout); |
|
|
|
mpContainerWidgetLayout->addLayout(mpLicenceLayout); |
|
|
|
mpLayout->addStretch(1); |
|
|
|
mpContainerWidgetLayout->addStretch(1); |
|
|
|
|
|
|
|
|
|
|
|
connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(onActiveSceneChanged())); |
|
|
|
connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(onActiveSceneChanged())); |
|
|
|
fillComboBoxes(); |
|
|
|
fillComboBoxes(); |
|
|
@ -845,6 +865,9 @@ UBTeacherGuidePageZeroWidget::~UBTeacherGuidePageZeroWidget() |
|
|
|
DELETEPTR(mpModePushButton); |
|
|
|
DELETEPTR(mpModePushButton); |
|
|
|
DELETEPTR(mpLicenceLayout); |
|
|
|
DELETEPTR(mpLicenceLayout); |
|
|
|
DELETEPTR(mpButtonTitleLayout); |
|
|
|
DELETEPTR(mpButtonTitleLayout); |
|
|
|
|
|
|
|
DELETEPTR(mpContainerWidgetLayout); |
|
|
|
|
|
|
|
DELETEPTR(mpContainerWidget); |
|
|
|
|
|
|
|
DELETEPTR(mpScrollArea); |
|
|
|
DELETEPTR(mpLayout); |
|
|
|
DELETEPTR(mpLayout); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -895,9 +918,9 @@ void UBTeacherGuidePageZeroWidget::fillComboBoxes() |
|
|
|
parametersFile.close(); |
|
|
|
parametersFile.close(); |
|
|
|
|
|
|
|
|
|
|
|
QStringList licences; |
|
|
|
QStringList licences; |
|
|
|
licences << tr("Attribution CC BY") |
|
|
|
licences << tr("Attribution-ShareAlike CC BY-SA") |
|
|
|
|
|
|
|
<< tr("Attribution CC BY") |
|
|
|
<< tr("Attribution-NoDerivs CC BY-ND") |
|
|
|
<< tr("Attribution-NoDerivs CC BY-ND") |
|
|
|
<< tr("Attribution-ShareAlike CC BY-SA") |
|
|
|
|
|
|
|
<< tr("Attribution-NonCommercial CC BY-NC") |
|
|
|
<< tr("Attribution-NonCommercial CC BY-NC") |
|
|
|
<< tr("Attribution-NonCommercial-NoDerivs CC BY-NC-ND") |
|
|
|
<< tr("Attribution-NonCommercial-NoDerivs CC BY-NC-ND") |
|
|
|
<< tr("Attribution-NonCommercial-ShareAlike CC BY-NC-SA") |
|
|
|
<< tr("Attribution-NonCommercial-ShareAlike CC BY-NC-SA") |
|
|
@ -905,9 +928,9 @@ void UBTeacherGuidePageZeroWidget::fillComboBoxes() |
|
|
|
<< tr("Copyright"); |
|
|
|
<< tr("Copyright"); |
|
|
|
mpLicenceBox->addItems(licences); |
|
|
|
mpLicenceBox->addItems(licences); |
|
|
|
QStringList licenceIconList; |
|
|
|
QStringList licenceIconList; |
|
|
|
licenceIconList << ":images/licenses/ccby.png" |
|
|
|
licenceIconList << ":images/licenses/ccbysa.png" |
|
|
|
|
|
|
|
<< ":images/licenses/ccby.png" |
|
|
|
<< ":images/licenses/ccbynd.png" |
|
|
|
<< ":images/licenses/ccbynd.png" |
|
|
|
<< ":images/licenses/ccbysa.png" |
|
|
|
|
|
|
|
<< ":images/licenses/ccbync.png" |
|
|
|
<< ":images/licenses/ccbync.png" |
|
|
|
<< ":images/licenses/ccbyncnd.png" |
|
|
|
<< ":images/licenses/ccbyncnd.png" |
|
|
|
<< ":images/licenses/ccbyncsa.png"; |
|
|
|
<< ":images/licenses/ccbyncsa.png"; |
|
|
@ -923,7 +946,8 @@ void UBTeacherGuidePageZeroWidget::onSchoolLevelChanged(QString schoolLevel) |
|
|
|
mpSchoolSubjectsItemLabel->setEnabled(true); |
|
|
|
mpSchoolSubjectsItemLabel->setEnabled(true); |
|
|
|
mpSchoolSubjectsBox->setEnabled(true); |
|
|
|
mpSchoolSubjectsBox->setEnabled(true); |
|
|
|
mpSchoolSubjectsBox->addItems(subjects); |
|
|
|
mpSchoolSubjectsBox->addItems(subjects); |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
mpSchoolSubjectsItemLabel->setDisabled(true); |
|
|
|
mpSchoolSubjectsItemLabel->setDisabled(true); |
|
|
|
mpSchoolSubjectsBox->setDisabled(true); |
|
|
|
mpSchoolSubjectsBox->setDisabled(true); |
|
|
|
} |
|
|
|
} |
|
|
@ -1126,9 +1150,9 @@ bool UBTeacherGuidePageZeroWidget::isModified() |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherGuidePageZeroWidget::resizeEvent(QResizeEvent* ev){ |
|
|
|
void UBTeacherGuidePageZeroWidget::resizeEvent(QResizeEvent* ev) |
|
|
|
|
|
|
|
{ |
|
|
|
emit resized(); |
|
|
|
emit resized(); |
|
|
|
|
|
|
|
|
|
|
|
QWidget::resizeEvent(ev); |
|
|
|
QWidget::resizeEvent(ev); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|