Changeset 194 for trunk/src/MainFrame.h


Ignore:
Timestamp:
05/01/2009 08:05:17 PM (3 years ago)
Author:
guyru
Message:

Re-factor the accidental roll prevention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.h

    r193 r194  
    5757        void OnHelpMenuLink (wxCommandEvent& event); 
    5858 
    59         void OnRollButton (wxCommandEvent& event); 
     59        /** 
     60         * Prevent accidental roll of the dice by double clicking the button. 
     61         * \param event The event that was send to the ::OnRollButton() 
     62         */ 
     63        void DoubleRollLock(wxCommandEvent& event); 
     64 
    6065        void OnUpperButtons (wxCommandEvent& event); 
    6166        void On3ofakindButton (wxCommandEvent& event); 
     
    9499        void AddControlsAndLayout(); 
    95100 
     101        void OnRollButton (); 
     102 
    96103        wxStaticBoxSizer *uppersection, *lowersection; 
    97104        wxBoxSizer *sectionsSizer; 
     
    107114        short int m_lastmove; //stores the ID of the last button pressed. 
    108115        short int m_rollsundo; //holds the number of remaining rolls for use with the undo option 
    109  
    110         bool m_skiproll; ///used to prevent the user from accidently rolling the dice twice 
    111116 
    112117        class MainFrameEvtHandler *m_evt_handler; 
Note: See TracChangeset for help on using the changeset viewer.