johannes | 1 Mar 2007 15:48

[gnue] r9420 - in trunk/gnue-forms/src/uidrivers/curses: . widgets

Author: johannes
Date: 2007-03-01 08:48:39 -0600 (Thu, 01 Mar 2007)
New Revision: 9420

Modified:
   trunk/gnue-forms/src/uidrivers/curses/UIdriver.py
   trunk/gnue-forms/src/uidrivers/curses/dialogs.py
   trunk/gnue-forms/src/uidrivers/curses/widgets/form.py
   trunk/gnue-forms/src/uidrivers/curses/widgets/page.py
Log:
Added File-Selection

issue152 in-progress

Modified: trunk/gnue-forms/src/uidrivers/curses/UIdriver.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/curses/UIdriver.py	2007-02-28 14:10:07 UTC (rev 9419)
+++ trunk/gnue-forms/src/uidrivers/curses/UIdriver.py	2007-03-01 14:48:39 UTC (rev 9420)
 <at>  <at>  -369,6 +369,61  <at>  <at> 
         return (x, y)

     # -------------------------------------------------------------------------
+    # Get a key from keyboard
+    # -------------------------------------------------------------------------
+
+    def get_key(self, window):
+        """
+        Get keyboard input from the given window.  Function keys are returned
+        as curses.KEY_* constant (or a corresponding numeric value).  Other
+        (textual) input is returned as unicode.
(Continue reading)

reinhard | 1 Mar 2007 21:09

[gnue-luca] r24 - in trunk: etc modules/base modules/finance

Author: reinhard
Date: 2007-03-01 14:09:19 -0600 (Thu, 01 Mar 2007)
New Revision: 24

Modified:
   trunk/etc/connections.conf
   trunk/modules/base/base.gcd
   trunk/modules/base/currcalc.gfd
   trunk/modules/finance/acc-main.gfd
Log:
Updated for gnue-forms 0.6.

Modified: trunk/etc/connections.conf
===================================================================
--- trunk/etc/connections.conf	2005-09-01 15:18:02 UTC (rev 23)
+++ trunk/etc/connections.conf	2007-03-01 20:09:19 UTC (rev 24)
 <at>  <at>  -2,7 +2,7  <at>  <at> 

 [gnue]
 comment = GNUe-Luca Test Database
-provider = sqlite2
+provider = sqlite3
 dbname = ./luca.db

 [appserver]

Modified: trunk/modules/base/base.gcd
===================================================================
--- trunk/modules/base/base.gcd	2005-09-01 15:18:02 UTC (rev 23)
+++ trunk/modules/base/base.gcd	2007-03-01 20:09:19 UTC (rev 24)
(Continue reading)

reinhard | 1 Mar 2007 21:23

[gnue-luca] r25 - trunk/bin

Author: reinhard
Date: 2007-03-01 14:23:36 -0600 (Thu, 01 Mar 2007)
New Revision: 25

Added:
   trunk/bin/form-cc
Log:
Added script for currency calculator form.

Added: trunk/bin/form-cc
===================================================================
--- trunk/bin/form-cc	2007-03-01 20:09:19 UTC (rev 24)
+++ trunk/bin/form-cc	2007-03-01 20:23:36 UTC (rev 25)
 <at>  <at>  -0,0 +1,12  <at>  <at> 
+#!/bin/sh
+
+# Prefer CVS versions if available
+if [ "`type -t gcvs`" == "file" ]; then
+  gnue_forms="gfcvs"
+else
+  gnue_forms="gnue-forms"
+fi
+
+${gnue_forms} --connections=etc/connections.conf \
+              $* \
+	      modules/base/currcalc.gfd

Property changes on: trunk/bin/form-cc
___________________________________________________________________
Name: svn:executable
(Continue reading)

johannes | 2 Mar 2007 09:23

[gnue] r9421 - trunk/gnue-forms/src/uidrivers/curses/widgets

Author: johannes
Date: 2007-03-02 02:23:41 -0600 (Fri, 02 Mar 2007)
New Revision: 9421

Modified:
   trunk/gnue-forms/src/uidrivers/curses/widgets/form.py
Log:
Added directory selection

issue152 in-progress

Modified: trunk/gnue-forms/src/uidrivers/curses/widgets/form.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/curses/widgets/form.py	2007-03-01 14:48:39 UTC (rev 9420)
+++ trunk/gnue-forms/src/uidrivers/curses/widgets/form.py	2007-03-02 08:23:41 UTC (rev 9421)
 <at>  <at>  -229,6 +229,30  <at>  <at> 
         return result

     # -------------------------------------------------------------------------
+    # Show a directory selection box
+    # -------------------------------------------------------------------------
+
+    def _ui_select_dir_(self, title, default_dir, new_dir=False):
+        """
+        Bring up a dialog for selecting a directory path.
+
+         <at> param title: Message to show on the dialog
+         <at> param default_dir: the default directory, or the empty string
+         <at> param new_dir: If true, add "Create new directory" button and allow
+            directory names to be editable. On Windows the new directory button
(Continue reading)

