|
|
|
@ -69,7 +69,6 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent) |
|
|
|
|
mTransparentDrawingView = new UBBoardView(UBApplication::boardController, 0); // deleted in UBDesktopAnnotationController::destructor
|
|
|
|
|
|
|
|
|
|
mTransparentDrawingView->setAttribute(Qt::WA_TranslucentBackground, true); |
|
|
|
|
// !!!! Should be included into Windows after QT recompilation
|
|
|
|
|
#ifdef Q_WS_MAC |
|
|
|
|
mTransparentDrawingView->setAttribute(Qt::WA_MacNoShadow, true); |
|
|
|
|
#endif |
|
|
|
@ -111,8 +110,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent) |
|
|
|
|
connect(mTransparentDrawingView, SIGNAL(resized(QResizeEvent*)), this, SLOT(onTransparentWidgetResized())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(UBDrawingController::drawingController(), SIGNAL(stylusToolChanged(int)) |
|
|
|
|
, this, SLOT(stylusToolChanged(int))); |
|
|
|
|
connect(UBDrawingController::drawingController(), SIGNAL(stylusToolChanged(int)), this, SLOT(stylusToolChanged(int))); |
|
|
|
|
|
|
|
|
|
// Add the desktop associated palettes
|
|
|
|
|
mDesktopPenPalette = new UBDesktopPenPalette(mTransparentDrawingView); |
|
|
|
@ -147,39 +145,11 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent) |
|
|
|
|
|
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
connect(mDesktopPalette, SIGNAL(moving()), this, SLOT(refreshMask())); |
|
|
|
|
// connect(mRightPalette, SIGNAL(resized()), this, SLOT(refreshMask()));
|
|
|
|
|
connect(UBApplication::boardController->paletteManager()->rightPalette(), SIGNAL(resized()), this, SLOT(refreshMask())); |
|
|
|
|
#endif |
|
|
|
|
onDesktopPaletteMaximized(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// void UBDesktopAnnotationController::showKeyboard(bool show)
|
|
|
|
|
// {
|
|
|
|
|
// #ifdef Q_WS_X11
|
|
|
|
|
// if (!mTransparentDrawingView->isVisible())
|
|
|
|
|
// return;
|
|
|
|
|
// #endif
|
|
|
|
|
//
|
|
|
|
|
// if(mKeyboardPalette)
|
|
|
|
|
// {
|
|
|
|
|
// if(show)
|
|
|
|
|
// UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector);
|
|
|
|
|
// mKeyboardPalette->setVisible(show);
|
|
|
|
|
//
|
|
|
|
|
// #ifdef Q_WS_X11
|
|
|
|
|
// updateMask(true);
|
|
|
|
|
// #endif
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// void UBDesktopAnnotationController::showKeyboard()
|
|
|
|
|
// {
|
|
|
|
|
// if (UBApplication::mainWindow->actionVirtualKeyboard->isChecked())
|
|
|
|
|
// mKeyboardPalette->show();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
UBDesktopAnnotationController::~UBDesktopAnnotationController() |
|
|
|
|
{ |
|
|
|
|
delete mTransparentDrawingScene; |
|
|
|
|