]> git.saurik.com Git - wxWidgets.git/commitdiff
flag checkin'
authorRyan Norton <wxprojects@comcast.net>
Fri, 22 Apr 2005 01:13:45 +0000 (01:13 +0000)
committerRyan Norton <wxprojects@comcast.net>
Fri, 22 Apr 2005 01:13:45 +0000 (01:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/gauge.mm
src/cocoa/spinbutt.mm
src/cocoa/tooltip.mm
src/cocoa/utilsexc.mm

index 1769e1062fdb8c553c02c6cf82c0ddd355ec1e34..3405ae7db51aaf4dc39bb59ce17f54dc71258dbd 100644 (file)
@@ -34,6 +34,12 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID winid, int range,
             const wxPoint& pos, const wxSize& size, long style,
             const wxValidator& validator, const wxString& name)
 {
             const wxPoint& pos, const wxSize& size, long style,
             const wxValidator& validator, const wxString& name)
 {
+    //flag checking
+    wxASSERT_MSG( !(style & wxGA_HORIZONTAL), wxT("Horizontal gauge not supported on cocoa"));//*
+    wxASSERT_MSG( !(style & wxGA_SMOOTH), wxT("Smooth gauge not supported on cocoa"));
+    //* - GNUStep made isVertical and setVertical part of thier framework, but its specific to them
+    //the way they do it is just handle that flag in drawRect.
+
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
     SetNSView([[NSProgressIndicator alloc] initWithFrame: MakeDefaultNSRect(size)]);
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
     SetNSView([[NSProgressIndicator alloc] initWithFrame: MakeDefaultNSRect(size)]);
index 86c8b886af684422be067747ed5bb450e9d79946..a304c38be5be61baca461477ee0e1e409aba6606 100644 (file)
@@ -30,12 +30,14 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID winid,
             const wxPoint& pos, const wxSize& size, long style,
             const wxString& name)
 {
             const wxPoint& pos, const wxSize& size, long style,
             const wxString& name)
 {
+    //bad flag checking
+    wxASSERT_MSG( !(style & wxSP_HORIZONTAL), wxT("Horizontal wxSpinButton not supported in cocoa"));
     if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
         return false;
     SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]);
     [m_cocoaNSView release];
     
     if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
         return false;
     SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]);
     [m_cocoaNSView release];
     
-    //flag handling (note wxSP_HORIZONTAL IS _NOT_ Supported in cocoa)
+    //flag handling
     [(NSStepper*)m_cocoaNSView setValueWraps:style & wxSP_WRAP]; //default == true, evidently
     
     //final setup
     [(NSStepper*)m_cocoaNSView setValueWraps:style & wxSP_WRAP]; //default == true, evidently
     
     //final setup
index fcc9c6e0aa120deb7ade662eff33d569404ace6d..a1eeed486aa98e23c206fda9b720b9a71cb12609 100644 (file)
 
 #import <AppKit/NSView.h>
 
 
 #import <AppKit/NSView.h>
 
+//
+// Private object in AppKit - exists in 10.2 at least -  
+// most likely exists earlier too
+//
 @interface NSToolTipManager : NSObject
 {
 /*
 @interface NSToolTipManager : NSObject
 {
 /*
index a6fa6e499a4e32b3171918b7771795eb2e984b35..13400d029a9e7239b758c7d16656fe0e7ea4cbff 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef WX_PRECOMP
 #endif
 #include "wx/unix/execute.h"
 #ifndef WX_PRECOMP
 #endif
 #include "wx/unix/execute.h"
+#include "wx/utils.h"
 
 #if 0
 
 
 #if 0