MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / showPresets

Method showPresets

gui/qt/visualizerwidget.cpp:73–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void VisualizerWidget::showPresets() {
74 QMenu menu;
75 QAction *preset_1 = menu.addAction(tr("Current LCD State"));
76 QAction *preset_2 = menu.addAction(tr("8bpp Buffer 1"));
77 QAction *preset_3 = menu.addAction(tr("8bpp Buffer 2"));
78 QAction *preset_4 = menu.addAction(tr("Palette View"));
79
80 QAction *item = menu.exec(mapToGlobal(m_btnLcd->pos()));
81 if (item == preset_1) {
82 resetView();
83 } else if (item == preset_2) {
84 m_config->setText("d40000,320x240,8bpp,bgr");
85 stringToView();
86 } else if (item == preset_3) {
87 m_config->setText("d52c00,320x240,8bpp,bgr");
88 stringToView();
89 } else if (item == preset_4) {
90 m_config->setText("e30200,32x8,1555bpp,bgr,1000%");
91 stringToView();
92 }
93}
94
95void VisualizerWidget::showConfig() {
96 QDialog *dialog = new QDialog;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected