summaryrefslogtreecommitdiff
path: root/addons/base_setup/wizard/wizard_base_setup.py
diff options
context:
space:
mode:
authorced <>2007-08-06 08:24:21 +0000
committerced <>2007-08-06 08:24:21 +0000
commit1f15c876ce2f091b20f18cff9aa9b99e0f0c37f5 (patch)
tree967e9bfb87949d3e0b2e216593b0a348b0e31aaa /addons/base_setup/wizard/wizard_base_setup.py
parentc89f5f515e840647bb5fb3e90f9d0d9551f022b8 (diff)
base,base_setup: improve wizard
- use gtk-dialog-info instead of gtk-info - set default action bzr revid: ced-c606baf6f23824c6d979205986fab4deb0839183
Diffstat (limited to 'addons/base_setup/wizard/wizard_base_setup.py')
-rw-r--r--addons/base_setup/wizard/wizard_base_setup.py66
1 files changed, 45 insertions, 21 deletions
diff --git a/addons/base_setup/wizard/wizard_base_setup.py b/addons/base_setup/wizard/wizard_base_setup.py
index 702ad8e6cca..4b645e2b448 100644
--- a/addons/base_setup/wizard/wizard_base_setup.py
+++ b/addons/base_setup/wizard/wizard_base_setup.py
@@ -34,7 +34,7 @@ import os
view_form_profit = """<?xml version="1.0"?>
<form string="Setup">
- <image name="gtk-info"/>
+ <image name="gtk-dialog-info"/>
<group>
<separator string="Select a profile" colspan="2"/>
<newline/>
@@ -48,7 +48,7 @@ view_form_profit = """<?xml version="1.0"?>
view_form_charts = """<?xml version="1.0"?>
<form string="Setup">
- <image name="gtk-info" size="64" colspan="2"/>
+ <image name="gtk-dialog-info" colspan="2"/>
<group>
<separator string="Select a chart of accounts" colspan="2"/>
<newline/>
@@ -62,7 +62,7 @@ view_form_charts = """<?xml version="1.0"?>
view_form_company = """<?xml version="1.0"?>
<form string="Setup">
- <image name="gtk-info" size="64" colspan="2"/>
+ <image name="gtk-dialog-info" colspan="2"/>
<group>
<separator string="Define main company" colspan="4"/>
<newline/>
@@ -87,7 +87,7 @@ view_form_company = """<?xml version="1.0"?>
view_form_update = """<?xml version="1.0"?>
<form string="Setup">
- <image name="gtk-info" size="64" colspan="2"/>
+ <image name="gtk-dialog-info" colspan="2"/>
<group>
<separator string="Summary" colspan="2"/>
<newline/>
@@ -102,7 +102,7 @@ view_form_update = """<?xml version="1.0"?>
view_form_finish = """<?xml version="1.0"?>
<form string="Setup">
- <image name="gtk-info" size="64" colspan="2"/>
+ <image name="gtk-dialog-info" colspan="2"/>
<group colspan="2" col="4">
<separator colspan="4" string="Installation done"/>
<label align="0.0" colspan="4" string="Your new database is now fully installed."/>
@@ -353,36 +353,60 @@ class wizard_base_setup(wizard.interface):
}
states={
'init':{
- 'actions':[_get_company],
- 'result':{'type':'form', 'arch':view_form_profit, 'fields':fields, 'state':[('menu', 'Cancel', 'gtk-cancel'), ('next', 'Next', 'gtk-go-forward')]}
+ 'actions': [_get_company],
+ 'result': {'type': 'form', 'arch': view_form_profit, 'fields': fields,
+ 'state': [
+ ('menu', 'Cancel', 'gtk-cancel'),
+ ('next', 'Next', 'gtk-go-forward', True)
+ ]
+ }
},
'next': {
- 'actions':[],
- 'result':{'type':'choice', 'next_state': _next}
+ 'actions': [],
+ 'result': {'type': 'choice', 'next_state': _next}
},
'charts':{
- 'actions':[],
- 'result':{'type':'form', 'arch':view_form_charts, 'fields':fields, 'state':[('init', 'Previous', 'gtk-go-back'), ('company', 'Next', 'gtk-go-forward')]}
+ 'actions': [],
+ 'result': {'type': 'form', 'arch': view_form_charts, 'fields': fields,
+ 'state':[
+ ('init', 'Previous', 'gtk-go-back'),
+ ('company', 'Next', 'gtk-go-forward', True)
+ ]
+ }
},
'company':{
- 'actions':[],
- 'result':{'type':'form', 'arch':view_form_company, 'fields':fields, 'state':[('previous', 'Previous', 'gtk-go-back'), ('update', 'Next', 'gtk-go-forward')]}
+ 'actions': [],
+ 'result': {'type': 'form', 'arch': view_form_company, 'fields': fields,
+ 'state': [
+ ('previous', 'Previous', 'gtk-go-back'),
+ ('update', 'Next', 'gtk-go-forward', True)
+ ]
+ }
},
'previous':{
- 'actions':[],
- 'result':{'type':'choice', 'next_state': _previous}
+ 'actions': [],
+ 'result': {'type': 'choice', 'next_state': _previous}
},
'update':{
- 'actions':[],
- 'result':{'type':'form', 'arch':view_form_update, 'fields':fields, 'state':[('company', 'Previous', 'gtk-go-back'), ('finish', 'Install', 'gtk-ok')]}
+ 'actions': [],
+ 'result': {'type': 'form', 'arch': view_form_update, 'fields': fields,
+ 'state': [
+ ('company', 'Previous', 'gtk-go-back'),
+ ('finish', 'Install', 'gtk-ok', True)
+ ]
+ }
},
'finish':{
- 'actions':[_update],
- 'result':{'type':'form', 'arch':view_form_finish, 'fields':{}, 'state':[('menu', 'Ok', 'gtk-ok')]}
+ 'actions': [_update],
+ 'result': {'type': 'form', 'arch': view_form_finish, 'fields': {},
+ 'state': [
+ ('menu', 'Ok', 'gtk-ok', True)
+ ]
+ }
},
'menu': {
- 'actions':[],
- 'result':{'type':'action', 'action':_menu, 'state':'end'}
+ 'actions': [],
+ 'result': {'type': 'action', 'action': _menu, 'state': 'end'}
}
}
wizard_base_setup('base_setup.base_setup')