|
|
@ -59,6 +59,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "core/memcheck.h" |
|
|
|
#include "core/memcheck.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "document/UBDocumentController.h" |
|
|
|
|
|
|
|
|
|
|
|
UBBoardPaletteManager::UBBoardPaletteManager(QWidget* container, UBBoardController* pBoardController) |
|
|
|
UBBoardPaletteManager::UBBoardPaletteManager(QWidget* container, UBBoardController* pBoardController) |
|
|
|
: QObject(container) |
|
|
|
: QObject(container) |
|
|
|
, mKeyboardPalette(0) |
|
|
|
, mKeyboardPalette(0) |
|
|
@ -733,6 +735,27 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case eUBDockPaletteWidget_DOCUMENT: |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mLeftPalette->setVisible(leftPaletteVisible); |
|
|
|
|
|
|
|
mRightPalette->setVisible(rightPaletteVisible); |
|
|
|
|
|
|
|
mLeftPalette->assignParent(UBApplication::documentController->controlView()); |
|
|
|
|
|
|
|
mRightPalette->assignParent(UBApplication::documentController->controlView()); |
|
|
|
|
|
|
|
if (UBPlatformUtils::hasVirtualKeyboard() && mKeyboardPalette != NULL) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mKeyboardPalette->m_isVisible) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mKeyboardPalette->hide(); |
|
|
|
|
|
|
|
mKeyboardPalette->setParent(UBApplication::documentController->controlView()); |
|
|
|
|
|
|
|
mKeyboardPalette->show(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
mKeyboardPalette->setParent(UBApplication::documentController->controlView());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
{ |
|
|
|
{ |
|
|
|
mLeftPalette->setVisible(leftPaletteVisible); |
|
|
|
mLeftPalette->setVisible(leftPaletteVisible); |
|
|
|