aboutsummaryrefslogtreecommitdiffstats
path: root/gui/basewindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/basewindow.h')
-rw-r--r--gui/basewindow.h9
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;