|
|
@ -150,22 +150,13 @@ void UBBoardPaletteManager::setupDockPaletteWidgets() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mLeftPalette->connectSignals(); |
|
|
|
mLeftPalette->connectSignals(); |
|
|
|
|
|
|
|
mLeftPalette->showTabWidget(0); |
|
|
|
|
|
|
|
|
|
|
|
mRightPalette = new UBRightPalette(mContainer); |
|
|
|
mRightPalette = new UBRightPalette(mContainer); |
|
|
|
// RIGHT palette widgets
|
|
|
|
// RIGHT palette widgets
|
|
|
|
#ifndef USE_WEB_WIDGET |
|
|
|
|
|
|
|
mpFeaturesWidget = new UBFeaturesWidget(); |
|
|
|
mpFeaturesWidget = new UBFeaturesWidget(); |
|
|
|
mRightPalette->registerWidget(mpFeaturesWidget); |
|
|
|
mRightPalette->registerWidget(mpFeaturesWidget); |
|
|
|
mRightPalette->addTab(mpFeaturesWidget); |
|
|
|
mRightPalette->addTab(mpFeaturesWidget); |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Do not show deprecated lib widget to prevent collisions. Uncomment to return lib widget
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_WEB_WIDGET |
|
|
|
|
|
|
|
mRightPalette->registerWidget(mpLibWidget); |
|
|
|
|
|
|
|
mRightPalette->addTab(mpLibWidget); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The cache widget will be visible only if a cache is put on the page
|
|
|
|
// The cache widget will be visible only if a cache is put on the page
|
|
|
|
mRightPalette->registerWidget(mpCachePropWidget); |
|
|
|
mRightPalette->registerWidget(mpCachePropWidget); |
|
|
@ -890,14 +881,9 @@ void UBBoardPaletteManager::addItemToLibrary() |
|
|
|
} |
|
|
|
} |
|
|
|
QImage image = mPixmap.toImage(); |
|
|
|
QImage image = mPixmap.toImage(); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_WEB_WIDGET |
|
|
|
|
|
|
|
mpLibWidget->libNavigator()->libraryWidget()->libraryController()->importImageOnLibrary(image); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
QDateTime now = QDateTime::currentDateTime(); |
|
|
|
QDateTime now = QDateTime::currentDateTime(); |
|
|
|
QString capturedName = tr("CapturedImage") + "-" + now.toString("dd-MM-yyyy hh-mm-ss") + ".png"; |
|
|
|
QString capturedName = tr("CapturedImage") + "-" + now.toString("dd-MM-yyyy hh-mm-ss") + ".png"; |
|
|
|
mpFeaturesWidget->importImage(image, capturedName); |
|
|
|
mpFeaturesWidget->importImage(image, capturedName); |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|