aboutsummaryrefslogtreecommitdiffstats
path: root/gui/ecp5/mainwindow.h
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2018-08-04 04:05:38 -0700
committerGitHub <noreply@github.com>2018-08-04 04:05:38 -0700
commitdc34d4c9ed11e034bf9f81c02365496658f36517 (patch)
tree4cfb053ffccefe134d1ef84ecb5bce972fa0d167 /gui/ecp5/mainwindow.h
parentf5a1b93f0e9348437ece7fb7d46ac69af98536d0 (diff)
parent0cb349b60ea17378a4c163f0c8b12e8b17988cee (diff)
downloadnextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.tar.gz
nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.tar.bz2
nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.zip
Merge pull request #33 from YosysHQ/gui-ecp5
Gui ecp5
Diffstat (limited to 'gui/ecp5/mainwindow.h')
-rw-r--r--gui/ecp5/mainwindow.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/gui/ecp5/mainwindow.h b/gui/ecp5/mainwindow.h
index e97bb4e7..d1d5a5a2 100644
--- a/gui/ecp5/mainwindow.h
+++ b/gui/ecp5/mainwindow.h
@@ -29,16 +29,32 @@ class MainWindow : public BaseMainWindow
Q_OBJECT
public:
- explicit MainWindow(std::unique_ptr<Context> context, QWidget *parent = 0);
+ explicit MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent = 0);
virtual ~MainWindow();
public:
void createMenu();
+ void load_base_config(std::string filename);
+
+ protected:
+ void onDisableActions() override;
+ void onRouteFinished() override;
protected Q_SLOTS:
virtual void new_proj();
virtual void open_proj();
virtual bool save_proj();
+ void newContext(Context *ctx);
+ void open_base();
+ void save_config();
+ private:
+ QAction *actionLoadBase;
+ QAction *actionSaveConfig;
+
+ ArchArgs chipArgs;
+
+ std::string currentProj;
+ std::string currentBaseConfig;
};
NEXTPNR_NAMESPACE_END