/[gli]/branches/overhaul/src/fe/gtk/gtkfe.py
Gentoo

Diff of /branches/overhaul/src/fe/gtk/gtkfe.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1622 Revision 1623
10 10
11import GLIInstallProfile 11import GLIInstallProfile
12import GLIClientController 12import GLIClientController
13import GLIUtility 13import GLIUtility
14from GLIFutureBar import GLIFutureBar 14from GLIFutureBar import GLIFutureBar
15from HelpDialog import HelpDialog 15#from HelpDialog import HelpDialog
16from SplashScreen import SplashScreen 16from SplashScreen import SplashScreen
17import gtk 17import gtk
18import pango 18import pango
19import gobject 19import gobject
20import crypt 20import crypt
27class Installer: 27class Installer:
28 28
29 SHOW_BUTTON_FINISH = 1 29 SHOW_BUTTON_FINISH = 1
30 SHOW_BUTTON_FORWARD = 1 30 SHOW_BUTTON_FORWARD = 1
31 SHOW_BUTTON_BACK = 1 31 SHOW_BUTTON_BACK = 1
32 SHOW_BUTTON_HELP = 1 32# SHOW_BUTTON_HELP = 1
33 SHOW_BUTTON_EXIT = 1 33 SHOW_BUTTON_EXIT = 1
34 install_profile_xml_file = "" 34 install_profile_xml_file = ""
35 install_window = None 35 install_window = None
36 install_type = "standard" 36 install_type = "standard"
37 37
38 menuItems = [ { 'text': _('Welcome'), 'module': __import__("Welcome") }, 38 menuItems = [ { 'text': _('Welcome'), 'module': __import__("Welcome") },
39# { 'text': _('Pre-install Config'), 'module': __import__("ClientConfig") }, 39# { 'text': _('Pre-install Config'), 'module': __import__("ClientConfig") },
40 { 'text': _('Partitioning'), 'module': __import__("Partition") }, 40 { 'text': _('Partitioning'), 'module': __import__("Partition") },
41 { 'text': _('Network Mounts'), 'module': __import__("NetworkMounts") }, 41# { 'text': _('Network Mounts'), 'module': __import__("NetworkMounts") },
42 { 'text': _('Stage'), 'module': __import__("Stage") }, 42 { 'text': _('Stage'), 'module': __import__("Stage") },
43 { 'text': _('Portage tree'), 'module': __import__("PortageTree") }, 43 { 'text': _('Portage tree'), 'module': __import__("PortageTree") },
44 { 'text': _('make.conf'), 'module': __import__("MakeDotConf") }, 44 { 'text': _('make.conf'), 'module': __import__("MakeDotConf") },
45 { 'text': _('Kernel'), 'module': __import__("Kernel") }, 45 { 'text': _('Kernel'), 'module': __import__("Kernel") },
46 { 'text': _('Bootloader'), 'module': __import__("Bootloader") }, 46 { 'text': _('Bootloader'), 'module': __import__("Bootloader") },
146 self.right_pane_box.set_show_tabs(False) 146 self.right_pane_box.set_show_tabs(False)
147 self.right_pane_box.set_show_border(False) 147 self.right_pane_box.set_show_border(False)
148 self.rightframe.add(self.right_pane_box) 148 self.rightframe.add(self.right_pane_box)
149 149
150 buttons_info = [ ('exit', _(" _Exit "), '/button_images/stock_exit.png', self.exit_button, 'start'), 150 buttons_info = [ ('exit', _(" _Exit "), '/button_images/stock_exit.png', self.exit_button, 'start'),
151 ('help', _(" _Help "), '/button_images/stock_help.png', self.help, 'start'), 151# ('help', _(" _Help "), '/button_images/stock_help.png', self.help, 'start'),
152 ('load', _(" _Load "), '/button_images/stock_open.png', self.load_button, 'start'), 152 ('load', _(" _Load "), '/button_images/stock_open.png', self.load_button, 'start'),
153 ('save', _(" _Save "), '/button_images/stock_save.png', self.save_button, 'start'), 153 ('save', _(" _Save "), '/button_images/stock_save.png', self.save_button, 'start'),
154 ('finish', _(" _Install "), '/button_images/stock_exec.png', self.finish, 'end'), 154 ('finish', _(" _Install "), '/button_images/stock_exec.png', self.finish, 'end'),
155 ('forward', _(" _Forward "), '/button_images/stock_right.png', self.forward, 'end'), 155 ('forward', _(" _Forward "), '/button_images/stock_right.png', self.forward, 'end'),
156 ('back', _(" _Back "), '/button_images/stock_left.png', self.back, 'end') 156 ('back', _(" _Back "), '/button_images/stock_left.png', self.back, 'end')
202 def redraw_buttons(self): 202 def redraw_buttons(self):
203 self.bottombox.hide_all() 203 self.bottombox.hide_all()
204 self.buttons['finish'].set_sensitive(self.SHOW_BUTTON_FINISH) 204 self.buttons['finish'].set_sensitive(self.SHOW_BUTTON_FINISH)
205 self.buttons['forward'].set_sensitive(self.SHOW_BUTTON_FORWARD) 205 self.buttons['forward'].set_sensitive(self.SHOW_BUTTON_FORWARD)
206 self.buttons['back'].set_sensitive(self.SHOW_BUTTON_BACK) 206 self.buttons['back'].set_sensitive(self.SHOW_BUTTON_BACK)
207 self.buttons['help'].set_sensitive(self.SHOW_BUTTON_HELP) 207# self.buttons['help'].set_sensitive(self.SHOW_BUTTON_HELP)
208 self.buttons['exit'].set_sensitive(self.SHOW_BUTTON_EXIT) 208 self.buttons['exit'].set_sensitive(self.SHOW_BUTTON_EXIT)
209 if self.SHOW_BUTTON_FORWARD: 209 if self.SHOW_BUTTON_FORWARD:
210 self.buttons['forward'].set_flags(gtk.CAN_DEFAULT) 210 self.buttons['forward'].set_flags(gtk.CAN_DEFAULT)
211 self.buttons['forward'].grab_default() 211 self.buttons['forward'].grab_default()
212 elif self.SHOW_BUTTON_FINISH: 212 elif self.SHOW_BUTTON_FINISH:

Legend:
Removed from v.1622  
changed lines
  Added in v.1623

  ViewVC Help
Powered by ViewVC 1.1.20