diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-04 18:40:37 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-04 18:40:37 -0700 |
commit | aebb39c65125573386165dee3afbb93d6a18241e (patch) | |
tree | 626f0ee4c250c9b4dd0615b5ea3eb01773ed8ea7 /gui/ecp5/mainwindow.h | |
parent | dced12cbd2355604279c7277c8a48f584771dfb8 (diff) | |
parent | 7d5dba3ad378563869657b4330c178ecd8c24931 (diff) | |
download | nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.tar.gz nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.tar.bz2 nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.zip |
Merge branch 'master' into slack_histogram
Diffstat (limited to 'gui/ecp5/mainwindow.h')
-rw-r--r-- | gui/ecp5/mainwindow.h | 18 |
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
|