[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/navigator/src GNClient.py Actions/__init__...
From: |
Jason Cater |
Subject: |
gnue/navigator/src GNClient.py Actions/__init__... |
Date: |
Tue, 08 Jan 2002 23:57:42 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/08 23:57:41
Modified files:
navigator/src : GNClient.py
Added files:
navigator/src/Actions: __init__.py gnome_menu.py kde_menu.py
Log message:
Implemented --install-kde-menu and --install-gnome-menu functionality
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/navigator/src/GNClient.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/navigator/src/Actions/__init__.py?cvsroot=OldCVS&rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/navigator/src/Actions/gnome_menu.py?cvsroot=OldCVS&rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/navigator/src/Actions/kde_menu.py?cvsroot=OldCVS&rev=1.1
Patches:
Index: gnue/navigator/src/GNClient.py
diff -c gnue/navigator/src/GNClient.py:1.2 gnue/navigator/src/GNClient.py:1.3
*** gnue/navigator/src/GNClient.py:1.2 Tue Jan 8 19:07:36 2002
--- gnue/navigator/src/GNClient.py Tue Jan 8 23:57:40 2002
***************
*** 35,40 ****
--- 35,41 ----
import string
from gnue.navigator.GNParser import loadProcesses
+ from gnue.navigator import Actions
from gnue.common import GDebug, openResource
from gnue.common import GConfig, GDataObjects, GConnections
from gnue.common.GClientApp import *
***************
*** 53,59 ****
'The currently supported values for <type> are ' \
+ 'gui, text, and curses' ],
[ 'splash_screen','s','no-splash', 0, None, None,
! 'Disables the splash screen']
]
SUMMARY = \
"GNUe Navigator is the primary menuing interface to the GNU Enterprise
system."
--- 54,64 ----
'The currently supported values for <type> are ' \
+ 'gui, text, and curses' ],
[ 'splash_screen','s','no-splash', 0, None, None,
! 'Disables the splash screen'],
! [ 'gnome_menu',None,'install-gnome-menu', 0, None, None,
! 'Installs a menu structure into your local GNOME session'],
! [ 'kde_menu',None,'install-kde-menu', 0, None, None,
! 'Installs a menu structure into your local KDE session']
]
SUMMARY = \
"GNUe Navigator is the primary menuing interface to the GNU Enterprise
system."
***************
*** 93,98 ****
--- 98,122 ----
self.handleStartupError ("No Process Definition File Specified.")
+ fileHandle = openResource(processFile)
+ nav = loadProcesses (fileHandle)
+ fileHandle.close()
+
+
+
+ # Handle any action commands
+ if self.OPTIONS['kde_menu']:
+ from Actions import kde_menu
+ kde_menu.run(nav, self.ARGUMENTS[1:])
+ sys.exit()
+
+ if self.OPTIONS['gnome_menu']:
+ from Actions import gnome_menu
+ gnome_menu.run(nav, self.ARGUMENTS[1:])
+ sys.exit()
+
+
+
# Initialize user interface (defaults to gui)
# If the DISPLAY var isn't set then switch to text
if self.ui_type == 'gui':
***************
*** 103,112 ****
if self.ui_type == 'text' :
import UItext as interface
-
- fileHandle = openResource(processFile)
- nav = loadProcesses (fileHandle)
- fileHandle.close()
# TODO: Um, reuse Form's UI :)
--- 127,132 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/navigator/src GNClient.py Actions/__init__...,
Jason Cater <=