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

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

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

revision 61 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 19  Line 19 
19    
20  class CheckedStaticBox : public wxPanelWithHelpers  class CheckedStaticBox : public wxPanelWithHelpers
21  {  {
22            typedef wxPanelWithHelpers _parent;
23    
24  public:  public:
25          wxBoxSizer& ThisSizer;          // Boxsizer which holds all child items.          wxBoxSizer& ThisSizer;          // Boxsizer which holds all child items.
26          wxCheckBox& ThisToggle;         // toggle which can enable/disable all child controls          wxCheckBox& ThisToggle;         // toggle which can enable/disable all child controls
27    
28  public:  public:
29          CheckedStaticBox( wxWindow* parent, int orientation, const wxString& title=wxEmptyString, int id=wxID_ANY );          CheckedStaticBox( wxWindow* parent, int orientation, const wxString& title=wxEmptyString );
30    
31          void SetValue( bool val );          void SetValue( bool val );
32          bool GetValue() const;          bool GetValue() const;
33            bool Enable( bool enable = true );
34            
35  public:  public:
         // Event handler for click events for the main checkbox (default behavior: enables/disables all child controls)  
         // This function can be overridden to implement custom handling of check enable/disable behavior.  
36          virtual void MainToggle_Click( wxCommandEvent& evt );          virtual void MainToggle_Click( wxCommandEvent& evt );
37  };  };

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

  ViewVC Help
Powered by ViewVC 1.1.22