summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar/livecode-toolbar.h
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-12-01 20:41:31 +0000
committers-ol <s-ol@users.noreply.github.com>2019-12-01 20:41:31 +0000
commit93f74e8d761c1ac04d0800765f5185243cf907a0 (patch)
treea5d8d1be6408a810c0b054d35bfccdbebdfccfb6 /src/ui/toolbar/livecode-toolbar.h
parentadd api and input modules for the livecoding tool (diff)
downloadinkscape-93f74e8d761c1ac04d0800765f5185243cf907a0.tar.gz
inkscape-93f74e8d761c1ac04d0800765f5185243cf907a0.zip
add basic livecode toolbar
Diffstat (limited to 'src/ui/toolbar/livecode-toolbar.h')
-rw-r--r--src/ui/toolbar/livecode-toolbar.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/ui/toolbar/livecode-toolbar.h b/src/ui/toolbar/livecode-toolbar.h
new file mode 100644
index 000000000..abfd4f46f
--- /dev/null
+++ b/src/ui/toolbar/livecode-toolbar.h
@@ -0,0 +1,47 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+#ifndef SEEN_LIVECODE_TOOLBAR_H
+#define SEEN_LIVECODE_TOOLBAR_H
+
+/**
+ * @file
+ * Livecode aux toolbar
+ */
+/* Authors:
+ * Sol Bekic <s+inkscape@s-ol.nu>
+ * Copyright (C) 2019 Authors
+ *
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+
+#include "toolbar.h"
+
+class SPDesktop;
+
+namespace Inkscape {
+namespace UI {
+namespace Widget {
+class ComboBoxEntryToolItem;
+}
+
+namespace Toolbar {
+class LivecodeToolbar : public Toolbar {
+private:
+ UI::Widget::ComboBoxEntryToolItem *_active_script;
+ Gtk::ToolButton *_select_library;
+
+ bool _freeze;
+ void active_script_value_changed();
+ void select_library_pressed();
+
+protected:
+ LivecodeToolbar(SPDesktop *desktop);
+
+public:
+ static GtkWidget *create(SPDesktop *desktop);
+};
+
+}
+}
+}
+
+#endif /* !SEEN_LIVECODE_TOOLBAR_H */