Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
61e898ac
Commit
61e898ac
authored
Feb 22, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for deleting multiple documents
parent
2356656f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
230 additions
and
83 deletions
+230
-83
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+219
-79
UBDocumentController.h
src/document/UBDocumentController.h
+11
-4
No files found.
src/document/UBDocumentController.cpp
View file @
61e898ac
This diff is collapsed.
Click to expand it.
src/document/UBDocumentController.h
View file @
61e898ac
...
@@ -102,7 +102,7 @@ class UBDocumentController : public UBDocumentContainer
...
@@ -102,7 +102,7 @@ class UBDocumentController : public UBDocumentContainer
enum
LastSelectedElementType
enum
LastSelectedElementType
{
{
None
=
0
,
Folder
,
Document
,
Page
None
=
0
,
Folder
,
Document
,
Page
,
Multiple
};
};
LastSelectedElementType
mSelectionType
;
LastSelectedElementType
mSelectionType
;
...
@@ -121,13 +121,20 @@ class UBDocumentController : public UBDocumentContainer
...
@@ -121,13 +121,20 @@ class UBDocumentController : public UBDocumentContainer
UBDocumentToolsPalette
*
mToolsPalette
;
UBDocumentToolsPalette
*
mToolsPalette
;
bool
mToolsPalettePositionned
;
bool
mToolsPalettePositionned
;
UBDocumentGroupTreeItem
*
mTrashTi
;
UBDocumentGroupTreeItem
*
mTrashTi
;
QList
<
QTreeWidgetItem
*>
mCurrentSelection
;
QString
mDocumentTrashGroupName
;
QString
mDefaultDocumentGroupName
;
void
selectADocumentOnTrashingSelectedOne
(
UBDocumentGroupTreeItem
*
groupTi
,
UBDocumentProxyTreeItem
*
proxyTi
);
void
selectADocumentOnTrashingSelectedOne
(
UBDocumentGroupTreeItem
*
groupTi
,
UBDocumentProxyTreeItem
*
proxyTi
);
void
moveDocumentToTrash
(
UBDocumentGroupTreeItem
*
groupTi
,
UBDocumentProxyTreeItem
*
proxyTi
);
void
moveDocumentToTrash
(
UBDocumentGroupTreeItem
*
groupTi
,
UBDocumentProxyTreeItem
*
proxyTi
);
void
moveFolderToTrash
(
UBDocumentGroupTreeItem
*
groupTi
);
void
moveFolderToTrash
(
UBDocumentGroupTreeItem
*
groupTi
);
QString
mDocumentTrashGroupName
;
void
emptyTrash
(
bool
showConfirmationDialog
);
QString
mDefaultDocumentGroupName
;
void
deleteTreeItem
(
QTreeWidgetItem
*
item
,
bool
showConfirmationDialog
);
void
updateCurrentSelection
();
bool
multipleSelection
();
bool
isDocumentInTrash
(
UBDocumentProxyTreeItem
*
document
);
bool
isCurrentSelectionInTrash
();
private
slots
:
private
slots
:
void
documentZoomSliderValueChanged
(
int
value
);
void
documentZoomSliderValueChanged
(
int
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment