Tracker: Commands.h (and tracker_private.h) updates

* Add kDeleteSelection command alias in Commands.h, keep kDelete.
* Add kMoveSelectionToTrash and use it in place of kMoveToTrash.
  - kMoveToTrash in kept in tracker_private.h for use outside.
* Create a new constant kRestoreSelectionFromTrash for Tracker.
  - Move kRestoreFromTrash to tracker_private.h

Change-Id: I3cdefe97e8359fb53bacfc3319b046b051c6f7db
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8225
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
This commit is contained in:
John Scipione
2024-10-17 16:21:51 +00:00
committed by waddlesplash
parent 8f97570f6a
commit 406f30c616
2 changed files with 5 additions and 1 deletions
@@ -67,6 +67,8 @@ const uint32 kFSClipboardChanges = 'TCch';
const uint32 kMoveToTrash = 'Ttrs';
// Used by ShowImage to delete images
const uint32 kRestoreFromTrash = 'Tres';
// In case ShowImage ever wants to undo
const uint32 kSelect = 'Tsel';
// Used by Open Target Folder tracker add-on to select files
+3 -1
View File
@@ -48,7 +48,8 @@ namespace BPrivate {
const uint32 kGetInfo = 'Tinf';
const uint32 kDelete = 'Tdel';
const uint32 kRestoreFromTrash = 'Tres';
const uint32 kDeleteSelection = kDelete;
const uint32 kRestoreSelectionFromTrash = kRestoreFromTrash;
const uint32 kIdentifyEntry = 'Tidt';
const uint32 kOpenSelection = 'Tosl';
const uint32 kOpenSelectionWith = 'Tosu';
@@ -77,6 +78,7 @@ const uint32 kMoveSelectionTo = 'Tmsl';
const uint32 kCreateLink = 'Tlnk';
const uint32 kCreateRelativeLink = 'Trln';
const uint32 kDuplicateSelection = 'Tdsl';
const uint32 kMoveSelectionToTrash = kMoveToTrash;
const uint32 kLoadAddOn = 'Tlda';
const uint32 kEmptyTrash = 'Tetr';
const uint32 kAddPrinter = 'Tadp';