BDeskbar: Moved constants to shared header
* Instead of duplicating them in different files.
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2001-2018 Haiku, Inc. All Rights Reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
* Authors:
|
||||||
|
* Jérôme Duval
|
||||||
|
* Axel Dörfler
|
||||||
|
* Jeremy Rand, [email protected]
|
||||||
|
* John Scipione, [email protected]
|
||||||
|
*/
|
||||||
|
#ifndef _DESKBAR_PRIVATE_H
|
||||||
|
#define _DESKBAR_PRIVATE_H
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef kDeskbarSignature
|
||||||
|
# define kDeskbarSignature "application/x-vnd.Be-TSKB"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
static const uint32 kMsgIsAlwaysOnTop = 'gtop';
|
||||||
|
static const uint32 kMsgAlwaysOnTop = 'stop';
|
||||||
|
static const uint32 kMsgIsAutoRaise = 'grse';
|
||||||
|
static const uint32 kMsgAutoRaise = 'srse';
|
||||||
|
static const uint32 kMsgIsAutoHide = 'ghid';
|
||||||
|
static const uint32 kMsgAutoHide = 'shid';
|
||||||
|
|
||||||
|
static const uint32 kMsgAddView = 'icon';
|
||||||
|
static const uint32 kMsgAddAddOn = 'adon';
|
||||||
|
static const uint32 kMsgHasItem = 'exst';
|
||||||
|
static const uint32 kMsgGetItemInfo = 'info';
|
||||||
|
static const uint32 kMsgCountItems = 'cwnt';
|
||||||
|
static const uint32 kMsgRemoveItem = 'remv';
|
||||||
|
static const uint32 kMsgLocation = 'gloc';
|
||||||
|
static const uint32 kMsgIsExpanded = 'gexp';
|
||||||
|
static const uint32 kMsgSetLocation = 'sloc';
|
||||||
|
static const uint32 kMsgExpand = 'sexp';
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _DESKBAR_PRIVATE_H */
|
||||||
@@ -54,7 +54,10 @@ All rights reserved.
|
|||||||
#include <Messenger.h>
|
#include <Messenger.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <Roster.h>
|
#include <Roster.h>
|
||||||
|
|
||||||
|
#include <DeskbarPrivate.h>
|
||||||
#include <RosterPrivate.h>
|
#include <RosterPrivate.h>
|
||||||
|
#include "tracker_private.h"
|
||||||
|
|
||||||
#include "BarView.h"
|
#include "BarView.h"
|
||||||
#include "BarWindow.h"
|
#include "BarWindow.h"
|
||||||
@@ -67,7 +70,6 @@ All rights reserved.
|
|||||||
#include "Utilities.h"
|
#include "Utilities.h"
|
||||||
|
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
#include "tracker_private.h"
|
|
||||||
|
|
||||||
|
|
||||||
BLocker TBarApp::sSubscriberLock;
|
BLocker TBarApp::sSubscriberLock;
|
||||||
|
|||||||
@@ -79,25 +79,6 @@ const uint32 kUpdatePreferences = 'Pref';
|
|||||||
// realign replicants message constant
|
// realign replicants message constant
|
||||||
const uint32 kRealignReplicants = 'Algn';
|
const uint32 kRealignReplicants = 'Algn';
|
||||||
|
|
||||||
// BDeskbar message constants
|
|
||||||
static const uint32 kMsgIsAlwaysOnTop = 'gtop';
|
|
||||||
static const uint32 kMsgAlwaysOnTop = 'stop';
|
|
||||||
static const uint32 kMsgIsAutoRaise = 'grse';
|
|
||||||
static const uint32 kMsgAutoRaise = 'srse';
|
|
||||||
static const uint32 kMsgIsAutoHide = 'ghid';
|
|
||||||
static const uint32 kMsgAutoHide = 'shid';
|
|
||||||
|
|
||||||
static const uint32 kMsgAddView = 'icon';
|
|
||||||
static const uint32 kMsgAddAddOn = 'adon';
|
|
||||||
static const uint32 kMsgHasItem = 'exst';
|
|
||||||
static const uint32 kMsgGetItemInfo = 'info';
|
|
||||||
static const uint32 kMsgCountItems = 'cwnt';
|
|
||||||
static const uint32 kMsgRemoveItem = 'remv';
|
|
||||||
static const uint32 kMsgLocation = 'gloc';
|
|
||||||
static const uint32 kMsgIsExpanded = 'gexp';
|
|
||||||
static const uint32 kMsgSetLocation = 'sloc';
|
|
||||||
static const uint32 kMsgExpand = 'sexp';
|
|
||||||
|
|
||||||
/* --------------------------------------------- */
|
/* --------------------------------------------- */
|
||||||
|
|
||||||
class BBitmap;
|
class BBitmap;
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ All rights reserved.
|
|||||||
#include <MessagePrivate.h>
|
#include <MessagePrivate.h>
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
|
|
||||||
|
#include <DeskbarPrivate.h>
|
||||||
|
#include <tracker_private.h>
|
||||||
|
|
||||||
#include "BarApp.h"
|
#include "BarApp.h"
|
||||||
#include "BarMenuBar.h"
|
#include "BarMenuBar.h"
|
||||||
#include "BarView.h"
|
#include "BarView.h"
|
||||||
@@ -60,7 +63,6 @@ All rights reserved.
|
|||||||
#include "ExpandoMenuBar.h"
|
#include "ExpandoMenuBar.h"
|
||||||
#include "StatusView.h"
|
#include "StatusView.h"
|
||||||
|
|
||||||
#include "tracker_private.h"
|
|
||||||
|
|
||||||
#undef B_TRANSLATION_CONTEXT
|
#undef B_TRANSLATION_CONTEXT
|
||||||
#define B_TRANSLATION_CONTEXT "MainWindow"
|
#define B_TRANSLATION_CONTEXT "MainWindow"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2017 Haiku, Inc. All Rights Reserved.
|
* Copyright 2001-2018 Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <Deskbar.h>
|
#include <Deskbar.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <Messenger.h>
|
#include <Messenger.h>
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
@@ -18,10 +21,10 @@
|
|||||||
#include <InterfaceDefs.h>
|
#include <InterfaceDefs.h>
|
||||||
#include <Node.h>
|
#include <Node.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <DeskbarPrivate.h>
|
||||||
|
|
||||||
|
|
||||||
// ToDo: in case the BDeskbar methods are called from a Deskbar add-on,
|
// TODO: in case the BDeskbar methods are called from a Deskbar add-on,
|
||||||
// they will currently deadlock most of the time (only those that do
|
// they will currently deadlock most of the time (only those that do
|
||||||
// not need a reply will work).
|
// not need a reply will work).
|
||||||
// That should be fixed in the Deskbar itself, even if the Be API found
|
// That should be fixed in the Deskbar itself, even if the Be API found
|
||||||
@@ -31,27 +34,6 @@
|
|||||||
// should work with all versions of Tracker available for Haiku.
|
// should work with all versions of Tracker available for Haiku.
|
||||||
|
|
||||||
|
|
||||||
static const char* kDeskbarSignature = "application/x-vnd.Be-TSKB";
|
|
||||||
|
|
||||||
static const uint32 kMsgIsAlwaysOnTop = 'gtop';
|
|
||||||
static const uint32 kMsgAlwaysOnTop = 'stop';
|
|
||||||
static const uint32 kMsgIsAutoRaise = 'grse';
|
|
||||||
static const uint32 kMsgAutoRaise = 'srse';
|
|
||||||
static const uint32 kMsgIsAutoHide = 'ghid';
|
|
||||||
static const uint32 kMsgAutoHide = 'shid';
|
|
||||||
|
|
||||||
static const uint32 kMsgAddView = 'icon';
|
|
||||||
static const uint32 kMsgAddAddOn = 'adon';
|
|
||||||
static const uint32 kMsgHasItem = 'exst';
|
|
||||||
static const uint32 kMsgGetItemInfo = 'info';
|
|
||||||
static const uint32 kMsgCountItems = 'cwnt';
|
|
||||||
static const uint32 kMsgRemoveItem = 'remv';
|
|
||||||
static const uint32 kMsgLocation = 'gloc';
|
|
||||||
static const uint32 kMsgIsExpanded = 'gexp';
|
|
||||||
static const uint32 kMsgSetLocation = 'sloc';
|
|
||||||
static const uint32 kMsgExpand = 'sexp';
|
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
get_deskbar_frame(BRect* frame)
|
get_deskbar_frame(BRect* frame)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user