|
|
|
@ -1,8 +1,16 @@ |
|
|
|
|
/*
|
|
|
|
|
* UBBoardPaletteManager.cpp |
|
|
|
|
* This program is free software: you can redistribute it and/or modify |
|
|
|
|
* it under the terms of the GNU General Public License as published by |
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
|
|
|
|
* (at your option) any later version. |
|
|
|
|
* |
|
|
|
|
* Created on: 3 nov. 2009 |
|
|
|
|
* Author: Luc |
|
|
|
|
* This program is distributed in the hope that it will be useful, |
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
* GNU General Public License for more details. |
|
|
|
|
* |
|
|
|
|
* You should have received a copy of the GNU General Public License |
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include "UBBoardPaletteManager.h" |
|
|
|
@ -155,7 +163,6 @@ void UBBoardPaletteManager::setupPalettes() |
|
|
|
|
addItemActions << UBApplication::mainWindow->actionAddItemToCurrentPage; |
|
|
|
|
addItemActions << UBApplication::mainWindow->actionAddItemToNewPage; |
|
|
|
|
addItemActions << UBApplication::mainWindow->actionAddItemToLibrary; |
|
|
|
|
addItemActions << UBApplication::mainWindow->actionShareItemOnWeb; |
|
|
|
|
|
|
|
|
|
mAddItemPalette = new UBActionPalette(addItemActions, Qt::Horizontal, 0); |
|
|
|
|
mAddItemPalette->setButtonIconSize(QSize(128, 128)); |
|
|
|
@ -309,7 +316,6 @@ void UBBoardPaletteManager::connectPalettes() |
|
|
|
|
connect(UBApplication::mainWindow->actionAddItemToCurrentPage, SIGNAL(triggered()), this, SLOT(addItemToCurrentPage())); |
|
|
|
|
connect(UBApplication::mainWindow->actionAddItemToNewPage, SIGNAL(triggered()), this, SLOT(addItemToNewPage())); |
|
|
|
|
connect(UBApplication::mainWindow->actionAddItemToLibrary, SIGNAL(triggered()), this, SLOT(addItemToLibrary())); |
|
|
|
|
connect(UBApplication::mainWindow->actionShareItemOnWeb, SIGNAL(triggered()), this, SLOT(shareItemOnWeb())); |
|
|
|
|
|
|
|
|
|
connect(UBApplication::mainWindow->actionEraseItems, SIGNAL(triggered()), mErasePalette, SLOT(close())); |
|
|
|
|
connect(UBApplication::mainWindow->actionEraseAnnotations, SIGNAL(triggered()), mErasePalette, SLOT(close())); |
|
|
|
|