]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed name to wxFIXED_MINSIZE since that is more descriptive of what
authorRobin Dunn <robin@alldunn.com>
Wed, 7 Apr 2004 23:06:35 +0000 (23:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 7 Apr 2004 23:06:35 +0000 (23:06 +0000)
it does.  The size can still be changed by the sizer, but it won't
query the minsize if this flag is set.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 files changed:
docs/latex/wx/sizer.tex
include/wx/defs.h
src/common/sizer.cpp
wxPython/demo/IntCtrl.py
wxPython/demo/MaskedNumCtrl.py
wxPython/demo/MimeTypesManager.py
wxPython/src/_core_rename.i
wxPython/src/_defs.i
wxPython/src/gtk/core.py
wxPython/src/gtk/core_wrap.cpp
wxPython/wx/lib/colourchooser/pycolourbox.py
wxPython/wx/lib/colourchooser/pycolourchooser.py
wxPython/wxPython/core.py

index ed306b1efc608edbd1feb6285dbd744f33266f1c..984889707be1e1ee3ff9328e1820b84a85506b2d 100644 (file)
@@ -111,13 +111,13 @@ dependent on the specific kind of sizer used.
 the space allotted to the item.}
 \twocolitem{\windowstyle{wxSHAPED}}{The item will be expanded as much
 as possible while also maintaining its aspect ratio}
