commit-gnue
[Top][All Lists]
Advanced

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

gnue samples/testcases/testrun.gpd forms/src/GF...


From: Jan Ischebeck
Subject: gnue samples/testcases/testrun.gpd forms/src/GF...
Date: Mon, 23 Sep 2002 12:11:22 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jan Ischebeck <address@hidden>  02/09/23 12:11:22

Modified files:
        samples/testcases: testrun.gpd 
        forms/src/GFObjects: GFParameter.py 
        forms/src      : GFForm.py 

Log message:
        * added i18n stuff to testcases/testrun.gpd
        * fixed conditional parameter support in forms
        * add showMessage("") to triggernamespace

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/samples/testcases/testrun.gpd.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFObjects/GFParameter.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFForm.py.diff?tr1=1.176&tr2=1.177&r1=text&r2=text

Patches:
Index: gnue/forms/src/GFForm.py
diff -c gnue/forms/src/GFForm.py:1.176 gnue/forms/src/GFForm.py:1.177
*** gnue/forms/src/GFForm.py:1.176      Mon Sep 23 11:52:37 2002
--- gnue/forms/src/GFForm.py    Mon Sep 23 12:11:22 2002
***************
*** 95,100 ****
--- 95,103 ----
                                'getParameter':{'function':self.getParameter,
                                            'global': 1,
                                            },
+                               'showMessage':{'function':self.showMessageBox,
+                                           'global': 1,
+                                           }
                                }
  
  
***************
*** 174,179 ****
--- 177,190 ----
            self._parameters[param] = rv
            break
      return rv
+ 
+ 
+   #
+   # show a MessageBox from a trigger
+   #
+   def showMessageBox(self,msgtxt):
+     message = GFMsgBox(self, msgtxt)
+     message.show()
  
  
    #
Index: gnue/forms/src/GFObjects/GFParameter.py
diff -c gnue/forms/src/GFObjects/GFParameter.py:1.3 
gnue/forms/src/GFObjects/GFParameter.py:1.4
*** gnue/forms/src/GFObjects/GFParameter.py:1.3 Tue Sep 10 14:35:58 2002
--- gnue/forms/src/GFObjects/GFParameter.py     Mon Sep 23 12:11:22 2002
***************
*** 52,58 ****
    def __init__(self, parent=None):
      GConditions.GCParam.__init__(self, parent)
      self._inits.append(self.initialize)
!     self._type = self._typestub
  
  
    def initialize(self):
--- 52,58 ----
    def __init__(self, parent=None):
      GConditions.GCParam.__init__(self, parent)
      self._inits.append(self.initialize)
!     self._type = "GFCParam"
  
  
    def initialize(self):
Index: gnue/samples/testcases/testrun.gpd
diff -c gnue/samples/testcases/testrun.gpd:1.1 
gnue/samples/testcases/testrun.gpd:1.2
*** gnue/samples/testcases/testrun.gpd:1.1      Thu Sep 19 10:35:01 2002
--- gnue/samples/testcases/testrun.gpd  Mon Sep 23 12:11:22 2002
***************
*** 10,15 ****
--- 10,17 ----
  <DD>test the different functions in trigger code</DD>
  <DT>Case 4: Appserver</DT>
  <DD>test appserver</DD>
+ <DT>Case 5: Internationalisation</DT>
+ <DD>test i18n (i.e. encodings, fonts etc.)</DD>
  </DL>
      ]]></description>
    <process title="Case 1: placement" id="placement">
***************
*** 85,90 ****
--- 87,123 ----
      </step>
      <step type="schema" location="appserver/appservertest.gsd" title="Schema">
        <description><![CDATA[<CENTER><H3>simple GNUe Appserver 
test<BR>(database schema)</H3></CENTER>]]></description>
+     </step>
+   </process>
+   <process title="Case 5: Internationalisation" id="i18n">
+     <description><![CDATA[<H3 ALIGN="CENTER">Internationalisation:</H3><BR>
+ <DL><DT>iso8859-13</DT>
+ <DD>test the display of iso8859-13 encoding</DD>
+ <DL><DT>unicode (utf8)</DT>
+ <DD>test the display of unicode (utf8) encoding</DD>
+ </DL>
+       ]]></description>
+     <step type="form" location="i18n/iso8859-13.gfd" title="iso8859-13">
+       <description><![CDATA[<CENTER><H3>Test iso8859-13 encoding</H3></CENTER>
+ <p>
+ This file represents ISO8859-13 encoding (Lithuanian language). To see the 
form
+ correctly, You will need to set formFontEncoding parameter in gnue.conf to
+ 'iso8859-13' value and to use wx user interface driver (used by default):
+ </p>
+ <pre>
+  # Font encoding to be used in forms
+  formFontEncoding = iso8859-13
+ </pre>
+ <p>Form is not bound to any databse so record addition/deletion/request will 
not
+ work.</p>
+ 
+ ]]></description>
+     </step>
+     <step type="form" location="i18n/utf8.gfd" title="unicode (utf8)">
+       <description><![CDATA[<CENTER><H3>Test unicode (utf8) 
encoding</H3></CENTER>
+ This form has labels written in chinese and is using utf8 as encoding, but it 
doesn't work at the moment due to a missing utf-8 charset in our wxpython 
UIdriver
+ 
+ ]]></description>
      </step>
    </process>
  </processes>




reply via email to

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