[Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.141,1.142
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Fri May 20 08:05:37 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gui EditTextWidget.cpp,1.31,1.32 EditTextWidget.h,1.19,1.20 ListWidget.cpp,1.51,1.52 browser.cpp,1.30,1.31 chooser.cpp,1.14,1.15 dialog.cpp,1.57,1.58 dialog.h,1.38,1.39 editable.cpp,1.4,1.5 editable.h,1.3,1.4 launcher.cpp,1.123,1.124 message.cpp,1.26,1.27 newgui.cpp,1.113,1.114 newgui.h,1.58,1.59 options.cpp,1.88,1.89
- Next message: [Scummvm-cvs-logs] CVS: scummvm TODO,1.290,1.291
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18274/scumm
Modified Files:
dialogs.cpp
Log Message:
Added big editable text widget, and removed some cruft. I think this means
that all our widgets are able to scale themselves now, but I could be
mistaken.
Index: dialogs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- dialogs.cpp 18 May 2005 14:11:53 -0000 1.141
+++ dialogs.cpp 20 May 2005 15:03:26 -0000 1.142
@@ -303,8 +303,8 @@
_gfxWidget->setFlags(GUI::WIDGET_BORDER);
// Buttons
- addButton(_w - 2 * (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, "Cancel", kCloseCmd, 0, GUI::kBigWidgetSize);
- _chooseButton = addButton(_w - (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, buttonLabel, kChooseCmd, 0, GUI::kBigWidgetSize);
+ addButton(this, _w - 2 * (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, "Cancel", kCloseCmd, 0, GUI::kBigWidgetSize);
+ _chooseButton = addButton(this, _w - (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, buttonLabel, kChooseCmd, 0, GUI::kBigWidgetSize);
_chooseButton->setEnabled(false);
}
@@ -578,10 +578,10 @@
// Some misc options
//
- _subtitlesCheckbox = addCheckbox(15, yoffset, "Show subtitles", 0, 'S', ws);
+ _subtitlesCheckbox = addCheckbox(this, 15, yoffset, "Show subtitles", 0, 'S', ws);
yoffset += _subtitlesCheckbox->getHeight();
- _speechCheckbox = addCheckbox(15, yoffset, "Enable speech", 0, 'E', ws);
+ _speechCheckbox = addCheckbox(this, 15, yoffset, "Enable speech", 0, 'E', ws);
yoffset += _speechCheckbox->getHeight() + 4;
//
@@ -590,10 +590,10 @@
_w = 8 + 3 * (buttonWidth + 4); // FIXME/TODO
- addButton(_w - (buttonWidth + 4) - 4, yoffset, "OK", GUI::OptionsDialog::kOKCmd, 'O', ws);
- addButton(_w - 2 * (buttonWidth + 4) - 4, yoffset, "Cancel", kCloseCmd, 'C', ws);
+ addButton(this, _w - (buttonWidth + 4) - 4, yoffset, "OK", GUI::OptionsDialog::kOKCmd, 'O', ws);
+ addButton(this, _w - 2 * (buttonWidth + 4) - 4, yoffset, "Cancel", kCloseCmd, 'C', ws);
#ifdef _WIN32_WCE
- addButton(_w - 3 * (buttonWidth + 4) - 4, yoffset, "Keys", kKeysCmd, 'K', ws);
+ addButton(this, _w - 3 * (buttonWidth + 4) - 4, yoffset, "Keys", kKeysCmd, 'K', ws);
#endif
yoffset += buttonHeight;
@@ -712,9 +712,9 @@
int y = 5 + lineHeight * (HELP_NUM_LINES + 2) + 2;
- _prevButton = addButton(10, y, "Previous", kPrevCmd, 'P', ws);
- _nextButton = addButton(10 + buttonWidth + 8, y, "Next", kNextCmd, 'N', ws);
- addButton(_w - 8 - buttonWidth, y, "Close", kCloseCmd, 'C', ws);
+ _prevButton = addButton(this, 10, y, "Previous", kPrevCmd, 'P', ws);
+ _nextButton = addButton(this, 10 + buttonWidth + 8, y, "Next", kNextCmd, 'N', ws);
+ addButton(this, _w - 8 - buttonWidth, y, "Close", kCloseCmd, 'C', ws);
_prevButton->clearFlags(WIDGET_ENABLED);
displayKeyBindings();
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gui EditTextWidget.cpp,1.31,1.32 EditTextWidget.h,1.19,1.20 ListWidget.cpp,1.51,1.52 browser.cpp,1.30,1.31 chooser.cpp,1.14,1.15 dialog.cpp,1.57,1.58 dialog.h,1.38,1.39 editable.cpp,1.4,1.5 editable.h,1.3,1.4 launcher.cpp,1.123,1.124 message.cpp,1.26,1.27 newgui.cpp,1.113,1.114 newgui.h,1.58,1.59 options.cpp,1.88,1.89
- Next message: [Scummvm-cvs-logs] CVS: scummvm TODO,1.290,1.291
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list