@@ -214,10 +214,10 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
214214 * MULTICARTRIDGE IMAGES
215215 */
216216 // 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);
219219 QVBoxLayout *layout = new QVBoxLayout ();
220- this ->multirom_container ->setLayout (layout);
220+ this ->rom_container ->setLayout (layout);
221221
222222 // add individual buttons here
223223 QPushButton* btn1 = new QPushButton (" P2000T Multicart ROM" );
@@ -230,31 +230,17 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
230230 layout->addWidget (btn2);
231231 connect (btn2, SIGNAL (released ()), this , SLOT (load_default_image ()));
232232
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-
245233 // 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);
254236
255237 // list of ROM images
256238 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" },
258244 {" Assembler v5.9" , " https://github.com/p2000t/software/raw/refs/heads/main/cartridges/assembler%205.9.bin" },
259245 {" BASICNL with Bootstrap for SD-CARD cartridge" , " https://github.com/ifilot/p2000t-sdcard/releases/latest/download/BASICBOOTSTRAP.BIN" },
260246 {" 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) {
274260 connect (action, &QAction::triggered, this , &MainWindow::load_default_image);
275261 rommenu->addAction (action);
276262 }
277- btn2 ->setMenu (rommenu);
263+ btn3 ->setMenu (rommenu);
278264
279- target_layout->addWidget (this ->singlerom_container );
265+ target_layout->addWidget (this ->rom_container );
280266}
281267
282268/* *
@@ -729,9 +715,7 @@ void MainWindow::slot_update_settings() {
729715 // qDebug() << "Settings update triggered";
730716
731717 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);
735719 this ->hex_widget ->viewport ()->repaint ();
736720}
737721
0 commit comments