diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2018-08-08 09:18:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 09:18:03 -0700 |
commit | 330bb86bfcfd0e1727c6e786f41b1f4c2440cac4 (patch) | |
tree | ea6a0c6531aed19796cfa6ab50a24fb1408ad72f /gui/basewindow.h | |
parent | 8553573d2485ac2ec60d1c49949c254e02d35490 (diff) | |
parent | fc5cee6fb896bc4d7a8b79dcde789e03c787bd89 (diff) | |
download | nextpnr-330bb86bfcfd0e1727c6e786f41b1f4c2440cac4.tar.gz nextpnr-330bb86bfcfd0e1727c6e786f41b1f4c2440cac4.tar.bz2 nextpnr-330bb86bfcfd0e1727c6e786f41b1f4c2440cac4.zip |
Merge pull request #43 from YosysHQ/common_main
Common main and project
Diffstat (limited to 'gui/basewindow.h')
-rw-r--r-- | gui/basewindow.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gui/basewindow.h b/gui/basewindow.h index 341cc8e2..6e8f8587 100644 --- a/gui/basewindow.h +++ b/gui/basewindow.h @@ -48,14 +48,16 @@ class BaseMainWindow : public QMainWindow explicit BaseMainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent = 0);
virtual ~BaseMainWindow();
Context *getContext() { return ctx.get(); }
-
- void load_json(std::string filename);
+ void updateJsonLoaded();
protected:
void createMenusAndBars();
void disableActions();
+ void load_json(std::string filename);
+
virtual void onDisableActions(){};
virtual void onJsonLoaded(){};
+ virtual void onProjectLoaded(){};
virtual void onPackFinished(){};
virtual void onBudgetFinished(){};
virtual void onPlaceFinished(){};
@@ -66,8 +68,9 @@ class BaseMainWindow : public QMainWindow void closeTab(int index);
virtual void new_proj() = 0;
- virtual void open_proj() = 0;
- virtual bool save_proj() = 0;
+
+ void open_proj();
+ void save_proj();
void open_json();
void budget();
@@ -93,6 +96,7 @@ class BaseMainWindow : public QMainWindow TaskManager *task;
bool timing_driven;
std::string currentJson;
+ std::string currentProj;
// main widgets
QTabWidget *tabWidget;
|