commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms doc/techref.lyx samples/helloworld2....


From: James Thompson
Subject: gnue/forms doc/techref.lyx samples/helloworld2....
Date: Sun, 31 Mar 2002 13:21:05 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 02/03/31 13:21:05

Modified files:
        forms/doc      : techref.lyx 
        forms/samples  : helloworld2.gfd 
        forms/src      : GFDisplayHandler.py 

Log message:
        fix for max_length support

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/doc/techref.lyx.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/samples/helloworld2.gfd.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFDisplayHandler.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: gnue/forms/doc/techref.lyx
diff -c gnue/forms/doc/techref.lyx:1.14 gnue/forms/doc/techref.lyx:1.15
*** gnue/forms/doc/techref.lyx:1.14     Sat Mar 30 09:54:18 2002
--- gnue/forms/doc/techref.lyx  Sun Mar 31 13:21:05 2002
***************
*** 2237,2243 ****
  
  
  \begin_inset  Tabular
! <lyxtabular version="2" rows="24" columns="4">
  <features rotate="false" islongtable="false" endhead="0" endfirsthead="0" 
endfoot="0" endlastfoot="0">
  <column alignment="center" valignment="top" leftline="true" rightline="false" 
width="" special="">
  <column alignment="center" valignment="top" leftline="true" rightline="false" 
width="" special="">
--- 2237,2243 ----
  
  
  \begin_inset  Tabular
! <lyxtabular version="2" rows="25" columns="4">
  <features rotate="false" islongtable="false" endhead="0" endfirsthead="0" 
endfoot="0" endlastfoot="0">
  <column alignment="center" valignment="top" leftline="true" rightline="false" 
width="" special="">
  <column alignment="center" valignment="top" leftline="true" rightline="false" 
width="" special="">
***************
*** 2536,2541 ****
--- 2536,2575 ----
  
  \lang english
  The name of the field in the datasource to which this widget is tied.
+ \end_inset 
+ </cell>
+ </row>
+ <row topline="true" bottomline="false" newpage="false">
+ <cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" rotate="false" 
usebox="none" width="" special="">
+ \begin_inset Text
+ 
+ \layout Standard
+ 
+ max_length
+ \end_inset 
+ </cell>
+ <cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" rotate="false" 
usebox="none" width="" special="">
+ \begin_inset Text
+ 
+ \layout Standard
+ 
+ int
+ \end_inset 
+ </cell>
+ <cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" rotate="false" 
usebox="none" width="" special="">
+ \begin_inset Text
+ 
+ \layout Standard
+ 
+ none
+ \end_inset 
+ </cell>
+ <cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="true" rotate="false" 
usebox="none" width="" special="">
+ \begin_inset Text
+ 
+ \layout Standard
+ 
+ The maximum number of characters the user is allowed to enter into the entry.
  \end_inset 
  </cell>
  </row>
Index: gnue/forms/samples/helloworld2.gfd
diff -c gnue/forms/samples/helloworld2.gfd:1.10 
gnue/forms/samples/helloworld2.gfd:1.11
*** gnue/forms/samples/helloworld2.gfd:1.10     Fri Feb  1 00:38:01 2002
--- gnue/forms/samples/helloworld2.gfd  Sun Mar 31 13:21:05 2002
***************
*** 29,35 ****
          <trigger type="PRE-FOCUSOUT" name="Trigger_1" src="HelloWorld"/>
        </entry>
        <label x="1" y="3" name="Label_2" text="Address:"/>
!       <entry name="address1" x="1" y="4" width="20" field="address1"/>
        <entry name="address2" x="1" y="5" width="20" field="address2"/>
        <entry name="address3" x="1" y="6" width="20" field="address3"/>
      </block>
--- 29,35 ----
          <trigger type="PRE-FOCUSOUT" name="Trigger_1" src="HelloWorld"/>
        </entry>
        <label x="1" y="3" name="Label_2" text="Address:"/>
!       <entry name="address1" x="1" y="4" width="20" max_length="5" 
field="address1"/>
        <entry name="address2" x="1" y="5" width="20" field="address2"/>
        <entry name="address3" x="1" y="6" width="20" field="address3"/>
      </block>
Index: gnue/forms/src/GFDisplayHandler.py
diff -c gnue/forms/src/GFDisplayHandler.py:1.16 
gnue/forms/src/GFDisplayHandler.py:1.17
*** gnue/forms/src/GFDisplayHandler.py:1.16     Mon Mar  4 16:23:29 2002
--- gnue/forms/src/GFDisplayHandler.py  Sun Mar 31 13:21:05 2002
***************
*** 153,159 ****
        value = string.upper(event.text)
  
      if hasattr(self.entry,'max_length') and \
!        len(self.work) > self.entry.max_length + len(value):
        return
  
      if ( self.entry._numeric and \
--- 153,159 ----
        value = string.upper(event.text)
  
      if hasattr(self.entry,'max_length') and \
!        len(self.work)  + len(value) > self.entry.max_length:
        return
  
      if ( self.entry._numeric and \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]