* added Layer as a friend.
* added a new member: port_id winLooperPort; We'll use it to send flattened BMessages(like _UPDATE_ / B_VIEW_RESIZED(MOVED)) to our BWindow counterpart. * SendMessageToClient( BMessage ) sends that message BWindow's looper port. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4806 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
class BString;
|
class BString;
|
||||||
class BMessenger;
|
class BMessenger;
|
||||||
class BPoint;
|
class BPoint;
|
||||||
|
class BMessage;
|
||||||
class ServerApp;
|
class ServerApp;
|
||||||
class Decorator;
|
class Decorator;
|
||||||
class PortLink;
|
class PortLink;
|
||||||
@@ -60,7 +61,8 @@ class ServerWindow
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ServerWindow(BRect rect, const char *string, uint32 wlook, uint32 wfeel,
|
ServerWindow(BRect rect, const char *string, uint32 wlook, uint32 wfeel,
|
||||||
uint32 wflags, ServerApp *winapp, port_id winport, uint32 index, int32 handlerID);
|
uint32 wflags, ServerApp *winapp, port_id winport,
|
||||||
|
port_id looperPort, uint32 index, int32 handlerID);
|
||||||
~ServerWindow(void);
|
~ServerWindow(void);
|
||||||
|
|
||||||
void ReplaceDecorator(void);
|
void ReplaceDecorator(void);
|
||||||
@@ -98,11 +100,16 @@ public:
|
|||||||
Workspace *GetWorkspace(void);
|
Workspace *GetWorkspace(void);
|
||||||
void SetWorkspace(Workspace *wkspc);
|
void SetWorkspace(Workspace *wkspc);
|
||||||
|
|
||||||
Layer *FindLayer(const Layer* start, int32 token) const;
|
//! Returns the window's title
|
||||||
|
const char *Title(void) { return _title->String(); }
|
||||||
|
|
||||||
|
Layer* FindLayer(const Layer* start, int32 token) const;
|
||||||
|
void SendMessageToClient( const BMessage* msg ) const;
|
||||||
protected:
|
protected:
|
||||||
friend class ServerApp;
|
friend class ServerApp;
|
||||||
friend class WinBorder;
|
friend class WinBorder;
|
||||||
friend class Screen;
|
friend class Screen;
|
||||||
|
friend class Layer;
|
||||||
|
|
||||||
BString *_title;
|
BString *_title;
|
||||||
int32 _look, _feel, _flags;
|
int32 _look, _feel, _flags;
|
||||||
@@ -124,6 +131,7 @@ protected:
|
|||||||
|
|
||||||
// ADI:
|
// ADI:
|
||||||
BSession* ses;
|
BSession* ses;
|
||||||
|
port_id winLooperPort;
|
||||||
Layer* top_layer;
|
Layer* top_layer;
|
||||||
Layer* cl; // short for currentLayer. We'll use it a lot, that's why it's short :-)
|
Layer* cl; // short for currentLayer. We'll use it a lot, that's why it's short :-)
|
||||||
};
|
};
|
||||||
@@ -132,3 +140,9 @@ void ActivateWindow(ServerWindow *oldwin,ServerWindow *newwin);
|
|||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
/*
|
||||||
|
@log
|
||||||
|
* added Layer as a friend.
|
||||||
|
* added a new member: port_id winLooperPort; We'll use it to send flattened BMessages(like _UPDATE_ / B_VIEW_RESIZED(MOVED)) to our BWindow counterpart.
|
||||||
|
* SendMessageToClient( BMessage ) sends that message BWindow's looper port.
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user