-\twocolitem{\windowstyle{wxFIXED\_SIZE}}{Normally wxSizers will use
+\twocolitem{\windowstyle{wxFIXED\_MINSIZE}}{Normally wxSizers will use
   \helpref{GetAdjustedBestSize}{wxwindowgetadjustedbestsize} to
   determin what the minimal size of window items should be, and will
   use that size to calculate the layout.  This allows layouts to
   adjust when an item changes and it's {\it best size} becomes
   different.  If you would rather have a window item stay the size it
-  started with then use wxFIXED\_SIZE.}
+  started with then use wxFIXED\_MINSIZE.}
 \twocolitem{\windowstyle{wxALIGN\_CENTER}\\
 \windowstyle{wxALIGN\_LEFT}\\
 \windowstyle{wxALIGN\_RIGHT}\\
index a10b3763a56c4df9d2501e37f963d49fcbc85214..14e5b97d1c4805f70d70b9ab65cf8ac30143b047 100644 (file)
@@ -1031,7 +1031,7 @@ enum wxStretch
     wxGROW                    = 0x2000,
     wxEXPAND                  = wxGROW,
     wxSHAPED                  = 0x4000,
-    wxFIXED_SIZE              = 0x8000,
+    wxFIXED_MINSIZE           = 0x8000,
     wxTILE                    = 0xc000,
 
     // for compatibility only, default now, don't use explicitly any more
index 06c64979b4a19500ca650d89189c1a5e6c133426..424968309fafd072276dbd06ee5b521d6a4fe684 100644 (file)
@@ -193,7 +193,7 @@ wxSize wxSizerItem::CalcMin()
     }
     else
     {
-        if ( IsWindow() && !(m_flag & wxFIXED_SIZE) )
+        if ( IsWindow() && !(m_flag & wxFIXED_MINSIZE) )
         {
             // the size of the window may change during run-time, we should
             // use the current minimal size
index 8226d1848ade22bd5b2b5883d4282224194b2f7e..7f6b1685757da0fa79c5e4b3a28736f13d9d1932 100644 (file)
@@ -28,10 +28,10 @@ class TestPanel( wx.Panel ):
 
         grid = wx.FlexGridSizer( 0, 2, 0, 0 )
         grid.Add( self.set_min, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
-        grid.Add( self.min, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
+        grid.Add( self.min, 0, wx.FIXED_MINSIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
 
         grid.Add(self.set_max, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
-        grid.Add( self.max, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
+        grid.Add( self.max, 0, wx.FIXED_MINSIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
 
         grid.Add( self.limit_target, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
         grid.Add( (20, 0), 0, wx.ALIGN_LEFT|wx.ALL, 5 )
index 97ccc913e73f2ad44b491077186aaf3bcfa4b33c..e0e4077600da4d75c42b252dea3e91089739f22f 100644 (file)
@@ -79,16 +79,16 @@ value entry ctrl:""")
 
         grid1 = wx.FlexGridSizer( 0, 4, 0, 0 )
         grid1.Add( intlabel, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5)
-        grid1.Add( self.integerwidth, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
+        grid1.Add( self.integerwidth, 0, wx.FIXED_MINSIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
 
         grid1.Add( groupcharlabel, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5)
-        grid1.Add( self.groupchar, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
+        grid1.Add( self.groupchar, 0, wx.FIXED_MINSIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
 
         grid1.Add( fraclabel, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
-        grid1.Add( self.fractionwidth, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
+        grid1.Add( self.fractionwidth, 0, wx.FIXED_MINSIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
 
         grid1.Add( decimalcharlabel, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5)
-        grid1.Add( self.decimalchar, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
+        grid1.Add( self.decimalchar, 0, wx.FIXED_MINSIZE|wx.ALIGN_LEFT|wx.ALL, 5 )
 
         grid1.Add( self.set_min, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
         grid1.Add( self.min, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
index 24b62a3527450858209409f8b90959e5cea3a386..94922d5c3b20e208dda683d62e54b8e99153a0bf 100644 (file)
@@ -46,7 +46,7 @@ class MimeTypesDemoPanel(wx.Panel):
         usizer.Add(t, 0, wx.ALL | wx.ALIGN_CENTER | wx.ALIGN_CENTER_VERTICAL, 2)
 
         self.ext = wx.TextCtrl(self, -1, value="wav", style = wx.TE_PROCESS_ENTER )
-        usizer.Add(self.ext, 0, wx.FIXED_SIZE | wx.ALL | wx.ALIGN_TOP, 4)
+        usizer.Add(self.ext, 0, wx.FIXED_MINSIZE | wx.ALL | wx.ALIGN_TOP, 4)
         self.Bind(wx.EVT_TEXT_ENTER, self.OnLookup, self.ext)
 
         # Select how to look it up
@@ -85,13 +85,13 @@ class MimeTypesDemoPanel(wx.Panel):
         llsizer.Add(t, (0, 0), (1, 1), wx.ALL | wx.EXPAND | wx.ALIGN_CENTER, 2)
 
         self.icon = wx.StaticBitmap(self, -1, images.getNoIconBitmap())
-        llsizer.Add(self.icon, (0, 1), (1, 1), wx.FIXED_SIZE | wx.ALL | wx.ALIGN_CENTER, 2)
+        llsizer.Add(self.icon, (0, 1), (1, 1), wx.FIXED_MINSIZE | wx.ALL | wx.ALIGN_CENTER, 2)
 
         self.iconsource = wx.TextCtrl(self, -1, value="", size=(125, -1), style = wx.TE_READONLY )
         llsizer.Add(self.iconsource, (0, 2), (1, 1), wx.ALL | wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL, 2)
 
         self.iconoffset = wx.TextCtrl(self, -1, value="", size=(25,-1), style = wx.TE_READONLY )
-        llsizer.Add(self.iconoffset, (0, 3), (1, 1), wx.FIXED_SIZE | wx.ALL | wx.ALIGN_CENTER_VERTICAL, 2)
+        llsizer.Add(self.iconoffset, (0, 3), (1, 1), wx.FIXED_MINSIZE | wx.ALL | wx.ALIGN_CENTER_VERTICAL, 2)
 
         #------- MIME Type
 
index 3e6027cbad6d42040c84cc764715d921eb0f75cb..cc468375df45a3eb6cf9e745f7c16e23c51753d1 100644 (file)
 %rename(GROW)                               wxGROW;
 %rename(EXPAND)                             wxEXPAND;
 %rename(SHAPED)                             wxSHAPED;
-%rename(FIXED_SIZE)                         wxFIXED_SIZE;
+%rename(FIXED_MINSIZE)                      wxFIXED_MINSIZE;
 %rename(TILE)                               wxTILE;
 %rename(ADJUST_MINSIZE)                     wxADJUST_MINSIZE;
 %rename(BORDER_DEFAULT)                     wxBORDER_DEFAULT;
index c0b251404b2e4aa91b7d0bfb9a943a5ef47e646f..9c11aded5768f364a1f70cd3e8ec38bf61493dc7 100644 (file)
@@ -609,7 +609,7 @@ enum wxStretch
     wxGROW,
     wxEXPAND,
     wxSHAPED,
-    wxFIXED_SIZE,
+    wxFIXED_MINSIZE,
     wxTILE,
     wxADJUST_MINSIZE,
 };
index d9fa992c285df44a2b769271dd62e572c499f959..296206f5e5d4cc3c6ac0d150c5570395c86d4557 100644 (file)
@@ -285,7 +285,7 @@ SHRINK = _core.SHRINK
 GROW = _core.GROW
 EXPAND = _core.EXPAND
 SHAPED = _core.SHAPED
-FIXED_SIZE = _core.FIXED_SIZE
+FIXED_MINSIZE = _core.FIXED_MINSIZE
 TILE = _core.TILE
 ADJUST_MINSIZE = _core.ADJUST_MINSIZE
 BORDER_DEFAULT = _core.BORDER_DEFAULT
index 264627c9f53b3db2e47560d7e421b41ac89232b8..890f06542787e341eb5fbaa02524febf831d17d4 100644 (file)
@@ -42241,7 +42241,7 @@ SWIGEXPORT(void) SWIG_init(void) {
     PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
     PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
     PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
-    PyDict_SetItemString(d,"FIXED_SIZE", SWIG_FromInt((int)wxFIXED_SIZE));
+    PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
     PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
     PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
     PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
index 90117a198b4d6c6c848e71777d1768b0e0c1386d..a1108c7b1c13be07b7acc7fa6dc20f59ca11efa9 100644 (file)
@@ -38,7 +38,7 @@ class PyColourBox(wx.Panel):
         self.colour_box = wx.Window(self, -1, style=wx.SIMPLE_BORDER)
 
         sizer = wx.GridSizer(1, 1)
-        sizer.Add(self.colour_box, 0, wx.FIXED_SIZE | wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL)
+        sizer.Add(self.colour_box, 0, wx.FIXED_MINSIZE | wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_CENTER_HORIZONTAL)
         sizer.SetItemMinSize(self.colour_box, size[0] - 5, size[1] - 5)
         self.SetAutoLayout(True)
         self.SetSizer(sizer)
index 763777a35c5705d8328edc551cf1a61b07f63844..295698896d41d149bf346688a07e0f943159a893 100644 (file)
@@ -202,9 +202,9 @@ class PyColourChooser(wx.Panel):
         self.ventry.SetSize((40, -1))
         hsvgrid = wx.FlexGridSizer(1, 6, 2, 2)
         hsvgrid.AddMany ([
-            (hlabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.hentry, 0, wx.FIXED_SIZE),
-            (slabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.sentry, 0, wx.FIXED_SIZE),
-            (vlabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.ventry, 0, wx.FIXED_SIZE),
+            (hlabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.hentry, 0, wx.FIXED_MINSIZE),
+            (slabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.sentry, 0, wx.FIXED_MINSIZE),
+            (vlabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.ventry, 0, wx.FIXED_MINSIZE),
         ])
 
         rlabel = wx.StaticText(self, -1, _("R:"))
@@ -218,9 +218,9 @@ class PyColourChooser(wx.Panel):
         self.bentry.SetSize((40, -1))
         lgrid = wx.FlexGridSizer(1, 6, 2, 2)
         lgrid.AddMany([
-            (rlabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.rentry, 0, wx.FIXED_SIZE),
-            (glabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.gentry, 0, wx.FIXED_SIZE),
-            (blabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.bentry, 0, wx.FIXED_SIZE),
+            (rlabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.rentry, 0, wx.FIXED_MINSIZE),
+            (glabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.gentry, 0, wx.FIXED_MINSIZE),
+            (blabel, 0, wx.ALIGN_CENTER_VERTICAL), (self.bentry, 0, wx.FIXED_MINSIZE),
         ])
 
         gsizer = wx.GridSizer(2, 1)
index 879217de7e44fc859c53cf716b649659c4b1b8c5..507b5cc74f328433552f2d278ef36757c4e504a5 100644 (file)
@@ -292,7 +292,7 @@ wxSHRINK = wx.core.SHRINK
 wxGROW = wx.core.GROW
 wxEXPAND = wx.core.EXPAND
 wxSHAPED = wx.core.SHAPED
-wxFIXED_SIZE = wx.core.FIXED_SIZE
+wxFIXED_MINSIZE = wx.core.FIXED_MINSIZE
 wxTILE = wx.core.TILE
 wxADJUST_MINSIZE = wx.core.ADJUST_MINSIZE
 wxBORDER_DEFAULT = wx.core.BORDER_DEFAULT