Added B_I_BEAM_CURSOR and B_HAND_CURSOR in new file AppDefs.cpp.
B_CURSOR_SYSTEM_DEFAULT and B_CURSOR_I_BEAM are now initialized in BApplication::InitData(). Added a todo note about how to save the app server communication to get those initialized. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8201 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
917cf3f748
commit
1787eef9f9
37
src/kits/app/AppDefs.cpp
Normal file
37
src/kits/app/AppDefs.cpp
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
|
||||
|
||||
#include <AppDefs.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
const uint8 B_HAND_CURSOR[] = {
|
||||
16, // size (width/height)
|
||||
1, // depth
|
||||
2, 2, // hot-spot coordinates
|
||||
|
||||
// image mask
|
||||
0x0, 0x0, 0x0, 0x0, 0x38, 0x0, 0x24, 0x0, 0x24, 0x0, 0x13, 0xe0, 0x12, 0x5c, 0x9, 0x2a,
|
||||
0x8, 0x1, 0x3c, 0x1, 0x4c, 0x1, 0x42, 0x1, 0x30, 0x1, 0xc, 0x1, 0x2, 0x0, 0x1, 0x0,
|
||||
|
||||
// transparency mask
|
||||
0x0, 0x0, 0x0, 0x0, 0x38, 0x0, 0x3c, 0x0, 0x3c, 0x0, 0x1f, 0xe0, 0x1f, 0xfc, 0xf, 0xfe,
|
||||
0xf, 0xff, 0x3f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x3f, 0xff, 0xf, 0xff, 0x3, 0xfe, 0x1, 0xf8,
|
||||
};
|
||||
|
||||
const uint8 B_I_BEAM_CURSOR[] = {
|
||||
16, // size (width/height)
|
||||
1, // depth
|
||||
5, 8, // hot-spot coordinates
|
||||
|
||||
// image mask
|
||||
0x6, 0xc0, 0x3, 0x80, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0,
|
||||
0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x3, 0x80, 0x6, 0xc0,
|
||||
|
||||
// transparency mask
|
||||
0xf, 0xc0, 0x7, 0x80, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0,
|
||||
0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x3, 0x0, 0x7, 0x80, 0xf, 0xc0,
|
||||
};
|
@ -805,6 +805,12 @@ void BApplication::InitData(const char* signature, status_t* error)
|
||||
if (path.SetTo(&ref) == B_OK)
|
||||
create_app_meta_mime(path.Path(), false, true, false);
|
||||
}
|
||||
|
||||
// create global system cursors
|
||||
// ToDo: these could have a predefined server token to safe the communication!
|
||||
B_CURSOR_SYSTEM_DEFAULT = new BCursor(B_HAND_CURSOR);
|
||||
B_CURSOR_I_BEAM = new BCursor(B_I_BEAM_CURSOR);
|
||||
|
||||
// Return the error or exit, if there was an error and no error variable
|
||||
// has been supplied.
|
||||
if (error)
|
||||
|
@ -1,4 +1,5 @@
|
||||
APP_KIT_SOURCE =
|
||||
AppDefs.cpp
|
||||
Application.cpp
|
||||
AppMisc.cpp
|
||||
AppServerLink.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user