johannes | 2 Mar 2007 09:34

[gnue] r9422 - trunk/gnue-forms/src/uidrivers/qt3/widgets

Author: johannes
Date: 2007-03-02 02:34:44 -0600 (Fri, 02 Mar 2007)
New Revision: 9422

Modified:
   trunk/gnue-forms/src/uidrivers/qt3/widgets/box.py
   trunk/gnue-forms/src/uidrivers/qt3/widgets/page.py
Log:
Don't vertically center contents of boxes in positioned layout.  This 
makes sure that entries within neighboring boxes start at the same 
position.

Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/box.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/box.py	2007-03-02 08:23:41 UTC (rev 9421)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/box.py	2007-03-02 08:34:44 UTC (rev 9422)
 <at>  <at>  -53,7 +53,13  <at>  <at> 
         self.widget.setFixedSize(self.chr_w * self._uiDriver.cell_width,
                 self.chr_h * self._uiDriver.cell_height)

-        self.sizer = qt.QGridLayout(self.chr_h, self.chr_w, 2)
+        # Since rows within a QGridLayout are still stretchable if none of them
+        # is set to stretchable, let's add an extra 'stretchable' row.  This
+        # way all others won't stretch and rows within neighboring boxes will
+        # start at the same vertical offsets
+        self.sizer = qt.QGridLayout(self.chr_h + 1, self.chr_w, 2)
+        self.sizer.setRowStretch(self.chr_h, 1)
+
         self._container.layout().addLayout(self.sizer)

(Continue reading)

reinhard | 3 Mar 2007 19:52

[gnue] r9423 - in trunk/gnue-forms: defaults samples

Author: reinhard
Date: 2007-03-03 12:52:46 -0600 (Sat, 03 Mar 2007)
New Revision: 9423

Added:
   trunk/gnue-forms/samples/oldkeys.gfd
Modified:
   trunk/gnue-forms/defaults/default.gfd
Log:
Changed keybindings, added merge-in definition for 0.5 compatibility.

Modified: trunk/gnue-forms/defaults/default.gfd
===================================================================
--- trunk/gnue-forms/defaults/default.gfd	2007-03-02 08:34:44 UTC (rev 9422)
+++ trunk/gnue-forms/defaults/default.gfd	2007-03-03 18:52:46 UTC (rev 9423)
 <at>  <at>  -180,8 +180,8  <at>  <at> 

   <menu name="__main_menu__" label="Main Menu">
     <menu name="__file__" label="&amp;File">
-      <menuitem name="__commit__" action="act__commit__" hotkey="F6"/>
-      <menuitem name="__rollback__" action="act__rollback__" hotkey="F11"/>
+      <menuitem name="__commit__" action="act__commit__" hotkey="ALT+ENTER"/>
+      <menuitem name="__rollback__" action="act__rollback__" hotkey="ALT+BACK"/>
       <menuitem name="__sep0__"/>
       <menuitem name="__printout__" action="act__printout__"
         hotkey="CTRL+P"/>
 <at>  <at>  -196,10 +196,10  <at>  <at> 
         hotkey="CTRL+A"/>
       <menuitem name="__sep0__"/>
       <menuitem name="__new_record__" action="act__new_record__"
(Continue reading)

reinhard | 4 Mar 2007 21:44

[gnue] r9424 - trunk/www/web/faq

Author: reinhard
Date: 2007-03-04 14:44:47 -0600 (Sun, 04 Mar 2007)
New Revision: 9424

Modified:
   trunk/www/web/faq/minifaq.php
Log:
Updated minifaq: Appserver works.

Modified: trunk/www/web/faq/minifaq.php
===================================================================
--- trunk/www/web/faq/minifaq.php	2007-03-03 18:52:46 UTC (rev 9423)
+++ trunk/www/web/faq/minifaq.php	2007-03-04 20:44:47 UTC (rev 9424)
 <at>  <at>  -41,9 +41,9  <at>  <at> 
 <h3>5. Is GNUe Usable now?</h3>

 <p>The short answer is yes.  Forms works in 2-tier mode 
