|
|
@ -210,6 +210,7 @@ void UBTeacherGuideEditionWidget::onAddItemClicked(QTreeWidgetItem* widget, int |
|
|
|
newWidgetItem->setData(column,Qt::UserRole,eUBTGAddSubItemWidgetType_None); |
|
|
|
newWidgetItem->setData(column,Qt::UserRole,eUBTGAddSubItemWidgetType_None); |
|
|
|
newWidgetItem->setData(1,Qt::UserRole,eUBTGAddSubItemWidgetType_None); |
|
|
|
newWidgetItem->setData(1,Qt::UserRole,eUBTGAddSubItemWidgetType_None); |
|
|
|
newWidgetItem->setIcon(1,QIcon(":images/close.svg")); |
|
|
|
newWidgetItem->setIcon(1,QIcon(":images/close.svg")); |
|
|
|
|
|
|
|
|
|
|
|
switch(addSubItemWidgetType) |
|
|
|
switch(addSubItemWidgetType) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case eUBTGAddSubItemWidgetType_Action: |
|
|
|
case eUBTGAddSubItemWidgetType_Action: |
|
|
@ -288,6 +289,7 @@ UBTeacherGuidePresentationWidget::UBTeacherGuidePresentationWidget(QWidget *pare |
|
|
|
mpModePushButton = new QPushButton(this); |
|
|
|
mpModePushButton = new QPushButton(this); |
|
|
|
mpModePushButton->setIcon(QIcon(":images/pencil.svg")); |
|
|
|
mpModePushButton->setIcon(QIcon(":images/pencil.svg")); |
|
|
|
mpModePushButton->setMaximumWidth(32); |
|
|
|
mpModePushButton->setMaximumWidth(32); |
|
|
|
|
|
|
|
mpModePushButton->installEventFilter(this); |
|
|
|
|
|
|
|
|
|
|
|
connect(mpModePushButton,SIGNAL(clicked()),parentWidget(),SLOT(changeMode())); |
|
|
|
connect(mpModePushButton,SIGNAL(clicked()),parentWidget(),SLOT(changeMode())); |
|
|
|
|
|
|
|
|
|
|
@ -345,6 +347,14 @@ UBTeacherGuidePresentationWidget::~UBTeacherGuidePresentationWidget() |
|
|
|
DELETEPTR(mpLayout); |
|
|
|
DELETEPTR(mpLayout); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool UBTeacherGuidePresentationWidget::eventFilter(QObject* object, QEvent* event) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Q_UNUSED(object); |
|
|
|
|
|
|
|
if(event->type() == QEvent::HoverEnter || event->type() == QEvent::HoverMove || event->type() == QEvent::HoverLeave) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherGuidePresentationWidget::cleanData() |
|
|
|
void UBTeacherGuidePresentationWidget::cleanData() |
|
|
|
{ |
|
|
|
{ |
|
|
|
mpPageTitle->showText(""); |
|
|
|
mpPageTitle->showText(""); |
|
|
@ -512,6 +522,7 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons |
|
|
|
mpModePushButton = new QPushButton(this); |
|
|
|
mpModePushButton = new QPushButton(this); |
|
|
|
mpModePushButton->setIcon(QIcon(":images/pencil.svg")); |
|
|
|
mpModePushButton->setIcon(QIcon(":images/pencil.svg")); |
|
|
|
mpModePushButton->setMaximumWidth(32); |
|
|
|
mpModePushButton->setMaximumWidth(32); |
|
|
|
|
|
|
|
mpModePushButton->installEventFilter(this); |
|
|
|
mpButtonTitleLayout->addWidget(mpModePushButton); |
|
|
|
mpButtonTitleLayout->addWidget(mpModePushButton); |
|
|
|
connect(mpModePushButton,SIGNAL(clicked()),this,SLOT(switchToMode())); |
|
|
|
connect(mpModePushButton,SIGNAL(clicked()),this,SLOT(switchToMode())); |
|
|
|
|
|
|
|
|
|
|
@ -665,6 +676,14 @@ UBTeacherGuidePageZeroWidget::~UBTeacherGuidePageZeroWidget() |
|
|
|
DELETEPTR(mpLayout); |
|
|
|
DELETEPTR(mpLayout); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool UBTeacherGuidePageZeroWidget::eventFilter(QObject* object, QEvent* event) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Q_UNUSED(object); |
|
|
|
|
|
|
|
if(event->type() == QEvent::HoverEnter || event->type() == QEvent::HoverMove || event->type() == QEvent::HoverLeave) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherGuidePageZeroWidget::fillComboBoxes() |
|
|
|
void UBTeacherGuidePageZeroWidget::fillComboBoxes() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString parametersConfigFilePath = UBSettings::settings()->applicationCustomizationDirectory() + "/teacherGuide/indexingParameters.xml"; |
|
|
|
QString parametersConfigFilePath = UBSettings::settings()->applicationCustomizationDirectory() + "/teacherGuide/indexingParameters.xml"; |
|
|
|