mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
406f30c616
* 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 <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
80 lines
2.9 KiB
C++
80 lines
2.9 KiB
C++
/*
|
|
Open Tracker License
|
|
|
|
Terms and Conditions
|
|
|
|
Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
the Software without restriction, including without limitation the rights to
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
of the Software, and to permit persons to whom the Software is furnished to do
|
|
so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice applies to all licensees
|
|
and shall be included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
Except as contained in this notice, the name of Be Incorporated shall not be
|
|
used in advertising or otherwise to promote the sale, use or other dealings in
|
|
this Software without prior written authorization from Be Incorporated.
|
|
|
|
Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
|
|
of Be Incorporated in the United States and other countries. Other brand product
|
|
names are registered trademarks or trademarks of their respective holders.
|
|
All rights reserved.
|
|
*/
|
|
|
|
#ifndef _TRACKER_PRIVATE_H
|
|
#define _TRACKER_PRIVATE_H
|
|
|
|
#include <BeBuild.h>
|
|
|
|
#define kTrackerSignature "application/x-vnd.Be-TRAK"
|
|
#define kTrackerSuites "suite/x-vnd.Be-TRAK"
|
|
#define kDeskbarSignature "application/x-vnd.Be-TSKB"
|
|
|
|
namespace BPrivate {
|
|
|
|
#ifdef _IMPEXP_TRACKER
|
|
_IMPEXP_TRACKER
|
|
#endif
|
|
void InitIconPreloader();
|
|
|
|
// commands that may be issued to the tracker by other apps using messengers
|
|
|
|
const uint32 kFindButton = 'Tfnd';
|
|
const uint32 kSaveButton = 'Tsav';
|
|
const uint32 kShowSplash = 'Spls';
|
|
|
|
const uint32 kStartWatchClipboardRefs = 'TCbw';
|
|
// StartWatching() clipboard changes. Changes will be sent to given
|
|
// BMessenger "target"
|
|
const uint32 kStopWatchClipboardRefs = 'TCfw';
|
|
// StopWatching() given BMessenger "target"
|
|
const uint32 kFSClipboardChanges = 'TCch';
|
|
// Used by FSClipboard functions which change refs in clipboard and are
|
|
// used outside Tracker (like BFilePanel called in another app)
|
|
// Contains movemodes named as in FSClipboard operations and in Clipboard
|
|
// (look into FSClipboard files)
|
|
|
|
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
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
#endif /* _TRACKER_PRIVATE_H */
|