Just some style cleanups again. Sorry I couldn't resist, won't happen again ;-).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13646 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
CursorManager *cursormanager;
|
CursorManager *cursormanager;
|
||||||
|
|
||||||
//! Initializes the CursorManager
|
//! Initializes the CursorManager
|
||||||
CursorManager::CursorManager(void)
|
CursorManager::CursorManager()
|
||||||
{
|
{
|
||||||
// Error code for AddCursor
|
// Error code for AddCursor
|
||||||
fTokenizer.ExcludeValue(B_ERROR);
|
fTokenizer.ExcludeValue(B_ERROR);
|
||||||
@@ -83,7 +83,7 @@ CursorManager::CursorManager(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Does all the teardown
|
//! Does all the teardown
|
||||||
CursorManager::~CursorManager(void)
|
CursorManager::~CursorManager()
|
||||||
{
|
{
|
||||||
ServerCursor *temp;
|
ServerCursor *temp;
|
||||||
for(int32 i=0; i<fCursorList.CountItems();i++)
|
for(int32 i=0; i<fCursorList.CountItems();i++)
|
||||||
@@ -336,7 +336,7 @@ cursor_which CursorManager::GetCursorWhich(void)
|
|||||||
|
|
||||||
A word of warning: once a cursor has been assigned to the system, the
|
A word of warning: once a cursor has been assigned to the system, the
|
||||||
system will take ownership of the cursor and deleting the cursor
|
system will take ownership of the cursor and deleting the cursor
|
||||||
will have not effect on the system.
|
will have no effect on the system.
|
||||||
*/
|
*/
|
||||||
void CursorManager::ChangeCursor(cursor_which which, int32 token)
|
void CursorManager::ChangeCursor(cursor_which which, int32 token)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,36 +43,35 @@ class ServerCursor;
|
|||||||
any BeOS platform. It also provides tokens for BCursors and frees all
|
any BeOS platform. It also provides tokens for BCursors and frees all
|
||||||
of an application's cursors whenever an application closes.
|
of an application's cursors whenever an application closes.
|
||||||
*/
|
*/
|
||||||
class CursorManager : public BLocker
|
class CursorManager : public BLocker {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
CursorManager(void);
|
CursorManager();
|
||||||
~CursorManager(void);
|
~CursorManager();
|
||||||
int32 AddCursor(ServerCursor *sc);
|
int32 AddCursor(ServerCursor *sc);
|
||||||
void DeleteCursor(int32 token);
|
void DeleteCursor(int32 token);
|
||||||
void RemoveAppCursors(team_id team);
|
void RemoveAppCursors(team_id team);
|
||||||
void SetCursorSet(const char *path);
|
void SetCursorSet(const char *path);
|
||||||
ServerCursor *GetCursor(cursor_which which);
|
ServerCursor *GetCursor(cursor_which which);
|
||||||
cursor_which GetCursorWhich(void);
|
cursor_which GetCursorWhich(void);
|
||||||
void ChangeCursor(cursor_which which, int32 token);
|
void ChangeCursor(cursor_which which, int32 token);
|
||||||
void SetDefaults(void);
|
void SetDefaults(void);
|
||||||
ServerCursor *FindCursor(int32 token);
|
ServerCursor *FindCursor(int32 token);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BList fCursorList;
|
BList fCursorList;
|
||||||
TokenHandler fTokenizer;
|
TokenHandler fTokenizer;
|
||||||
|
|
||||||
// System cursor members
|
// System cursor members
|
||||||
ServerCursor *fDefaultCursor,
|
ServerCursor *fDefaultCursor,
|
||||||
*fTextCursor,
|
*fTextCursor,
|
||||||
*fMoveCursor,
|
*fMoveCursor,
|
||||||
*fDragCursor,
|
*fDragCursor,
|
||||||
*fResizeCursor,
|
*fResizeCursor,
|
||||||
*fNWSECursor,
|
*fNWSECursor,
|
||||||
*fNESWCursor,
|
*fNESWCursor,
|
||||||
*fNSCursor,
|
*fNSCursor,
|
||||||
*fEWCursor;
|
*fEWCursor;
|
||||||
cursor_which fCurrentWhich;
|
cursor_which fCurrentWhich;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern CursorManager *cursormanager;
|
extern CursorManager *cursormanager;
|
||||||
|
|||||||
@@ -26,21 +26,21 @@
|
|||||||
#endif // ON_SCREEN_DEBUGGING_INFO
|
#endif // ON_SCREEN_DEBUGGING_INFO
|
||||||
|
|
||||||
class DebugInfoManager {
|
class DebugInfoManager {
|
||||||
public:
|
public:
|
||||||
virtual ~DebugInfoManager();
|
virtual ~DebugInfoManager();
|
||||||
|
|
||||||
static DebugInfoManager* Default();
|
static DebugInfoManager *Default();
|
||||||
void AddInfo(const char* string);
|
void AddInfo(const char* string);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DebugInfoManager();
|
DebugInfoManager();
|
||||||
static DebugInfoManager* sDefaultInstance;
|
static DebugInfoManager *sDefaultInstance;
|
||||||
|
|
||||||
#if ON_SCREEN_DEBUGGING_INFO
|
#if ON_SCREEN_DEBUGGING_INFO
|
||||||
friend class RootLayer;
|
friend class RootLayer;
|
||||||
void SetRootLayer(RootLayer* layer);
|
void SetRootLayer(RootLayer* layer);
|
||||||
|
|
||||||
RootLayer* fRootLayer;
|
RootLayer *fRootLayer;
|
||||||
#endif // ON_SCREEN_DEBUGGING_INFO
|
#endif // ON_SCREEN_DEBUGGING_INFO
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user