mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Adds new Spectrum models to Qt UI.
This commit is contained in:
parent
d7954a4cb1
commit
eb99a64b29
@ -1258,9 +1258,13 @@ void MainWindow::start_spectrum() {
|
||||
using Target = Analyser::Static::ZXSpectrum::Target;
|
||||
auto target = std::make_unique<Target>();
|
||||
|
||||
switch(ui->oricModelComboBox->currentIndex()) {
|
||||
default: target->model = Target::Model::Plus2a; break;
|
||||
case 1: target->model = Target::Model::Plus3; break;
|
||||
switch(ui->spectrumModelComboBox->currentIndex()) {
|
||||
default: target->model = Target::Model::SixteenK; break;
|
||||
case 1: target->model = Target::Model::FortyEightK; break;
|
||||
case 2: target->model = Target::Model::OneTwoEightK; break;
|
||||
case 3: target->model = Target::Model::Plus2; break;
|
||||
case 4: target->model = Target::Model::Plus2a; break;
|
||||
case 5: target->model = Target::Model::Plus3; break;
|
||||
}
|
||||
|
||||
launchTarget(std::move(target));
|
||||
|
@ -551,6 +551,26 @@
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="spectrumModelComboBox">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>16kb</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>48kb</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>128kb</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>+2</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>+2a</string>
|
||||
|
Loading…
Reference in New Issue
Block a user