-directly with an SQL database for custom applications.  
-Prepackaged applications are still in the development stage.  
-Multi-tier server is still in development.</p>
+directly with an SQL database or in 3-tier mode using appserver
+for custom applications.  
+Prepackaged applications are still in the development stage.</p>

 <h3>6. What is Free Software?</h3>

kilo | 4 Mar 2007 23:49

[gnue] r9425 - trunk/gnue-forms/defaults/default

Author: kilo
Date: 2007-03-04 16:49:55 -0600 (Sun, 04 Mar 2007)
New Revision: 9425

Modified:
   trunk/gnue-forms/defaults/default/hu.gfd
Log:
Make HU translation more like the standard

Modified: trunk/gnue-forms/defaults/default/hu.gfd
===================================================================
--- trunk/gnue-forms/defaults/default/hu.gfd	2007-03-04 20:44:47 UTC (rev 9424)
+++ trunk/gnue-forms/defaults/default/hu.gfd	2007-03-04 22:49:55 UTC (rev 9425)
 <at>  <at>  -31,7 +31,7  <at>  <at> 
   <action name="act__cut__" label="&amp;Kivágás" description="A kijelölt szöveg kivágása és
vágólapra helyezése." />
   <action name="act__copy__" label="&amp;Másolás" description="A kijelölt szöveg másolása a
vágólapra." />
   <action name="act__paste__" label="&amp;Beillesztés" description="Vágólap tartalmának
beillesztése az adott pozíciótól." />
-  <action name="act__select_all__" label="M&amp;indent kijelöl" description="Teljes
mezőtartalom kijelölése." />
+  <action name="act__select_all__" label="Mind&amp;ent kijelöl" description="Teljes
mezőtartalom kijelölése." />

   <!-- Focus management -->
   <action name="act__next_block__" label="Következő &amp;blokk" description="Ugrás a
következő blokkra." />
 <at>  <at>  -58,17 +58,17  <at>  <at> 
   <action name="act__execute_query__" label="Lekérdezés végrehajtása" description="Szűrés
(Continue reading)

jan | 5 Mar 2007 18:51

[gnue] r9426 - trunk/gnue-common/src/rpc/drivers/xmlrpc

Author: jan
Date: 2007-03-05 11:51:13 -0600 (Mon, 05 Mar 2007)
New Revision: 9426

Modified:
   trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py
Log:
call xmlrpc lib constructor for PersistentTransport (fix for Python2.5)

Modified: trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py	2007-03-04 22:49:55 UTC (rev 9425)
+++ trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py	2007-03-05 17:51:13 UTC (rev 9426)
 <at>  <at>  -52,6 +52,7  <at>  <at> 
   def __init__ (self):

     self.__connection = None
+    xmlrpclib.Transport.__init__(self)

 
   # ---------------------------------------------------------------------------
btami | 6 Mar 2007 13:44

[gnue] r9427 - trunk/gnue-forms/src/uidrivers/win32/widgets/form

Author: btami
Date: 2007-03-06 06:44:22 -0600 (Tue, 06 Mar 2007)
New Revision: 9427

Modified:
   trunk/gnue-forms/src/uidrivers/win32/widgets/form/widget.py
Log:
add dir/file selection dialogs

Modified: trunk/gnue-forms/src/uidrivers/win32/widgets/form/widget.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/win32/widgets/form/widget.py	2007-03-05 17:51:13 UTC (rev 9426)
+++ trunk/gnue-forms/src/uidrivers/win32/widgets/form/widget.py	2007-03-06 12:44:22 UTC (rev 9427)
 <at>  <at>  -34,6 +34,7  <at>  <at> 
 import win32con
 import commctrl
 import win32print
+from win32com.shell import shell

 from PIL import Image, ImageWin, ImageGrab

 <at>  <at>  -136,8 +137,9  <at>  <at> 

         # Add Statusbar, Toolbar and Menubar as requested and/or allowed
         if self._form.style != 'dialog':
-            if not self._form._features['GUI:MENUBAR:SUPPRESS']:
-                MenuBar(self._uiDriver, self.mainWindow, self._form)
+            if not self._form.findChildNamed('__main_menu__', 'GFMenu'):
+                if not self._form._features['GUI:MENUBAR:SUPPRESS']:
+                    MenuBar(self._uiDriver, self.mainWindow, self._form)
(Continue reading)


Gmane