|
|
@ -76,6 +76,8 @@ UBBoardPaletteManager::UBBoardPaletteManager(QWidget* container, UBBoardControll |
|
|
|
, mpPageNavigWidget(NULL) |
|
|
|
, mpPageNavigWidget(NULL) |
|
|
|
, mpLibWidget(NULL) |
|
|
|
, mpLibWidget(NULL) |
|
|
|
, mpCachePropWidget(NULL) |
|
|
|
, mpCachePropWidget(NULL) |
|
|
|
|
|
|
|
, mDesktopRightPalette(NULL) |
|
|
|
|
|
|
|
, mpDesktopLibWidget(NULL) |
|
|
|
{ |
|
|
|
{ |
|
|
|
setupPalettes(); |
|
|
|
setupPalettes(); |
|
|
|
connectPalettes(); |
|
|
|
connectPalettes(); |
|
|
@ -117,6 +119,17 @@ UBBoardPaletteManager::~UBBoardPaletteManager() |
|
|
|
delete mStylusPalette; |
|
|
|
delete mStylusPalette; |
|
|
|
mStylusPalette = NULL; |
|
|
|
mStylusPalette = NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(NULL != mpDesktopLibWidget) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
delete mpDesktopLibWidget; |
|
|
|
|
|
|
|
mpDesktopLibWidget = NULL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(NULL != mDesktopRightPalette) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
delete mDesktopRightPalette; |
|
|
|
|
|
|
|
mDesktopRightPalette = NULL; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBBoardPaletteManager::initPalettesPosAtStartup() |
|
|
|
void UBBoardPaletteManager::initPalettesPosAtStartup() |
|
|
@ -693,3 +706,14 @@ void UBBoardPaletteManager::changeStylusPaletteOrientation(QVariant var) |
|
|
|
connect(mStylusPalette, SIGNAL(stylusToolDoubleClicked(int)), UBApplication::boardController, SLOT(stylusToolDoubleClicked(int))); |
|
|
|
connect(mStylusPalette, SIGNAL(stylusToolDoubleClicked(int)), UBApplication::boardController, SLOT(stylusToolDoubleClicked(int))); |
|
|
|
mStylusPalette->setVisible(bVisible); // always show stylus palette at startup
|
|
|
|
mStylusPalette->setVisible(bVisible); // always show stylus palette at startup
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBRightPalette* UBBoardPaletteManager::createDesktopRightPalette(QWidget* parent) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mpDesktopLibWidget = new UBLibWidget(); |
|
|
|
|
|
|
|
mDesktopRightPalette = new UBRightPalette(parent); |
|
|
|
|
|
|
|
mDesktopRightPalette->registerWidget(mpDesktopLibWidget); |
|
|
|
|
|
|
|
mDesktopRightPalette->addTabWidget(mpDesktopLibWidget); |
|
|
|
|
|
|
|
mDesktopRightPalette->connectSignals(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return mDesktopRightPalette; |
|
|
|
|
|
|
|
} |
|
|
|