/////////////////////////////////////////////////////////////////////////////
-// Name: gauge.mm
+// Name: src/osx/cocoa/gauge.mm
// Purpose: wxGauge class
// Author: Stefan Csomor
// Modified by:
@end
+@interface NSView(PossibleSizeMethods)
+- (NSControlSize)controlSize;
+@end
+
+namespace
+{
+
class wxOSXGaugeCocoaImpl : public wxWidgetCocoaImpl
{
public :
[(wxNSProgressIndicator*)m_osxView startAnimation:nil];
}
}
+
+ void GetLayoutInset(int &left , int &top , int &right, int &bottom) const
+ {
+ left = top = right = bottom = 0;
+ NSControlSize size = [(wxNSProgressIndicator*)m_osxView controlSize];
+
+ switch( size )
+ {
+ case NSRegularControlSize:
+ left = right = 2;
+ top = 0;
+ bottom = 4;
+ break;
+ case NSMiniControlSize:
+ case NSSmallControlSize:
+ left = right = 1;
+ top = 0;
+ bottom = 2;
+ break;
+ }
+ }
protected:
void SetDeterminateMode()
{
}
}
};
-
+
+} // anonymous namespace
wxWidgetImplType* wxWidgetImpl::CreateGauge( wxWindowMac* wxpeer,
wxWindowMac* WXUNUSED(parent),