Commit 61e898ac authored by Craig Watson's avatar Craig Watson

Added support for deleting multiple documents

parent 2356656f
This diff is collapsed.
......@@ -102,7 +102,7 @@ class UBDocumentController : public UBDocumentContainer
enum LastSelectedElementType
{
None = 0, Folder, Document, Page
None = 0, Folder, Document, Page, Multiple
};
LastSelectedElementType mSelectionType;
......@@ -121,13 +121,20 @@ class UBDocumentController : public UBDocumentContainer
UBDocumentToolsPalette *mToolsPalette;
bool mToolsPalettePositionned;
UBDocumentGroupTreeItem* mTrashTi;
QList<QTreeWidgetItem*> mCurrentSelection;
QString mDocumentTrashGroupName;
QString mDefaultDocumentGroupName;
void selectADocumentOnTrashingSelectedOne(UBDocumentGroupTreeItem* groupTi,UBDocumentProxyTreeItem *proxyTi);
void moveDocumentToTrash(UBDocumentGroupTreeItem* groupTi, UBDocumentProxyTreeItem *proxyTi);
void moveFolderToTrash(UBDocumentGroupTreeItem* groupTi);
QString mDocumentTrashGroupName;
QString mDefaultDocumentGroupName;
void emptyTrash(bool showConfirmationDialog);
void deleteTreeItem(QTreeWidgetItem * item, bool showConfirmationDialog);
void updateCurrentSelection();
bool multipleSelection();
bool isDocumentInTrash(UBDocumentProxyTreeItem * document);
bool isCurrentSelectionInTrash();
private slots:
void documentZoomSliderValueChanged (int value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment