@@ -214,10 +214,10 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
214
214
* MULTICARTRIDGE IMAGES
215
215
*/
216
216
// create toplevel interface
217
- this ->multirom_container = new QGroupBox (" Multicard images" );
218
- this ->multirom_container ->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Minimum);
217
+ this ->rom_container = new QGroupBox (" ROM images" );
218
+ this ->rom_container ->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Minimum);
219
219
QVBoxLayout *layout = new QVBoxLayout ();
220
- this ->multirom_container ->setLayout (layout);
220
+ this ->rom_container ->setLayout (layout);
221
221
222
222
// add individual buttons here
223
223
QPushButton* btn1 = new QPushButton (" P2000T Multicart ROM" );
@@ -230,31 +230,17 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
230
230
layout->addWidget (btn2);
231
231
connect (btn2, SIGNAL (released ()), this , SLOT (load_default_image ()));
232
232
233
- target_layout->addWidget (this ->multirom_container );
234
-
235
- /* *
236
- * SINGLE ROM IMAGES
237
- */
238
-
239
- // create toplevel interface
240
- this ->singlerom_container = new QGroupBox (" Single cartridge images" );
241
- this ->singlerom_container ->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Minimum);
242
- layout = new QVBoxLayout ();
243
- this ->singlerom_container ->setLayout (layout);
244
-
245
233
// add individual buttons here
246
- btn1 = new QPushButton (" P2000T BASICNL v1.1" );
247
- btn1->setProperty (" image_name" , QVariant (QString (" https://github.com/p2000t/software/raw/refs/heads/main/cartridges/BASICNL1.1.bin" )));
248
- layout->addWidget (btn1);
249
- connect (btn1, SIGNAL (released ()), this , SLOT (load_default_image ()));
250
-
251
- // add individual buttons here
252
- btn2 = new QPushButton (" Select other ROM" );
253
- layout->addWidget (btn2);
234
+ QPushButton* btn3 = new QPushButton (" Select other ROM" );
235
+ layout->addWidget (btn3);
254
236
255
237
// list of ROM images
256
238
QList<QPair<QString, QString>> rom_images = {
257
- {" P2000T Games Bundle" , " https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-128KiB.BIN" },
239
+ {" P2000T BASICNL v1.1" , " https://github.com/p2000t/software/raw/refs/heads/main/cartridges/BASICNL1.1.bin" },
240
+ {" P2000T Games Bundle (8-pack; 128 KiB; Space Fight)" , " https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-128KiB.BIN" },
241
+ {" P2000T Games Bundle (8-pack; 128 KiB; Fraxxon)" , " https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-128KiB-ALT.BIN" },
242
+ {" P2000T Games Bundle (16-pack; 256 KiB)" , " https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-256KiB.BIN" },
243
+ {" P2000T Joystick ROM" , " https://github.com/ifilot/p2000t-joystick-cartridge/releases/download/nightly/joystick_eeprom.bin" },
258
244
{" Assembler v5.9" , " https://github.com/p2000t/software/raw/refs/heads/main/cartridges/assembler%205.9.bin" },
259
245
{" BASICNL with Bootstrap for SD-CARD cartridge" , " https://github.com/ifilot/p2000t-sdcard/releases/latest/download/BASICBOOTSTRAP.BIN" },
260
246
{" Familiegeheugen v4" , " https://github.com/p2000t/software/raw/refs/heads/main/cartridges/familiegeheugen%204.bin" },
@@ -274,9 +260,9 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
274
260
connect (action, &QAction::triggered, this , &MainWindow::load_default_image);
275
261
rommenu->addAction (action);
276
262
}
277
- btn2 ->setMenu (rommenu);
263
+ btn3 ->setMenu (rommenu);
278
264
279
- target_layout->addWidget (this ->singlerom_container );
265
+ target_layout->addWidget (this ->rom_container );
280
266
}
281
267
282
268
/* *
@@ -729,9 +715,7 @@ void MainWindow::slot_update_settings() {
729
715
// qDebug() << "Settings update triggered";
730
716
731
717
bool show_retroroms = this ->settings .value (" SHOW_RETROROMS" , QVariant (true )).toBool ();
732
- this ->multirom_container ->setVisible (show_retroroms);
733
- this ->singlerom_container ->setVisible (show_retroroms);
734
- dynamic_cast <QWidget*>(this ->singlerom_container ->parent ())->layout ()->invalidate ();
718
+ this ->rom_container ->setVisible (show_retroroms);
735
719
this ->hex_widget ->viewport ()->repaint ();
736
720
}
737
721
0 commit comments