mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +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;
|
using Target = Analyser::Static::ZXSpectrum::Target;
|
||||||
auto target = std::make_unique<Target>();
|
auto target = std::make_unique<Target>();
|
||||||
|
|
||||||
switch(ui->oricModelComboBox->currentIndex()) {
|
switch(ui->spectrumModelComboBox->currentIndex()) {
|
||||||
default: target->model = Target::Model::Plus2a; break;
|
default: target->model = Target::Model::SixteenK; break;
|
||||||
case 1: target->model = Target::Model::Plus3; 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));
|
launchTarget(std::move(target));
|
||||||
|
@ -551,6 +551,26 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QComboBox" name="spectrumModelComboBox">
|
<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>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>+2a</string>
|
<string>+2a</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user