]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/spinbutt.mm
Spell contributor name correctly.
[wxWidgets.git] / src / osx / cocoa / spinbutt.mm
index 2104c0e7c2e20d3670c5d47d2ad7f19f71881cc4..4230bad5e9b1d036e7a9c435b1f3776750a7de73 100644 (file)
@@ -26,7 +26,7 @@
 + (void)initialize
 {
     static BOOL initialized = NO;
-    if (!initialized) 
+    if (!initialized)
     {
         initialized = YES;
         wxOSXCocoaClassAddWXMethods(self);
@@ -43,12 +43,12 @@ public :
     {
         m_formerValue = 0;
     }
-    
+
     ~wxSpinButtonCocoaImpl()
     {
     }
 
-    virtual void clickedAction(WXWidget slf, void* _cmd, void *sender);
+    virtual void controlAction(WXWidget slf, void* _cmd, void *sender);
     virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
 private:
     int m_formerValue;
@@ -56,7 +56,7 @@ private:
 
 void wxSpinButtonCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd)
 {
-    
+
     // send a release event in case we've been tracking the thumb
     if ( strcmp( sel_getName((SEL) _cmd) , "mouseDown:") == 0 )
     {
@@ -66,24 +66,24 @@ void wxSpinButtonCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cm
     wxWidgetCocoaImpl::mouseEvent(event, slf, _cmd);
 }
 
-void wxSpinButtonCocoaImpl::clickedAction( WXWidget slf, void *_cmd, void *sender)
+void wxSpinButtonCocoaImpl::controlAction( WXWidget WXUNUSED(slf), void *WXUNUSED(_cmd), void *WXUNUSED(sender))
 {
     wxWindow* wxpeer = (wxWindow*) GetWXPeer();
     if ( wxpeer )
     {
-        // because wx expects to be able to veto 
+        // because wx expects to be able to veto
         // a change we must revert the value change
         // and expose it
         int currentValue = [(NSStepper*)m_osxView intValue];
         [(NSStepper*)m_osxView setIntValue:m_formerValue];
         int inc = currentValue-m_formerValue;
-        
+
         // adjust for wrap arounds
         if ( inc > 1 )
             inc = -1;
         else if (inc < -1 )
             inc = 1;
-            
+
         if ( inc == 1 )
             wxpeer->TriggerScrollEvent(wxEVT_SCROLL_LINEUP);
         else if ( inc == -1 )
@@ -93,16 +93,16 @@ void wxSpinButtonCocoaImpl::clickedAction( WXWidget slf, void *_cmd, void *sende
     }
 }
 
-wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer, 
-                                    wxWindowMac* parent, 
-                                    wxWindowID id, 
+wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer,
+                                    wxWindowMac* WXUNUSED(parent),
+                                    wxWindowID WXUNUSED(id),
                                     wxInt32 value,
                                     wxInt32 minimum,
                                     wxInt32 maximum,
-                                    const wxPoint& pos, 
+                                    const wxPoint& pos,
                                     const wxSize& size,
-                                    long style, 
-                                    long extraStyle)
+                                    long style,
+                                    long WXUNUSED(extraStyle))
 {
     NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
     wxNSStepper* v = [[wxNSStepper alloc] initWithFrame:r];
@@ -110,10 +110,10 @@ wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer,
     [v setMinValue: minimum];
     [v setMaxValue: maximum];
     [v setIntValue: value];
-    
+
     if ( style & wxSP_WRAP )
         [v setValueWraps:YES];
-    
+
     wxWidgetCocoaImpl* c = new wxSpinButtonCocoaImpl( wxpeer, v );
     return c;
 }