/[paragui]/paragui/src/core/pgmessageobject.cpp
ViewVC logotype

Diff of /paragui/src/core/pgmessageobject.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.6.8.2.1 by braindead, Fri Nov 21 12:27:55 2003 UTC revision 1.1.6.8.2.2 by braindead, Mon Nov 24 09:17:21 2003 UTC
# Line 28  Line 28 
28    
29  #include "pgmessageobject.h"  #include "pgmessageobject.h"
30  #include "pgwidget.h"  #include "pgwidget.h"
 #include "pgmsgmap.h"  
31  #include "pglog.h"  #include "pglog.h"
32    
33  #include <iostream>  #include <iostream>
# Line 60  PG_MessageObject::~PG_MessageObject() { Line 59  PG_MessageObject::~PG_MessageObject() {
59    
60          RemoveObject(this);          RemoveObject(this);
61    
62          PG_UnregisterEventObject(this);          //PG_UnregisterEventObject(this);
63    
64          if (inputFocusObject == this) {          if (inputFocusObject == this) {
65                  inputFocusObject = NULL;                  inputFocusObject = NULL;
# Line 414  bool PG_MessageObject::RemoveObject(PG_M Line 413  bool PG_MessageObject::RemoveObject(PG_M
413  }  }
414    
415  /**  */  /**  */
416  bool PG_MessageObject::SendMessage(PG_MessageObject* target, PG_MSG_TYPE type, MSG_ID id, MSG_DATA data) {  /*bool PG_MessageObject::SendMessage(PG_MessageObject* target, PG_MSG_TYPE type, MSG_ID id, MSG_DATA data) {
417          bool rc = false;          bool rc = false;
418    
419          // check if there is a callback function          // check if there is a callback function
# Line 451  bool PG_MessageObject::SendMessage(PG_Me Line 450  bool PG_MessageObject::SendMessage(PG_Me
450          }          }
451    
452          return rc;          return rc;
453  }  }*/
   
454    
455    /*
456  void PG_MessageObject::SetEventCallback(PG_MSG_TYPE type, MSG_CALLBACK cbfunc, void *clientdata) {  void PG_MessageObject::SetEventCallback(PG_MSG_TYPE type, MSG_CALLBACK cbfunc, void *clientdata) {
457          PG_RegisterEventHandler(type, this, cbfunc, clientdata);          PG_RegisterEventHandler(type, this, cbfunc, clientdata);
458  }  }
459    
460  void PG_MessageObject::SetEventObject(PG_MSG_TYPE type, PG_EventObject* calledobj, MSG_CALLBACK_OBJ cbfunc, void *clientdata) {  void PG_MessageObject::SetEventObject(PG_MSG_TYPE type, PG_EventObject* calledobj, MSG_CALLBACK_OBJ cbfunc, void *clientdata) {
461          PG_RegisterEventHandlerObj(type, this, calledobj, cbfunc, clientdata);          PG_RegisterEventHandlerObj(type, this, calledobj, cbfunc, clientdata);
462  }  }*/
463    
464  void PG_MessageObject::TranslateNumpadKeys(SDL_KeyboardEvent *key) {  void PG_MessageObject::TranslateNumpadKeys(SDL_KeyboardEvent *key) {
465          // note: works on WIN, test this on other platforms          // note: works on WIN, test this on other platforms

Legend:
Removed from v.1.1.6.8.2.1  
changed lines
  Added in v.1.1.6.8.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26