diff options
author | Eugene Sandulenko | 2006-03-09 12:45:23 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-09 12:45:23 +0000 |
commit | cd732d680bf251458fe8c22e8694e2475e3b2927 (patch) | |
tree | 89449cc6aa954ae56a6ca4bd992f9ab2472be7ca | |
parent | 671450fcb84ab526a74fa58c08247ae8d5255310 (diff) | |
download | scummvm-rg350-cd732d680bf251458fe8c22e8694e2475e3b2927.tar.gz scummvm-rg350-cd732d680bf251458fe8c22e8694e2475e3b2927.tar.bz2 scummvm-rg350-cd732d680bf251458fe8c22e8694e2475e3b2927.zip |
Fix compilation on MSVC. Reported by Quietust
svn-id: r21165
-rw-r--r-- | gui/theme-config.cpp | 648 |
1 files changed, 324 insertions, 324 deletions
diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index e6b5e53f30..fe70359cbb 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -24,330 +24,330 @@ namespace GUI { -const char *Theme::_defaultConfigINI = "\n\ -# Define our classic greenish theme here\n\ -[320xY]\n\ -def_widgetSize=kNormalWidgetSize\n\ -def_buttonWidth=kButtonWidth\n\ -def_buttonHeight=kButtonHeight\n\ -def_sliderWidth=kSliderWidth\n\ -def_sliderHeight=kSliderHeight\n\ -def_kLineHeight=12\n\ -def_kFontHeight=10\n\ -def_globOptionsW=(w - 2 * 10)\n\ -def_globOptionsH=(h - 1 * 40)\n\ -def_gameOptionsH=(h - 2 * 30)\n\ -def_gameOptionsLabelWidth=60\n\ -def_tabPopupsLabelW=100\n\ -def_aboutXOff=3\n\ -def_aboutYOff=2\n\ -def_aboutOuterBorder=10\n\ -def_scummmainHOffset=8\n\ -def_scummmainVSpace=5\n\ -def_scummmainVAddOff=2\n\ -def_scummmainButtonWidth=90\n\ -def_scummmainButtonHeight=16\n\ -def_scummhelpX=5\n\ -def_scummhelpW=(w - 2 * 5)\n\ -def_midiControlsSpacing=1\n\ -use=XxY\n\ -\n\ -[XxY]\n\ -def_widgetSize=kBigWidgetSize\n\ -def_buttonWidth=kBigButtonWidth\n\ -def_buttonHeight=kBigButtonHeight\n\ -def_sliderWidth=kBigSliderWidth\n\ -def_sliderHeight=kBigSliderHeight\n\ -def_kLineHeight=16\n\ -def_kFontHeight=14\n\ -def_globOptionsW=(w - 2 * 10)\n\ -def_globOptionsH=(h - 2 * 40)\n\ -def_gameOptionsH=(h - 2 * 40)\n\ -def_gameOptionsLabelWidth=90\n\ -def_tabPopupsLabelW=150\n\ -def_aboutXOff=8\n\ -def_aboutYOff=5\n\ -def_aboutOuterBorder=80\n\ -def_scummmainHOffset=12\n\ -def_scummmainVSpace=7\n\ -def_scummmainVAddOff=3\n\ -def_scummmainButtonWidth=160\n\ -def_scummmainButtonHeight=28\n\ -def_scummhelpW=370\n\ -def_scummhelpX=((w - scummhelpW) / 2)\n\ -def_midiControlsSpacing=2\n\ -\n\ -###### chooser\n\ -opHeight=(h * 7 / 10)\n\ -useWithPrefix=chooser defaultChooser_\n\ -\n\ -##### browser\n\ -brW=((w * 7) / 8)\n\ -brH=((h * 9) / 10)\n\ -browser=((w - brW) / 2) ((h - brH) / 2) brW brH\n\ -set_parent=browser\n\ -browser_headline=10 kLineHeight (parent.w - 2 * 10) kLineHeight\n\ -browser_path=10 prev.y2 prev.w prev.h\n\ -browser_list=10 prev.y2 prev.w (parent.h - 3 * kLineHeight - buttonHeight - 14)\n\ -browser_up=10 (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n\ -browser_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n\ -browser_choose=(prev.x2 + 10) prev.y prev.w prev.h\n\ -\n\ -##### launcher\n\ -hBorder=10\n\ -launcher_version=hBorder 8 (w - 2 * hBorder) kLineHeight\n\ -top=(h - 8 - buttonHeight)\n\ -numButtons=4\n\ -space=8\n\ -butWidth=((w - 2 * hBorder - space * (numButtons - 1)) / numButtons)\n\ -launcher_quit_button=hBorder top butWidth buttonHeight\n\ -launcher_about_button=(prev.x2 + space) prev.y prev.w prev.h\n\ -launcher_options_button=(prev.x2 + space) prev.y prev.w prev.h\n\ -launcher_start_button=(prev.x2 + space) prev.y prev.w prev.h\n\ -top=(top - buttonHeight * 2)\n\ -numButtons=3\n\ -space=10\n\ -butWidth=((w - 2 * hBorder - space * (numButtons - 1)) / numButtons)\n\ -launcher_addGame_button=hBorder top butWidth buttonHeight\n\ -launcher_editGame_button=(prev.x2 + space) prev.y prev.w prev.h\n\ -launcher_removeGame_button=(prev.x2 + space) prev.y prev.w prev.h\n\ -launcher_list=hBorder (kLineHeight + 16) (w - 2 * hBorder) (top - kLineHeight - 20)\n\ -\n\ -### global options\n\ -globaloptions=10 40 globOptionsW globOptionsH\n\ -set_parent=globaloptions\n\ -vBorder=5\n\ -globaloptions_tabwidget=0 vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder)\n\ -\n\ -# graphics tab\n\ -opYoffset=vBorder\n\ -useWithPrefix=graphicsControls globaloptions_\n\ -\n\ -# audio tab\n\ -opYoffset=vBorder\n\ -useWithPrefix=audioControls globaloptions_\n\ -useWithPrefix=volumeControls globaloptions_\n\ -\n\ -# MIDI tab\n\ -opYoffset=vBorder\n\ -useWithPrefix=midiControls globaloptions_\n\ -\n\ -# paths tab\n\ -yoffset=vBorder\n\ -globaloptions_savebutton=5 yoffset (buttonWidth + 5) buttonHeight\n\ -globaloptions_savepath=(prev.x2 + 20) (vBorder + 3) (parent.w - (prev.w + 20) - 10) kLineHeight\n\ -yoffset=(yoffset + buttonHeight + 4)\n\ -globaloptions_extrabutton=5 yoffset (buttonWidth + 5) buttonHeight\n\ -globaloptions_extrapath=(prev.x2 + 20) (vBorder + 3) (parent.w - (prev.w + 20) - 10) kLineHeight\n\ -yoffset=(yoffset + buttonHeight + 4)\n\ -globaloptions_keysbutton=5 yoffset (buttonWidth + 5) buttonHeight\n\ -\n\ -globaloptions_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n\ -globaloptions_ok=(prev.x2 + 10) prev.y prev.w prev.h\n\ -\n\ -### game options\n\ -gameoptions=10 40 (w - 2 * 10) gameOptionsH\n\ -set_parent=gameoptions\n\ -vBorder=5\n\ -gox=5\n\ -gow=(parent.w - 15)\n\ -\n\ -gameoptions_tabwidget=0 vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder)\n\ -\n\ -# game tab\n\ -opYoffset=vBorder\n\ -gameoptions_id=gox (opYoffset + 2) gameOptionsLabelWidth kLineHeight\n\ -gameoptions_domain=prev.x2 (prev.y - 1) (parent.w - gameOptionsLabelWidth - 10 - gox) (prev.h + 2)\n\ -opYoffset=(opYoffset + prev.h + 3)\n\ -gameoptions_name=gox (opYoffset + 2) gameOptionsLabelWidth kLineHeight\n\ -gameoptions_desc=prev.x2 (prev.y - 1) (parent.w - gameOptionsLabelWidth - 10 - gox) (prev.h + 2)\n\ -opYoffset=(opYoffset + prev.h + 3)\n\ -gameoptions_lang=gox (opYoffset - 1) gow (kLineHeight + 2)\n\ -opYoffset=(opYoffset + prev.h + 4)\n\ -gameoptions_platform=prev.x opYoffset prev.w prev.h\n\ -opYoffset=(opYoffset + prev.h + 4)\n\ -\n\ -# paths tab\n\ -opYoffset=vBorder\n\ -goOff=((buttonHeight - kLineHeight) / 2 + 2)\n\ -gameoptions_gamepath=gox opYoffset (buttonWidth + 5) buttonHeight\n\ -gameoptions_gamepathText=(prev.x2 + 20) (opYoffset + goOff) (parent.w - self.x - 10) kLineHeight\n\ -opYoffset=(opYoffset + buttonHeight + 4)\n\ -gameoptions_extrapath=gox opYoffset (buttonWidth + 5) buttonHeight\n\ -gameoptions_extrapathText=(prev.x2 + 20) (opYoffset + goOff) (parent.w - self.x - 10) kLineHeight\n\ -opYoffset=(opYoffset + buttonHeight + 4)\n\ -gameoptions_savepath=gox opYoffset (buttonWidth + 5) buttonHeight\n\ -gameoptions_savepathText=(prev.x2 + 20) (opYoffset + goOff) (parent.w - self.x - 10) kLineHeight\n\ -opYoffset=(opYoffset + buttonHeight + 4)\n\ -\n\ -# graphics tab\n\ -opYoffset=vBorder\n\ -gameoptions_graphicsCheckbox=gox opYoffset (kFontHeight + 10 + 192) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -useWithPrefix=graphicsControls gameoptions_\n\ -\n\ -# audio tab\n\ -opYoffset=vBorder\n\ -gameoptions_audioCheckbox=gox opYoffset (kFontHeight + 10 + 180) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -useWithPrefix=audioControls gameoptions_\n\ -\n\ -# midi tab\n\ -opYoffset=vBorder\n\ -gameoptions_midiCheckbox=gox opYoffset (kFontHeight + 10 + 174) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -useWithPrefix=midiControls gameoptions_\n\ -\n\ -# volume tab\n\ -opYoffset=vBorder\n\ -gameoptions_volumeCheckbox=gox opYoffset (kFontHeight + 10 + 189) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -useWithPrefix=volumeControls gameoptions_\n\ -\n\ -gameoptions_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n\ -gameoptions_ok=(prev.x2 + 10) prev.y prev.w prev.h\n\ -\n\ -### keys dialog\n\ -keysdialog=(w / 20) (h / 10) (w - w / 10) (h - h / 5)\n\ -set_parent=keysdialog\n\ -keysdialog_map=(parent.w - buttonWidth - 10) 20 buttonWidth buttonHeight\n\ -keysdialog_ok=prev.x (prev.y2 + 4) prev.w prev.h\n\ -keysdialog_cancel=prev.x (prev.y2 + 4) prev.w prev.h\n\ -keysdialog_list=10 10 (prev.x - 20) (parent.h - kLineHeight * 4 - self.y)\n\ -keysdialog_action=prev.x (parent.h - kLineHeight * 3) (parent.w - self.x * 2) kLineHeight\n\ -keysdialog_mapping=prev.x (prev.y + kLineHeight) prev.w prev.h\n\ -\n\ -\n\ -\n\ -##### SCUMM dialogs\n\ -scummDummyDialog=0 80 0 16\n\ -\n\ -## Main dialog\n\ -# note that scummmain size depends on overall height\n\ -smY=(scummmainVSpace + scummmainVAddOff)\n\ -scummmain_resume=scummmainHOffset smY scummmainButtonWidth scummmainButtonHeight\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -smY=(smY + scummmainVSpace)\n\ -scummmain_load=prev.x smY prev.w prev.h\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -scummmain_save=prev.x smY prev.w prev.h\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -smY=(smY + scummmainVSpace)\n\ -scummmain_options=prev.x smY prev.w prev.h\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -scummmain_help=prev.x smY prev.w prev.h\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -scummmain_about=prev.x smY prev.w prev.h\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -smY=(smY + scummmainVSpace)\n\ -scummmain_quit=prev.x smY prev.w prev.h\n\ -smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n\ -smW=(scummmainButtonWidth + 2 * scummmainHOffset)\n\ -smH=(smY + scummmainVSpace)\n\ -scummmain=((w - smW) / 2) ((h - smH) / 2) smW smH\n\ -\n\ -## Engine config\n\ -# note that scummconfig size depends on overall height\n\ -# hence it is on the end of the list\n\ -opYoffset=8\n\ -useWithPrefix=volumeControls scummconfig_\n\ -scummconfig_subtitlesCheckbox=15 opYoffset (kFontHeight + 10 + 89) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -scummconfig_speechCheckbox=prev.x opYoffset (kFontHeight + 10 + 85) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight + 4)\n\ -soWidth=(8 + 3 * buttonWidth + 4)\n\ -scummconfig_keys=(soWidth - 3 * (buttonWidth + 4) + 6) opYoffset (buttonWidth - 10) buttonHeight\n\ -scummconfig_cancel=(prev.x2 + 4) prev.y (prev.w + 10) prev.h\n\ -scummconfig_ok=(prev.x2 + 4) prev.y prev.w prev.h\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -scummconfig=((w - soWidth) / 2) ((h - opYoffset) / 2) soWidth (opYoffset + 8)\n\ -\n\ -## Help\n\ -scummHelpNumLines=15\n\ -shH=(5 + (2 + scummHelpNumLines) * kFontHeight + buttonHeight + 7)\n\ -scummhelp=scummhelpX ((h - shH) / 2) scummhelpW shH\n\ -scummhelp_title=10 5 scummhelpW kFontHeight\n\ -scummhelp_key.x=10\n\ -scummhelp_key.yoffset=5\n\ -scummhelp_key.w=80\n\ -scummhelp_key.h=kFontHeight\n\ -scummhelp_dsc.x=90\n\ -scummhelp_dsc.yoffset=5\n\ -scummhelp_dsc.w=(scummhelpW - 10 - 90)\n\ -scummhelp_dsc.h=kFontHeight\n\ -scummhelp_prev=10 (5 + kFontHeight * (scummHelpNumLines + 2) + 2) buttonWidth buttonHeight\n\ -scummhelp_next=(prev.x2 + 8) prev.y prev.w prev.h\n\ -scummhelp_close=(scummhelpW - 8 - buttonWidth) prev.y prev.w prev.h\n\ -\n\ -# Saveload dialog\n\ -scummsaveload=8 8 (w - 2 * 8) (h - 16)\n\ -set_parent=scummsaveload\n\ -scummsaveload_title=10 6 (parent.w - 2 * 10) kLineHeight\n\ -scummsaveload_list=10 18 (parent.w - 2 * 10 - 180) (parent.h - 14 - buttonHeight - 18)\n\ -scummsaveload_thumbnail=(parent.w - (kThumbnailWidth + 22)) 18\n\ -scummsaveload_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n\ -scummsaveload_choose=(prev.x2 + 10) prev.y prev.w prev.h\n\ -opHeight=(h * 9 / 10)\n\ -useWithPrefix=chooser scummsaveload_\n\ -\n\ -############################################\n\ -[chooser]\n\ -chooserW=(w - 2 * 8)\n\ -chooser=((w - chooserW) / 2) ((h - opHeight) / 2) chooserW opHeight\n\ -chooser_headline=10 6 (chooserW - 2 * 10) (kLineHeight)\n\ -chooser_list=10 (6 + kLineHeight + 2) prev.w (h - self.y - buttonHeight - 12)\n\ -chooser_cancel=(chooserW - 2 * (buttonWidth + 10)) (opHeight - buttonHeight - 8) buttonWidth buttonHeight\n\ -chooser_ok=(prev.x2 + 10) prev.y prev.w prev.h\n\ -\n\ -\n\ -[graphicsControls]\n\ -gcx=10\n\ -gcw=(parent.w - 2 * 10)\n\ -grModePopup=(gcx - 5) (opYoffset - 1) (gcw + 5) (kLineHeight + 2)\n\ -opYoffset=(opYoffset + kLineHeight + 4)\n\ -grRenderPopup=prev.x (opYoffset - 1) prev.w prev.h\n\ -opYoffset=(opYoffset + kLineHeight + 4)\n\ -grFullscreenCheckbox=gcx opYoffset (kFontHeight + 10 + 96) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -grAspectCheckbox=prev.x opYoffset (kFontHeight + 10 + 136) prev.h\n\ -opYoffset=(opYoffset + buttonHeight)\n\ -\n\ -[audioControls]\n\ -aux=10\n\ -auw=(parent.w - 2 * 10)\n\ -auMidiPopup=(aux - 5) (opYoffset - 1) (auw + 5) (kLineHeight + 2)\n\ -opYoffset=(opYoffset + kLineHeight + 4)\n\ -auSubtitlesCheckbox=aux opYoffset (kFontHeight + 10 + 102) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight + 18)\n\ -\n\ -[volumeControls]\n\ -vctextw=95\n\ -vcxoff=(vctextw + 15)\n\ -vcMusicText=10 (opYoffset + 2) vctextw kLineHeight\n\ -vcMusicSlider=vcxoff opYoffset sliderWidth sliderHeight\n\ -vcMusicLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n\ -opYoffset=(opYoffset + sliderHeight + 4)\n\ -vcSfxText=10 (opYoffset + 2) vctextw kLineHeight\n\ -vcSfxSlider=vcxoff opYoffset sliderWidth sliderHeight\n\ -vcSfxLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n\ -opYoffset=(opYoffset + sliderHeight + 4)\n\ -vcSpeechText=10 (opYoffset + 2) vctextw kLineHeight\n\ -vcSpeechSlider=vcxoff opYoffset sliderWidth sliderHeight\n\ -vcSpeechLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n\ -opYoffset=(opYoffset + sliderHeight + 4)\n\ -\n\ -[midiControls]\n\ -mcx=10\n\ -mcFontButton=mcx opYoffset buttonWidth buttonHeight\n\ -mcFontPath=(prev.x2 + 20) (opYoffset + 3) (parent.w - (buttonWidth + 20) - 10) kLineHeight\n\ -opYoffset=(opYoffset + buttonHeight + 2 * midiControlsSpacing)\n\ -mcMixedCheckbox=mcx opYoffset (kFontHeight + 10 + 135) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n\ -mcMt32Checkbox=mcx opYoffset (kFontHeight + 10 + 256) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n\ -mcGSCheckbox=mcx opYoffset (kFontHeight + 10 + 142) buttonHeight\n\ -opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n\ -"; +const char *Theme::_defaultConfigINI = +"# Define our classic greenish theme here\n" +"[320xY]\n" +"def_widgetSize=kNormalWidgetSize\n" +"def_buttonWidth=kButtonWidth\n" +"def_buttonHeight=kButtonHeight\n" +"def_sliderWidth=kSliderWidth\n" +"def_sliderHeight=kSliderHeight\n" +"def_kLineHeight=12\n" +"def_kFontHeight=10\n" +"def_globOptionsW=(w - 2 * 10)\n" +"def_globOptionsH=(h - 1 * 40)\n" +"def_gameOptionsH=(h - 2 * 30)\n" +"def_gameOptionsLabelWidth=60\n" +"def_tabPopupsLabelW=100\n" +"def_aboutXOff=3\n" +"def_aboutYOff=2\n" +"def_aboutOuterBorder=10\n" +"def_scummmainHOffset=8\n" +"def_scummmainVSpace=5\n" +"def_scummmainVAddOff=2\n" +"def_scummmainButtonWidth=90\n" +"def_scummmainButtonHeight=16\n" +"def_scummhelpX=5\n" +"def_scummhelpW=(w - 2 * 5)\n" +"def_midiControlsSpacing=1\n" +"use=XxY\n" +"\n" +"[XxY]\n" +"def_widgetSize=kBigWidgetSize\n" +"def_buttonWidth=kBigButtonWidth\n" +"def_buttonHeight=kBigButtonHeight\n" +"def_sliderWidth=kBigSliderWidth\n" +"def_sliderHeight=kBigSliderHeight\n" +"def_kLineHeight=16\n" +"def_kFontHeight=14\n" +"def_globOptionsW=(w - 2 * 10)\n" +"def_globOptionsH=(h - 2 * 40)\n" +"def_gameOptionsH=(h - 2 * 40)\n" +"def_gameOptionsLabelWidth=90\n" +"def_tabPopupsLabelW=150\n" +"def_aboutXOff=8\n" +"def_aboutYOff=5\n" +"def_aboutOuterBorder=80\n" +"def_scummmainHOffset=12\n" +"def_scummmainVSpace=7\n" +"def_scummmainVAddOff=3\n" +"def_scummmainButtonWidth=160\n" +"def_scummmainButtonHeight=28\n" +"def_scummhelpW=370\n" +"def_scummhelpX=((w - scummhelpW) / 2)\n" +"def_midiControlsSpacing=2\n" +"\n" +"###### chooser\n" +"opHeight=(h * 7 / 10)\n" +"useWithPrefix=chooser defaultChooser_\n" +"\n" +"##### browser\n" +"brW=((w * 7) / 8)\n" +"brH=((h * 9) / 10)\n" +"browser=((w - brW) / 2) ((h - brH) / 2) brW brH\n" +"set_parent=browser\n" +"browser_headline=10 kLineHeight (parent.w - 2 * 10) kLineHeight\n" +"browser_path=10 prev.y2 prev.w prev.h\n" +"browser_list=10 prev.y2 prev.w (parent.h - 3 * kLineHeight - buttonHeight - 14)\n" +"browser_up=10 (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n" +"browser_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n" +"browser_choose=(prev.x2 + 10) prev.y prev.w prev.h\n" +"\n" +"##### launcher\n" +"hBorder=10\n" +"launcher_version=hBorder 8 (w - 2 * hBorder) kLineHeight\n" +"top=(h - 8 - buttonHeight)\n" +"numButtons=4\n" +"space=8\n" +"butWidth=((w - 2 * hBorder - space * (numButtons - 1)) / numButtons)\n" +"launcher_quit_button=hBorder top butWidth buttonHeight\n" +"launcher_about_button=(prev.x2 + space) prev.y prev.w prev.h\n" +"launcher_options_button=(prev.x2 + space) prev.y prev.w prev.h\n" +"launcher_start_button=(prev.x2 + space) prev.y prev.w prev.h\n" +"top=(top - buttonHeight * 2)\n" +"numButtons=3\n" +"space=10\n" +"butWidth=((w - 2 * hBorder - space * (numButtons - 1)) / numButtons)\n" +"launcher_addGame_button=hBorder top butWidth buttonHeight\n" +"launcher_editGame_button=(prev.x2 + space) prev.y prev.w prev.h\n" +"launcher_removeGame_button=(prev.x2 + space) prev.y prev.w prev.h\n" +"launcher_list=hBorder (kLineHeight + 16) (w - 2 * hBorder) (top - kLineHeight - 20)\n" +"\n" +"### global options\n" +"globaloptions=10 40 globOptionsW globOptionsH\n" +"set_parent=globaloptions\n" +"vBorder=5\n" +"globaloptions_tabwidget=0 vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder)\n" +"\n" +"# graphics tab\n" +"opYoffset=vBorder\n" +"useWithPrefix=graphicsControls globaloptions_\n" +"\n" +"# audio tab\n" +"opYoffset=vBorder\n" +"useWithPrefix=audioControls globaloptions_\n" +"useWithPrefix=volumeControls globaloptions_\n" +"\n" +"# MIDI tab\n" +"opYoffset=vBorder\n" +"useWithPrefix=midiControls globaloptions_\n" +"\n" +"# paths tab\n" +"yoffset=vBorder\n" +"globaloptions_savebutton=5 yoffset (buttonWidth + 5) buttonHeight\n" +"globaloptions_savepath=(prev.x2 + 20) (vBorder + 3) (parent.w - (prev.w + 20) - 10) kLineHeight\n" +"yoffset=(yoffset + buttonHeight + 4)\n" +"globaloptions_extrabutton=5 yoffset (buttonWidth + 5) buttonHeight\n" +"globaloptions_extrapath=(prev.x2 + 20) (vBorder + 3) (parent.w - (prev.w + 20) - 10) kLineHeight\n" +"yoffset=(yoffset + buttonHeight + 4)\n" +"globaloptions_keysbutton=5 yoffset (buttonWidth + 5) buttonHeight\n" +"\n" +"globaloptions_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n" +"globaloptions_ok=(prev.x2 + 10) prev.y prev.w prev.h\n" +"\n" +"### game options\n" +"gameoptions=10 40 (w - 2 * 10) gameOptionsH\n" +"set_parent=gameoptions\n" +"vBorder=5\n" +"gox=5\n" +"gow=(parent.w - 15)\n" +"\n" +"gameoptions_tabwidget=0 vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder)\n" +"\n" +"# game tab\n" +"opYoffset=vBorder\n" +"gameoptions_id=gox (opYoffset + 2) gameOptionsLabelWidth kLineHeight\n" +"gameoptions_domain=prev.x2 (prev.y - 1) (parent.w - gameOptionsLabelWidth - 10 - gox) (prev.h + 2)\n" +"opYoffset=(opYoffset + prev.h + 3)\n" +"gameoptions_name=gox (opYoffset + 2) gameOptionsLabelWidth kLineHeight\n" +"gameoptions_desc=prev.x2 (prev.y - 1) (parent.w - gameOptionsLabelWidth - 10 - gox) (prev.h + 2)\n" +"opYoffset=(opYoffset + prev.h + 3)\n" +"gameoptions_lang=gox (opYoffset - 1) gow (kLineHeight + 2)\n" +"opYoffset=(opYoffset + prev.h + 4)\n" +"gameoptions_platform=prev.x opYoffset prev.w prev.h\n" +"opYoffset=(opYoffset + prev.h + 4)\n" +"\n" +"# paths tab\n" +"opYoffset=vBorder\n" +"goOff=((buttonHeight - kLineHeight) / 2 + 2)\n" +"gameoptions_gamepath=gox opYoffset (buttonWidth + 5) buttonHeight\n" +"gameoptions_gamepathText=(prev.x2 + 20) (opYoffset + goOff) (parent.w - self.x - 10) kLineHeight\n" +"opYoffset=(opYoffset + buttonHeight + 4)\n" +"gameoptions_extrapath=gox opYoffset (buttonWidth + 5) buttonHeight\n" +"gameoptions_extrapathText=(prev.x2 + 20) (opYoffset + goOff) (parent.w - self.x - 10) kLineHeight\n" +"opYoffset=(opYoffset + buttonHeight + 4)\n" +"gameoptions_savepath=gox opYoffset (buttonWidth + 5) buttonHeight\n" +"gameoptions_savepathText=(prev.x2 + 20) (opYoffset + goOff) (parent.w - self.x - 10) kLineHeight\n" +"opYoffset=(opYoffset + buttonHeight + 4)\n" +"\n" +"# graphics tab\n" +"opYoffset=vBorder\n" +"gameoptions_graphicsCheckbox=gox opYoffset (kFontHeight + 10 + 192) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"useWithPrefix=graphicsControls gameoptions_\n" +"\n" +"# audio tab\n" +"opYoffset=vBorder\n" +"gameoptions_audioCheckbox=gox opYoffset (kFontHeight + 10 + 180) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"useWithPrefix=audioControls gameoptions_\n" +"\n" +"# midi tab\n" +"opYoffset=vBorder\n" +"gameoptions_midiCheckbox=gox opYoffset (kFontHeight + 10 + 174) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"useWithPrefix=midiControls gameoptions_\n" +"\n" +"# volume tab\n" +"opYoffset=vBorder\n" +"gameoptions_volumeCheckbox=gox opYoffset (kFontHeight + 10 + 189) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"useWithPrefix=volumeControls gameoptions_\n" +"\n" +"gameoptions_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n" +"gameoptions_ok=(prev.x2 + 10) prev.y prev.w prev.h\n" +"\n" +"### keys dialog\n" +"keysdialog=(w / 20) (h / 10) (w - w / 10) (h - h / 5)\n" +"set_parent=keysdialog\n" +"keysdialog_map=(parent.w - buttonWidth - 10) 20 buttonWidth buttonHeight\n" +"keysdialog_ok=prev.x (prev.y2 + 4) prev.w prev.h\n" +"keysdialog_cancel=prev.x (prev.y2 + 4) prev.w prev.h\n" +"keysdialog_list=10 10 (prev.x - 20) (parent.h - kLineHeight * 4 - self.y)\n" +"keysdialog_action=prev.x (parent.h - kLineHeight * 3) (parent.w - self.x * 2) kLineHeight\n" +"keysdialog_mapping=prev.x (prev.y + kLineHeight) prev.w prev.h\n" +"\n" +"\n" +"\n" +"##### SCUMM dialogs\n" +"scummDummyDialog=0 80 0 16\n" +"\n" +"## Main dialog\n" +"# note that scummmain size depends on overall height\n" +"smY=(scummmainVSpace + scummmainVAddOff)\n" +"scummmain_resume=scummmainHOffset smY scummmainButtonWidth scummmainButtonHeight\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"smY=(smY + scummmainVSpace)\n" +"scummmain_load=prev.x smY prev.w prev.h\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"scummmain_save=prev.x smY prev.w prev.h\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"smY=(smY + scummmainVSpace)\n" +"scummmain_options=prev.x smY prev.w prev.h\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"scummmain_help=prev.x smY prev.w prev.h\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"scummmain_about=prev.x smY prev.w prev.h\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"smY=(smY + scummmainVSpace)\n" +"scummmain_quit=prev.x smY prev.w prev.h\n" +"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n" +"smW=(scummmainButtonWidth + 2 * scummmainHOffset)\n" +"smH=(smY + scummmainVSpace)\n" +"scummmain=((w - smW) / 2) ((h - smH) / 2) smW smH\n" +"\n" +"## Engine config\n" +"# note that scummconfig size depends on overall height\n" +"# hence it is on the end of the list\n" +"opYoffset=8\n" +"useWithPrefix=volumeControls scummconfig_\n" +"scummconfig_subtitlesCheckbox=15 opYoffset (kFontHeight + 10 + 89) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"scummconfig_speechCheckbox=prev.x opYoffset (kFontHeight + 10 + 85) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight + 4)\n" +"soWidth=(8 + 3 * buttonWidth + 4)\n" +"scummconfig_keys=(soWidth - 3 * (buttonWidth + 4) + 6) opYoffset (buttonWidth - 10) buttonHeight\n" +"scummconfig_cancel=(prev.x2 + 4) prev.y (prev.w + 10) prev.h\n" +"scummconfig_ok=(prev.x2 + 4) prev.y prev.w prev.h\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"scummconfig=((w - soWidth) / 2) ((h - opYoffset) / 2) soWidth (opYoffset + 8)\n" +"\n" +"## Help\n" +"scummHelpNumLines=15\n" +"shH=(5 + (2 + scummHelpNumLines) * kFontHeight + buttonHeight + 7)\n" +"scummhelp=scummhelpX ((h - shH) / 2) scummhelpW shH\n" +"scummhelp_title=10 5 scummhelpW kFontHeight\n" +"scummhelp_key.x=10\n" +"scummhelp_key.yoffset=5\n" +"scummhelp_key.w=80\n" +"scummhelp_key.h=kFontHeight\n" +"scummhelp_dsc.x=90\n" +"scummhelp_dsc.yoffset=5\n" +"scummhelp_dsc.w=(scummhelpW - 10 - 90)\n" +"scummhelp_dsc.h=kFontHeight\n" +"scummhelp_prev=10 (5 + kFontHeight * (scummHelpNumLines + 2) + 2) buttonWidth buttonHeight\n" +"scummhelp_next=(prev.x2 + 8) prev.y prev.w prev.h\n" +"scummhelp_close=(scummhelpW - 8 - buttonWidth) prev.y prev.w prev.h\n" +"\n" +"# Saveload dialog\n" +"scummsaveload=8 8 (w - 2 * 8) (h - 16)\n" +"set_parent=scummsaveload\n" +"scummsaveload_title=10 6 (parent.w - 2 * 10) kLineHeight\n" +"scummsaveload_list=10 18 (parent.w - 2 * 10 - 180) (parent.h - 14 - buttonHeight - 18)\n" +"scummsaveload_thumbnail=(parent.w - (kThumbnailWidth + 22)) 18\n" +"scummsaveload_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight\n" +"scummsaveload_choose=(prev.x2 + 10) prev.y prev.w prev.h\n" +"opHeight=(h * 9 / 10)\n" +"useWithPrefix=chooser scummsaveload_\n" +"\n" +"############################################\n" +"[chooser]\n" +"chooserW=(w - 2 * 8)\n" +"chooser=((w - chooserW) / 2) ((h - opHeight) / 2) chooserW opHeight\n" +"chooser_headline=10 6 (chooserW - 2 * 10) (kLineHeight)\n" +"chooser_list=10 (6 + kLineHeight + 2) prev.w (h - self.y - buttonHeight - 12)\n" +"chooser_cancel=(chooserW - 2 * (buttonWidth + 10)) (opHeight - buttonHeight - 8) buttonWidth buttonHeight\n" +"chooser_ok=(prev.x2 + 10) prev.y prev.w prev.h\n" +"\n" +"\n" +"[graphicsControls]\n" +"gcx=10\n" +"gcw=(parent.w - 2 * 10)\n" +"grModePopup=(gcx - 5) (opYoffset - 1) (gcw + 5) (kLineHeight + 2)\n" +"opYoffset=(opYoffset + kLineHeight + 4)\n" +"grRenderPopup=prev.x (opYoffset - 1) prev.w prev.h\n" +"opYoffset=(opYoffset + kLineHeight + 4)\n" +"grFullscreenCheckbox=gcx opYoffset (kFontHeight + 10 + 96) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"grAspectCheckbox=prev.x opYoffset (kFontHeight + 10 + 136) prev.h\n" +"opYoffset=(opYoffset + buttonHeight)\n" +"\n" +"[audioControls]\n" +"aux=10\n" +"auw=(parent.w - 2 * 10)\n" +"auMidiPopup=(aux - 5) (opYoffset - 1) (auw + 5) (kLineHeight + 2)\n" +"opYoffset=(opYoffset + kLineHeight + 4)\n" +"auSubtitlesCheckbox=aux opYoffset (kFontHeight + 10 + 102) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight + 18)\n" +"\n" +"[volumeControls]\n" +"vctextw=95\n" +"vcxoff=(vctextw + 15)\n" +"vcMusicText=10 (opYoffset + 2) vctextw kLineHeight\n" +"vcMusicSlider=vcxoff opYoffset sliderWidth sliderHeight\n" +"vcMusicLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n" +"opYoffset=(opYoffset + sliderHeight + 4)\n" +"vcSfxText=10 (opYoffset + 2) vctextw kLineHeight\n" +"vcSfxSlider=vcxoff opYoffset sliderWidth sliderHeight\n" +"vcSfxLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n" +"opYoffset=(opYoffset + sliderHeight + 4)\n" +"vcSpeechText=10 (opYoffset + 2) vctextw kLineHeight\n" +"vcSpeechSlider=vcxoff opYoffset sliderWidth sliderHeight\n" +"vcSpeechLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n" +"opYoffset=(opYoffset + sliderHeight + 4)\n" +"\n" +"[midiControls]\n" +"mcx=10\n" +"mcFontButton=mcx opYoffset buttonWidth buttonHeight\n" +"mcFontPath=(prev.x2 + 20) (opYoffset + 3) (parent.w - (buttonWidth + 20) - 10) kLineHeight\n" +"opYoffset=(opYoffset + buttonHeight + 2 * midiControlsSpacing)\n" +"mcMixedCheckbox=mcx opYoffset (kFontHeight + 10 + 135) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n" +"mcMt32Checkbox=mcx opYoffset (kFontHeight + 10 + 256) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n" +"mcGSCheckbox=mcx opYoffset (kFontHeight + 10 + 142) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n" +""; using Common::String; |