ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/prefs_editor_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/prefs_editor_beos.cpp (file contents):
Revision 1.4 by cebix, 1999-10-28T09:31:39Z vs.
Revision 1.6 by cebix, 2000-04-10T18:52:52Z

# Line 1 | Line 1
1   /*
2   *  prefs_editor_beos.cpp - Preferences editor, BeOS implementation
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2000 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 84 | Line 84 | const uint32 MSG_ETHER = 'ethr';
84   const uint32 MSG_RAMSIZE = 'rmsz';                      // "Memory/Misc" pane
85   const uint32 MSG_MODELID_5 = 'mi05';
86   const uint32 MSG_MODELID_14 = 'mi14';
87 < const uint32 MSG_FPU = 'fpu ';
87 > const uint32 MSG_CPU_68020 = 'cpu2';
88 > const uint32 MSG_CPU_68020_FPU = 'cpf2';
89 > const uint32 MSG_CPU_68030 = 'cpu3';
90 > const uint32 MSG_CPU_68030_FPU = 'cpf3';
91 > const uint32 MSG_CPU_68040 = 'cpu4';
92  
93  
94   // RAM size slider class
# Line 708 | Line 712 | BView *PrefsWindow::create_memory_pane(v
712                  item->SetMarked(true);
713          pane->AddChild(menu_field);
714  
715 <        rom_control = new PathControl(false, BRect(10, 82, right, 97), "rom", GetString(STR_ROM_FILE_CTRL), PrefsFindString("rom"), NULL);
715 >        int cpu = PrefsFindInt32("cpu");
716 >        bool fpu = PrefsFindBool("fpu");
717 >        menu = new BPopUpMenu("");
718 >        menu_field = new BMenuField(BRect(10, 82, right, 97), "cpu", GetString(STR_CPU_CTRL), menu);
719 >        menu_field->SetDivider(120);
720 >        menu->AddItem(item = new BMenuItem(GetString(STR_CPU_68020_LAB), new BMessage(MSG_CPU_68020)));
721 >        if (cpu == 2 && !fpu)
722 >                item->SetMarked(true);
723 >        menu->AddItem(item = new BMenuItem(GetString(STR_CPU_68020_FPU_LAB), new BMessage(MSG_CPU_68020_FPU)));
724 >        if (cpu == 2 && fpu)
725 >                item->SetMarked(true);
726 >        menu->AddItem(item = new BMenuItem(GetString(STR_CPU_68030_LAB), new BMessage(MSG_CPU_68030)));
727 >        if (cpu == 3 && !fpu)
728 >                item->SetMarked(true);
729 >        menu->AddItem(item = new BMenuItem(GetString(STR_CPU_68030_FPU_LAB), new BMessage(MSG_CPU_68030_FPU)));
730 >        if (cpu == 3 && fpu)
731 >                item->SetMarked(true);
732 >        menu->AddItem(item = new BMenuItem(GetString(STR_CPU_68040_LAB), new BMessage(MSG_CPU_68040)));
733 >        if (cpu == 4)
734 >                item->SetMarked(true);
735 >        pane->AddChild(menu_field);
736 >
737 >        rom_control = new PathControl(false, BRect(10, 104, right, 119), "rom", GetString(STR_ROM_FILE_CTRL), PrefsFindString("rom"), NULL);
738          rom_control->SetDivider(117);
739          pane->AddChild(rom_control);
740  
715        fpu_checkbox = new BCheckBox(BRect(10, 100, right, 115), "fpu", GetString(STR_FPU_CTRL), new BMessage(MSG_FPU));
716        pane->AddChild(fpu_checkbox);
717        fpu_checkbox->SetValue(PrefsFindBool("fpu") ? B_CONTROL_ON : B_CONTROL_OFF);
718
741          return pane;
742   }
743  
# Line 933 | Line 955 | void PrefsWindow::MessageReceived(BMessa
955                          PrefsReplaceInt32("modelid", 14);
956                          break;
957  
958 <                case MSG_FPU:
959 <                        PrefsReplaceBool("fpu", fpu_checkbox->Value() == B_CONTROL_ON);
958 >                case MSG_CPU_68020:
959 >                        PrefsReplaceInt32("cpu", 2);
960 >                        PrefsReplaceBool("fpu", false);
961 >                        break;
962 >
963 >                case MSG_CPU_68020_FPU:
964 >                        PrefsReplaceInt32("cpu", 2);
965 >                        PrefsReplaceBool("fpu", true);
966 >                        break;
967 >
968 >                case MSG_CPU_68030:
969 >                        PrefsReplaceInt32("cpu", 3);
970 >                        PrefsReplaceBool("fpu", false);
971 >                        break;
972 >
973 >                case MSG_CPU_68030_FPU:
974 >                        PrefsReplaceInt32("cpu", 3);
975 >                        PrefsReplaceBool("fpu", true);
976 >                        break;
977 >
978 >                case MSG_CPU_68040:
979 >                        PrefsReplaceInt32("cpu", 4);
980 >                        PrefsReplaceBool("fpu", true);
981                          break;
982  
983                  default: {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines