diff options
Diffstat (limited to 'gui/ice40/mainwindow.cc')
-rw-r--r-- | gui/ice40/mainwindow.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc index f251fd28..c715fd51 100644 --- a/gui/ice40/mainwindow.cc +++ b/gui/ice40/mainwindow.cc @@ -77,29 +77,29 @@ void MainWindow::createMenu() void MainWindow::new_proj()
{
QMap<QString, int> arch;
- if (Arch::isAvailable(ArchArgs::LP384))
+ if (Arch::is_available(ArchArgs::LP384))
arch.insert("Lattice iCE40LP384", ArchArgs::LP384);
- if (Arch::isAvailable(ArchArgs::LP1K))
+ if (Arch::is_available(ArchArgs::LP1K))
arch.insert("Lattice iCE40LP1K", ArchArgs::LP1K);
- if (Arch::isAvailable(ArchArgs::HX1K))
+ if (Arch::is_available(ArchArgs::HX1K))
arch.insert("Lattice iCE40HX1K", ArchArgs::HX1K);
- if (Arch::isAvailable(ArchArgs::U1K))
+ if (Arch::is_available(ArchArgs::U1K))
arch.insert("Lattice iCE5LP1K", ArchArgs::U1K);
- if (Arch::isAvailable(ArchArgs::U2K))
+ if (Arch::is_available(ArchArgs::U2K))
arch.insert("Lattice iCE5LP2K", ArchArgs::U2K);
- if (Arch::isAvailable(ArchArgs::U4K))
+ if (Arch::is_available(ArchArgs::U4K))
arch.insert("Lattice iCE5LP4K", ArchArgs::U4K);
- if (Arch::isAvailable(ArchArgs::UP3K))
+ if (Arch::is_available(ArchArgs::UP3K))
arch.insert("Lattice iCE40UP3K", ArchArgs::UP3K);
- if (Arch::isAvailable(ArchArgs::UP5K))
+ if (Arch::is_available(ArchArgs::UP5K))
arch.insert("Lattice iCE40UP5K", ArchArgs::UP5K);
- if (Arch::isAvailable(ArchArgs::LP4K))
+ if (Arch::is_available(ArchArgs::LP4K))
arch.insert("Lattice iCE40LP4K", ArchArgs::LP4K);
- if (Arch::isAvailable(ArchArgs::LP8K))
+ if (Arch::is_available(ArchArgs::LP8K))
arch.insert("Lattice iCE40LP8K", ArchArgs::LP8K);
- if (Arch::isAvailable(ArchArgs::HX4K))
+ if (Arch::is_available(ArchArgs::HX4K))
arch.insert("Lattice iCE40HX4K", ArchArgs::HX4K);
- if (Arch::isAvailable(ArchArgs::HX8K))
+ if (Arch::is_available(ArchArgs::HX8K))
arch.insert("Lattice iCE40HX8K", ArchArgs::HX8K);
bool ok;
@@ -109,7 +109,7 @@ void MainWindow::new_proj() chipArgs.type = (ArchArgs::ArchArgsTypes)arch.value(item);
QStringList packages;
- for (auto package : Arch::getSupportedPackages(chipArgs.type))
+ for (auto package : Arch::get_supported_packages(chipArgs.type))
packages.append(QLatin1String(package.data(), package.size()));
QString package = QInputDialog::getItem(this, "Select package", "Package:", packages, 0, false, &ok);
|