RCS file: /cvsroot/scummvm/scummvm/gui/options.cpp,v
retrieving revision 1.43
diff -u -r1.43 options.cpp
|
|
|
66 | 66 | |
67 | 67 | } |
68 | 68 | |
69 | | void OptionsDialog::open() { |
| 69 | void OptionsDialog::internalOpen() { |
70 | 70 | Dialog::open(); |
71 | 71 | |
72 | 72 | // Reset result value |
… |
… |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
125 | | void OptionsDialog::close() { |
| 125 | void OptionsDialog::internalClose() { |
126 | 126 | if (getResult()) { |
127 | 127 | if (_fullscreenCheckbox) { |
128 | 128 | if (_enableGraphicSettings) { |
… |
… |
|
172 | 172 | Dialog::close(); |
173 | 173 | } |
174 | 174 | |
175 | | void OptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { |
| 175 | void OptionsDialog::internalHandleCommand(CommandSender *sender, uint32 cmd, uint32 data) { |
176 | 176 | switch (cmd) { |
177 | 177 | case kMasterVolumeChanged: |
178 | 178 | _masterVolumeLabel->setValue(_masterVolumeSlider->getValue()); |
RCS file: /cvsroot/scummvm/scummvm/gui/options.h,v
retrieving revision 1.13
diff -u -r1.13 options.h
|
|
|
37 | 37 | |
38 | 38 | class OptionsDialog : public Dialog { |
39 | 39 | typedef Common::String String; |
| 40 | |
| 41 | protected: |
| 42 | // HACK: Jamieson630 |
| 43 | // The following are the actual implementation of |
| 44 | // open, close and handleCommand. Since these must be |
| 45 | // called directly from derived classes, and MSVC6 has |
| 46 | // been choking on the notation needed to do so, |
| 47 | // these functions are used instead to avoid a name |
| 48 | // ambiguity. |
| 49 | void internalOpen(); |
| 50 | void internalClose(); |
| 51 | void internalHandleCommand(CommandSender *sender, uint32 cmd, uint32 data); |
| 52 | |
40 | 53 | public: |
41 | 54 | OptionsDialog(const String &domain, int x, int y, int w, int h); |
42 | 55 | |
43 | | void open(); |
44 | | void close(); |
45 | | void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); |
| 56 | void open() { internalOpen(); } |
| 57 | void close() { internalClose(); } |
| 58 | void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { internalHandleCommand(sender, cmd, data); } |
46 | 59 | |
47 | 60 | enum { |
48 | 61 | kOKCmd = 'ok ' |
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.90
diff -u -r1.90 dialogs.cpp
|
|
|
454 | 454 | } |
455 | 455 | |
456 | 456 | void OptionsDialog::open() { |
457 | | GUI::OptionsDialog::open(); |
| 457 | internalOpen(); // GUI::OptionsDialog::open |
458 | 458 | |
459 | 459 | // update checkboxes, too |
460 | 460 | subtitlesCheckbox->setState(_scumm->_noSubtitles == false); |
… |
… |
|
467 | 467 | ConfMan.set("nosubtitles", !subtitlesCheckbox->getState(), _domain); |
468 | 468 | } |
469 | 469 | |
470 | | GUI::OptionsDialog::close(); |
471 | | |
| 470 | internalClose(); // GUI::OptionsDialog::close |
472 | 471 | |
473 | 472 | // Sync the engine with the config manager |
474 | 473 | int soundVolumeMaster = ConfMan.getInt("master_volume"); |
… |
… |
|
498 | 497 | #endif |
499 | 498 | break; |
500 | 499 | default: |
501 | | GUI::OptionsDialog::handleCommand(sender, cmd, data); |
| 500 | internalHandleCommand(sender, cmd, data); // GUI::OptionsDialog::handleCommand |
502 | 501 | } |
503 | 502 | } |
504 | 503 | |