/[pcsx2_0.9.7]/trunk/common/include/Utilities/wxAppWithHelpers.h
ViewVC logotype

Diff of /trunk/common/include/Utilities/wxAppWithHelpers.h

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

revision 31 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 25  using namespace Threading; Line 25  using namespace Threading;
25    
26  class pxSynchronousCommandEvent;  class pxSynchronousCommandEvent;
27    
28    // --------------------------------------------------------------------------------------
29    //  pxAppLog / ConsoleLogSource_App
30    // --------------------------------------------------------------------------------------
31    
32    class ConsoleLogSource_App : public ConsoleLogSource
33    {
34            typedef ConsoleLogSource _parent;
35    
36    public:
37            ConsoleLogSource_App();
38    };
39    
40    extern ConsoleLogSource_App pxConLog_App;
41    
42    #define pxAppLog pxConLog_App.IsActive() && pxConLog_App
43    
44    
45  // --------------------------------------------------------------------------------------  // --------------------------------------------------------------------------------------
46  //  ModalButtonPanel  //  ModalButtonPanel
# Line 74  public: Line 90  public:
90                  DeleteObject( *obj );                  DeleteObject( *obj );
91          }          }
92    
93          void DeleteThread( Threading::PersistentThread& obj );          void DeleteThread( Threading::pxThread& obj );
94          void DeleteThread( Threading::PersistentThread* obj )          void DeleteThread( Threading::pxThread* obj )
95          {          {
96                  if( obj == NULL ) return;                  if( obj == NULL ) return;
97                  DeleteThread( *obj );                  DeleteThread( *obj );
# Line 85  public: Line 101  public:
101          void PostCommand( int evtType, int intParam=0, long longParam=0, const wxString& stringParam=wxEmptyString );          void PostCommand( int evtType, int intParam=0, long longParam=0, const wxString& stringParam=wxEmptyString );
102          void PostMethod( FnType_Void* method );          void PostMethod( FnType_Void* method );
103          void PostIdleMethod( FnType_Void* method );          void PostIdleMethod( FnType_Void* method );
104          void ProcessMethod( void (*method)() );          void ProcessMethod( FnType_Void* method );
105    
106            bool Rpc_TryInvoke( FnType_Void* method );
107            bool Rpc_TryInvokeAsync( FnType_Void* method );
108    
109          sptr ProcessCommand( void* clientData, int evtType, int intParam=0, long longParam=0, const wxString& stringParam=wxEmptyString );          sptr ProcessCommand( void* clientData, int evtType, int intParam=0, long longParam=0, const wxString& stringParam=wxEmptyString );
110          sptr ProcessCommand( int evtType, int intParam=0, long longParam=0, const wxString& stringParam=wxEmptyString );          sptr ProcessCommand( int evtType, int intParam=0, long longParam=0, const wxString& stringParam=wxEmptyString );
111    
112          void ProcessAction( pxInvokeActionEvent& evt );          void ProcessAction( pxActionEvent& evt );
113          void PostAction( const pxInvokeActionEvent& evt );          void PostAction( const pxActionEvent& evt );
   
         bool PostMethodMyself( void (*method)() );  
114    
115          void Ping();          void Ping();
116          bool OnInit();          bool OnInit();
# Line 105  public: Line 122  public:
122          bool ProcessEvent( wxEvent& evt );          bool ProcessEvent( wxEvent& evt );
123          bool ProcessEvent( wxEvent* evt );          bool ProcessEvent( wxEvent* evt );
124                    
125          bool ProcessEvent( pxInvokeActionEvent& evt );          bool ProcessEvent( pxActionEvent& evt );
126          bool ProcessEvent( pxInvokeActionEvent* evt );          bool ProcessEvent( pxActionEvent* evt );
127    
128  protected:  protected:
129          void IdleEventDispatcher( const wxChar* action );          void IdleEventDispatcher( const wxChar* action=wxEmptyString );
130    
131          void OnIdleEvent( wxIdleEvent& evt );          void OnIdleEvent( wxIdleEvent& evt );
132          void OnStartIdleEventTimer( wxEvent& evt );          void OnStartIdleEventTimer( wxEvent& evt );
# Line 117  protected: Line 134  protected:
134          void OnDeleteObject( wxCommandEvent& evt );          void OnDeleteObject( wxCommandEvent& evt );
135          void OnDeleteThread( wxCommandEvent& evt );          void OnDeleteThread( wxCommandEvent& evt );
136          void OnSynchronousCommand( pxSynchronousCommandEvent& evt );          void OnSynchronousCommand( pxSynchronousCommandEvent& evt );
137          void OnInvokeAction( pxInvokeActionEvent& evt );          void OnInvokeAction( pxActionEvent& evt );
138    
139  };  };
140    
141  namespace Msgbox  namespace Msgbox
142  {  {
143          extern int      ShowModal( BaseMessageBoxEvent& evt );          extern int      ShowModal( BaseMessageBoxEvent& evt );
144            extern int      ShowModal( const wxString& title, const wxString& content, const MsgButtons& buttons );
145  }  }

Legend:
Removed from v.31  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22