diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-21 15:41:40 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-21 15:42:19 +0200 |
commit | 097df1869d654b1214b925fe991aa09d2ef5b3cd (patch) | |
tree | e14442d2e98d53a4c4c8985d64cd963e48fba085 /gui/basewindow.h | |
parent | 2d405f966b4e69b95cd4ea9acbb5438e1fa91e69 (diff) | |
download | nextpnr-097df1869d654b1214b925fe991aa09d2ef5b3cd.tar.gz nextpnr-097df1869d654b1214b925fe991aa09d2ef5b3cd.tar.bz2 nextpnr-097df1869d654b1214b925fe991aa09d2ef5b3cd.zip |
Added task manager and worker thread for ice40
Diffstat (limited to 'gui/basewindow.h')
-rw-r--r-- | gui/basewindow.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/basewindow.h b/gui/basewindow.h index 1d0ac468..d6915ae9 100644 --- a/gui/basewindow.h +++ b/gui/basewindow.h @@ -14,13 +14,15 @@ // FIXME
USING_NEXTPNR_NAMESPACE
+Q_DECLARE_METATYPE(std::string)
+
class BaseMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit BaseMainWindow(Context *ctx, QWidget *parent = 0);
- ~BaseMainWindow();
+ virtual ~BaseMainWindow();
Context *getContext() { return ctx; }
protected:
@@ -28,8 +30,9 @@ class BaseMainWindow : public QMainWindow protected Q_SLOTS:
void writeInfo(std::string text);
- void open();
- bool save();
+
+ virtual void open() = 0;
+ virtual bool save() = 0;
protected:
Context *ctx;
|