mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-25 11:51:21 +00:00
clangformat
This commit is contained in:
@@ -463,5 +463,4 @@ void BaseMainWindow::save_proj()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
@@ -49,6 +49,7 @@ class BaseMainWindow : public QMainWindow
|
||||
virtual ~BaseMainWindow();
|
||||
Context *getContext() { return ctx.get(); }
|
||||
void updateJsonLoaded();
|
||||
|
||||
protected:
|
||||
void createMenusAndBars();
|
||||
void disableActions();
|
||||
|
||||
@@ -29,7 +29,8 @@ static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
|
||||
|
||||
NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent) : BaseMainWindow(std::move(context), args, parent)
|
||||
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
|
||||
: BaseMainWindow(std::move(context), args, parent)
|
||||
{
|
||||
initMainResource();
|
||||
|
||||
@@ -50,7 +51,8 @@ void MainWindow::newContext(Context *ctx)
|
||||
setWindowTitle(title.c_str());
|
||||
}
|
||||
|
||||
void MainWindow::createMenu() {
|
||||
void MainWindow::createMenu()
|
||||
{
|
||||
// Add arch specific actions
|
||||
actionLoadBase = new QAction("Open Base Config", this);
|
||||
actionLoadBase->setIcon(QIcon(":/icons/resources/open_base.png"));
|
||||
@@ -71,7 +73,7 @@ void MainWindow::createMenu() {
|
||||
|
||||
menuDesign->addSeparator();
|
||||
menuDesign->addAction(actionLoadBase);
|
||||
menuDesign->addAction(actionSaveConfig);
|
||||
menuDesign->addAction(actionSaveConfig);
|
||||
}
|
||||
|
||||
static const ChipInfoPOD *get_chip_info(const RelPtr<ChipInfoPOD> *ptr) { return ptr->get(); }
|
||||
@@ -96,8 +98,8 @@ static QStringList getSupportedPackages(ArchArgs::ArchArgsTypes chip)
|
||||
return packages;
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::new_proj() {
|
||||
void MainWindow::new_proj()
|
||||
{
|
||||
QMap<QString, int> arch;
|
||||
arch.insert("Lattice ECP5 25K", ArchArgs::LFE5U_25F);
|
||||
arch.insert("Lattice ECP5 45K", ArchArgs::LFE5U_45F);
|
||||
|
||||
@@ -47,6 +47,7 @@ class MainWindow : public BaseMainWindow
|
||||
void newContext(Context *ctx);
|
||||
void open_base();
|
||||
void save_config();
|
||||
|
||||
private:
|
||||
QAction *actionLoadBase;
|
||||
QAction *actionSaveConfig;
|
||||
|
||||
@@ -23,7 +23,8 @@ static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
|
||||
|
||||
NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent) : BaseMainWindow(std::move(context), args, parent)
|
||||
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
|
||||
: BaseMainWindow(std::move(context), args, parent)
|
||||
{
|
||||
initMainResource();
|
||||
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
#include <QIcon>
|
||||
#include <QInputDialog>
|
||||
#include <QLineEdit>
|
||||
#include <fstream>
|
||||
#include "bitstream.h"
|
||||
#include "design_utils.h"
|
||||
#include "jsonparse.h"
|
||||
#include "log.h"
|
||||
#include "pcf.h"
|
||||
#include <fstream>
|
||||
|
||||
static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user