[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/navigator samples/sample.gpd src/UIwxpytho...
From: |
James Thompson |
Subject: |
gnue/navigator samples/sample.gpd src/UIwxpytho... |
Date: |
Thu, 06 Jun 2002 22:15:38 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: James Thompson <address@hidden> 02/06/06 22:15:38
Modified files:
navigator/samples: sample.gpd
navigator/src : UIwxpython.py
Log message:
Minor updates to sample and new startup page
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/samples/sample.gpd.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/src/UIwxpython.py.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
Patches:
Index: gnue/navigator/samples/sample.gpd
diff -c gnue/navigator/samples/sample.gpd:1.3
gnue/navigator/samples/sample.gpd:1.4
*** gnue/navigator/samples/sample.gpd:1.3 Thu Jun 6 18:07:59 2002
--- gnue/navigator/samples/sample.gpd Thu Jun 6 22:15:38 2002
***************
*** 1,30 ****
<?xml version="1.0"?>
<processes title="Accounting Processes">
<process title="Accounts Payable" id="ap">
<description>
<![CDATA[
<H1><CENTER>Accounts Payable</CENTER></H1>
! This section provides processes related to the accounts payable
systems<br>
! I wish I had something more to write.
! <hr>
! Ok, I guess I do.
]]>
</description>
<step type="form" location="somewhere.gfd"
title="Form Description 1">
<description>
<![CDATA[
! <B>Form Description 1:</B>
! Launches the somewhere.gfd form. If only we had one.
]]>
</description>
</step>
- <step type="form" location="somewhere.gfd"
- title="Form Description 2"/>
<step type="report" location="somereport.grd"
title="Report Description 1">
<parameter value="Y" name="posted"/>
</step>
</process>
<process title="Accounts Receivable" id="ar">
--- 1,63 ----
<?xml version="1.0"?>
<processes title="Accounting Processes">
+ <description>
+ <![CDATA[
+ <H1><CENTER>Accounting Process</CENTER></H1>
+ This sample GNUe Process File(<i>gpd</i>) contains examples of the
various things currently
+ supported by the gpd file format.<p>
+ <hr>
+ If you'd like additional information on GNUe Navigator or GNUe in
general visit
+ <a href="http://www.gnuenterprise.org">
+ ]]>
+ </description>
<process title="Accounts Payable" id="ap">
<description>
<![CDATA[
<H1><CENTER>Accounts Payable</CENTER></H1>
! This section provides launchers for various ficticious forms and
reports for
! an acounts payable department.
]]>
</description>
<step type="form" location="somewhere.gfd"
title="Form Description 1">
<description>
<![CDATA[
! <B>Form Description 1:</B><p>
! Launches the somewhere.gfd form.<p>
! <hr>
! <font size="-2">
! This form doesn't exist in the GNUe Navigator distro so selecting
this entry does nothing. It is simply a place holder.
! </font>
! ]]>
! </description>
! </step>
! <step type="form" location="somewhere2.gfd"
! title="Form Description 2">
! <description>
! <![CDATA[
! <B>Form Description 2:</B><p>
! Launches the somewhere2.gfd form.
! <hr>
! <font size="-2">
! This form doesn't exist in the GNUe Navigator distro so selecting
this entry does nothing. It is simply a place holder.
! </font>
]]>
</description>
</step>
<step type="report" location="somereport.grd"
title="Report Description 1">
<parameter value="Y" name="posted"/>
+ <description>
+ <![CDATA[
+ <B>Report Description 1:</B><p>
+ Launches the report server to generate the somereport.grd form.
+ <hr>
+ <font size="-2">
+ This report doesn't exist in the GNUe Navigator distro so selecting
this entry does nothing. It is simply a place holder.
+ </font>
+ ]]>
+ </description>
</step>
</process>
<process title="Accounts Receivable" id="ar">
Index: gnue/navigator/src/UIwxpython.py
diff -c gnue/navigator/src/UIwxpython.py:1.14
gnue/navigator/src/UIwxpython.py:1.15
*** gnue/navigator/src/UIwxpython.py:1.14 Thu Jun 6 18:08:00 2002
--- gnue/navigator/src/UIwxpython.py Thu Jun 6 22:15:38 2002
***************
*** 35,40 ****
--- 35,41 ----
import os, sys, string
from gnue.common import GDataObjects, GConnections, dyn_import, openResource
from threading import Thread
+ from gnue.common import GConfig
try:
from gnue.forms.GFInstance import GFInstance
***************
*** 43,60 ****
except ImportError:
raise 'GNUe Forms is not installed on your system'
!
class Instance:
def __init__(self, processes):
self.processes = processes
self._formInstances = {}
self._lastSerialNumber = 0
def run(self, connections):
self.connections = connections
app = ui.getWxApp()
self._app = app
! self.frame = wxFrame(NULL, -1, "GNUe Navigator", size=wxSize(500,250))
EVT_CLOSE(self.frame,self.OnClose)
self.menu = MenuBar(self)
--- 44,74 ----
except ImportError:
raise 'GNUe Forms is not installed on your system'
! images_dir = GConfig.getInstalledBase('forms_images','common_images') + '/'
! print images_dir
class Instance:
def __init__(self, processes):
self.processes = processes
self._formInstances = {}
self._lastSerialNumber = 0
+ self.titlePage = """
+ <html>
+ <body>
+ <center>
+ <B>GNUe Navigator</B>
+ <p><img src="%s"></p>
+ <p>A part of the <a href="http://www.gnuenteprise.org/">GNU
Enterprise Project</a></p>
+ </center>
+ </body>
+ </html>
+ """ % (images_dir+"/ship2.png")
+
def run(self, connections):
self.connections = connections
app = ui.getWxApp()
self._app = app
! self.frame = wxFrame(NULL, -1, "GNUe Navigator", size=wxSize(600,400))
EVT_CLOSE(self.frame,self.OnClose)
self.menu = MenuBar(self)
***************
*** 82,89 ****
# Panel 2 contents
self.panel2.SetBackgroundColour(wxWHITE)
- #self.helpText = wxTextCtrl(self.panel2, -1, "Welcome to GNUe Navigator",
style=wxTE_MULTILINE|wxTE_READONLY|wxEXPAND)
self.helpText = wxHtmlWindow(self.panel2, -1)
EVT_SIZE(self.panel1,self.onResize)
EVT_SIZE(self.panel2,self.onResize)
--- 96,103 ----
# Panel 2 contents
self.panel2.SetBackgroundColour(wxWHITE)
self.helpText = wxHtmlWindow(self.panel2, -1)
+ self.helpText.SetPage(self.titlePage)
EVT_SIZE(self.panel1,self.onResize)
EVT_SIZE(self.panel2,self.onResize)
***************
*** 92,98 ****
self.splitter.SetMinimumPaneSize(20)
self.splitter.SplitVertically(self.panel1, self.panel2)
! self.splitter.SetSashPosition(100)
app.MainLoop()
--- 106,112 ----
self.splitter.SetMinimumPaneSize(20)
self.splitter.SplitVertically(self.panel1, self.panel2)
! self.splitter.SetSashPosition(200)
app.MainLoop()