* Implemented BDragger::{Show|Hide}AllDraggers() and its backend in the app_server.
This fixes bug #242. The value is currently stored in a separate file. * Removed some unused codes from ServerProtocol.h. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20188 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
// Server port names. The input port is the port which is used to receive
|
||||
// input messages from the Input Server. The other is the "main" port for
|
||||
// the server and is utilized mostly by BApplication objects.
|
||||
#define SERVER_PORT_NAME "OBappserver"
|
||||
#define SERVER_PORT_NAME "haiku app_server"
|
||||
#if TEST_MODE
|
||||
# define SERVER_INPUT_PORT "OBinputport"
|
||||
# define SERVER_INPUT_PORT "haiku input port"
|
||||
#endif
|
||||
|
||||
#define AS_REQUEST_COLOR_KEY 0x00010000
|
||||
@@ -29,8 +29,10 @@ enum {
|
||||
// NOTE: all defines have to start with "AS_" to let the "code_to_name"
|
||||
// utility work correctly
|
||||
|
||||
AS_REGISTER_INPUT_SERVER = 1,
|
||||
AS_GET_DESKTOP,
|
||||
AS_REGISTER_INPUT_SERVER = 1,
|
||||
AS_EVENT_STREAM_CLOSED,
|
||||
// Notification of event stream closing to restart input_server
|
||||
|
||||
// Desktop definitions (through the ServerApp, though)
|
||||
AS_GET_WINDOW_LIST,
|
||||
@@ -93,7 +95,6 @@ enum {
|
||||
AS_SET_SIZE_LIMITS,
|
||||
AS_ACTIVATE_WINDOW,
|
||||
AS_IS_FRONT_WINDOW,
|
||||
AS_UPDATE_IF_NEEDED,
|
||||
|
||||
// BPicture definitions
|
||||
AS_CREATE_PICTURE,
|
||||
@@ -176,14 +177,13 @@ enum {
|
||||
AS_GET_MENU_INFO,
|
||||
AS_SET_MENU_INFO,
|
||||
AS_IDLE_TIME,
|
||||
AS_SELECT_PRINTER_PANEL,
|
||||
AS_ADD_PRINTER_PANEL,
|
||||
AS_RUN_BE_ABOUT,
|
||||
AS_SET_MOUSE_MODE,
|
||||
AS_GET_MOUSE_MODE,
|
||||
AS_GET_MOUSE,
|
||||
AS_SET_DECORATOR_SETTINGS,
|
||||
AS_GET_DECORATOR_SETTINGS,
|
||||
AS_GET_SHOW_ALL_DRAGGERS,
|
||||
AS_SET_SHOW_ALL_DRAGGERS,
|
||||
|
||||
// Graphics calls
|
||||
AS_SET_HIGH_COLOR,
|
||||
@@ -289,9 +289,6 @@ enum {
|
||||
AS_DIRECT_WINDOW_GET_SYNC_DATA,
|
||||
AS_DIRECT_WINDOW_SET_FULLSCREEN,
|
||||
|
||||
// Notification of event stream closing to restart input_server
|
||||
AS_EVENT_STREAM_CLOSED,
|
||||
|
||||
AS_LAST_CODE
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _DRAGGER_PRIVATE_H
|
||||
#define _DRAGGER_PRIVATE_H
|
||||
|
||||
|
||||
#include <Dragger.h>
|
||||
|
||||
|
||||
class BDragger::Private {
|
||||
public:
|
||||
Private(BDragger* dragger) : fDragger(dragger) {}
|
||||
|
||||
static void UpdateShowAllDraggers(bool visible)
|
||||
{ BDragger::_UpdateShowAllDraggers(visible); }
|
||||
|
||||
private:
|
||||
BDragger* fDragger;
|
||||
};
|
||||
|
||||
#endif // _DRAGGER_PRIVATE_H
|
||||
Reference in New Issue
Block a user