Skip to content

Commit

Permalink
Snowberry: Removed "Configuration" section on Summary tab
Browse files Browse the repository at this point in the history
The Configuration summary was reserved for the display settings. Now that
the display settings are gone, there is no need for such a summary.
  • Loading branch information
skyjake committed Nov 1, 2012
1 parent 7d6ba58 commit ec569df
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 55 deletions.
16 changes: 8 additions & 8 deletions snowberry/conf/doomsday.conf
Expand Up @@ -61,6 +61,14 @@ group display-options
default: no
)

toggle center-window (
option: -center
default: yes
require equals (
run-in-window: yes
)
)

toggle start-in-fullscreen (
option: -fullscreen
default: no
Expand All @@ -69,14 +77,6 @@ group display-options
toggle safe-resolution (
option: -wh 640 480
)

toggle center-window (
option: -center
default: yes
require equals (
run-in-window: yes
)
)
)


Expand Down
16 changes: 8 additions & 8 deletions snowberry/conf/osx-doomsday.conf
Expand Up @@ -65,6 +65,14 @@ group display-options
default: no
)

toggle center-window (
option: -center
default: yes
require equals (
run-in-window: yes
)
)

toggle start-in-fullscreen (
option: -fullscreen
default: no
Expand All @@ -73,14 +81,6 @@ group display-options
toggle safe-resolution (
option: -wh 640 480
)

toggle center-window (
option: -center
default: yes
require equals (
run-in-window: yes
)
)
)


Expand Down
16 changes: 8 additions & 8 deletions snowberry/conf/x-doomsday.conf
Expand Up @@ -60,6 +60,14 @@ group display-options
default: no
)

toggle center-window (
option: -center
default: yes
require equals (
run-in-window: yes
)
)

toggle start-in-fullscreen (
option: -fullscreen
default: no
Expand All @@ -68,14 +76,6 @@ group display-options
toggle safe-resolution (
option: -wh 640 480
)

toggle center-window (
option: -center
default: yes
require equals (
run-in-window: yes
)
)
)


Expand Down
60 changes: 29 additions & 31 deletions snowberry/plugins/tab10_summary.py
Expand Up @@ -75,7 +75,7 @@ def init():
area.setBorder(8, ui.BORDER_ALL)
addonInfo = area.createArea(alignment=ALIGN_HORIZONTAL)
area.setWeight(0)
systemInfo = area.createArea(alignment=ALIGN_HORIZONTAL)
#systemInfo = area.createArea(alignment=ALIGN_HORIZONTAL)
valuesInfo = area.createArea(alignment=ALIGN_HORIZONTAL)

# Information about addons selected into the profile.
Expand All @@ -88,14 +88,14 @@ def init():
addonListing = addonInfo.createText()

# Values for the most important system settings.
systemInfo.setBorder(4, ui.BORDER_LEFT_RIGHT)
systemInfo.setWeight(1)
systemInfo.createText('system-settings', ':', align=wt.Text.RIGHT).setBoldStyle()
systemInfo.setWeight(2)
#systemInfo.setBorder(4, ui.BORDER_LEFT_RIGHT)
#systemInfo.setWeight(1)
#systemInfo.createText('system-settings', ':', align=wt.Text.RIGHT).setBoldStyle()
#systemInfo.setWeight(2)

global systemSummary
systemSummary = systemInfo.createText()
systemSummary.setText('800x600; run in window')
#global systemSummary
#systemSummary = systemInfo.createText()
#systemSummary.setText('800x600; run in window')

# Information about settings that have a value in the profile.
valuesInfo.setBorder(4, ui.BORDER_LEFT_RIGHT)
Expand Down Expand Up @@ -184,11 +184,9 @@ def updateSummary(profile):

# These are displayed in another summary field or shouldn't be
# shown at all.
ignoredValues = ['window-size', 'window-width', 'window-height',
'color-depth', 'run-in-window']

for value in profile.getAllValues():
ignoredValues = [] #'window-size', 'window-width', 'window-height', 'color-depth', 'run-in-window']

for value in profile.getAllValues():
# Don't let the list get too long; there is no scrolling, the
# extra text will just get clipped...
if len(summary) >= 10:
Expand Down Expand Up @@ -226,26 +224,26 @@ def updateSummary(profile):
summary = []

# Begin with the resolution.
value = profile.getValue('window-size')
if value and value.getValue() != 'window-size-custom':
summary.append(language.translate(value.getValue()))
else:
w = profile.getValue('window-width')
h = profile.getValue('window-height')
if w and h:
summary.append(w.getValue() + ' x ' + h.getValue())
#value = profile.getValue('window-size')
#if value and value.getValue() != 'window-size-custom':
# summary.append(language.translate(value.getValue()))
#else:
# w = profile.getValue('window-width')
# h = profile.getValue('window-height')
# if w and h:
# summary.append(w.getValue() + ' x ' + h.getValue())

# Windowed mode is a special case.
value = profile.getValue('run-in-window')
if value and value.getValue() == 'yes':
summary.append(language.translate('summary-run-in-window'))
else:
value = profile.getValue('color-depth')
if value:
summary.append(language.translate('summary-' + \
value.getValue()))

systemSummary.setText(string.join(summary, '\n'))
systemSummary.resizeToBestSize()
#value = profile.getValue('run-in-window')
#if value and value.getValue() == 'yes':
# summary.append(language.translate('summary-run-in-window'))
#else:
# value = profile.getValue('color-depth')
# if value:
# summary.append(language.translate('summary-' + \
# value.getValue()))

#systemSummary.setText(string.join(summary, '\n'))
#systemSummary.resizeToBestSize()

ui.getArea(SUMMARY).updateLayout()

0 comments on commit ec569df

Please sign in to comment.