aboutsummaryrefslogtreecommitdiffstats
path: root/gui/application.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-22 16:48:56 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-22 16:49:15 +0200
commite5bd4764b27c86fa804700b18bcac5cf18815314 (patch)
treea43f9d83526631c73f58e02d3eb5ffcc6f878b22 /gui/application.h
parentcf78f1b0e4b937406471d2d44a74a9fba8e8c657 (diff)
downloadnextpnr-e5bd4764b27c86fa804700b18bcac5cf18815314.tar.gz
nextpnr-e5bd4764b27c86fa804700b18bcac5cf18815314.tar.bz2
nextpnr-e5bd4764b27c86fa804700b18bcac5cf18815314.zip
Added custom QApplication implementation
Diffstat (limited to 'gui/application.h')
-rw-r--r--gui/application.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/gui/application.h b/gui/application.h
new file mode 100644
index 00000000..321f6b65
--- /dev/null
+++ b/gui/application.h
@@ -0,0 +1,38 @@
+/*
+ * nextpnr -- Next Generation Place and Route
+ *
+ * Copyright (C) 2018 Miodrag Milanovic <miodrag@symbioticeda.com>
+ * Copyright (C) 2018 Serge Bazanski <q3k@symbioticeda.com>
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ */
+
+#ifndef APPLICATION_H
+#define APPLICATION_H
+
+#include <QApplication>
+#include "nextpnr.h"
+
+NEXTPNR_NAMESPACE_BEGIN
+
+class Application : public QApplication
+{
+ public:
+ Application(int &argc, char **argv);
+ bool notify(QObject *receiver, QEvent *event);
+};
+
+NEXTPNR_NAMESPACE_END
+
+#endif // APPLICATION_H \ No newline at end of file