1 |
/* |
/* |
2 |
Copyright (c) 2014-2016 Christian Schoenebeck |
Copyright (c) 2014-2017 Christian Schoenebeck |
3 |
|
|
4 |
This file is part of "gigedit" and released under the terms of the |
This file is part of "gigedit" and released under the terms of the |
5 |
GNU General Public License version 2. |
GNU General Public License version 2. |
8 |
#ifndef GIGEDIT_SCRIPTEDITOR_H |
#ifndef GIGEDIT_SCRIPTEDITOR_H |
9 |
#define GIGEDIT_SCRIPTEDITOR_H |
#define GIGEDIT_SCRIPTEDITOR_H |
10 |
|
|
11 |
#include <gig.h> |
#ifdef LIBGIG_HEADER_FILE |
12 |
|
# include LIBGIG_HEADER_FILE(gig.h) |
13 |
|
#else |
14 |
|
# include <gig.h> |
15 |
|
#endif |
16 |
|
|
17 |
#include <gtkmm.h> |
#include <gtkmm.h> |
18 |
#include <config.h> |
#if HAVE_CONFIG_H |
19 |
|
# include <config.h> |
20 |
|
#endif |
21 |
#include "compat.h" |
#include "compat.h" |
22 |
#include <gtkmm/uimanager.h> |
#include <gtkmm/uimanager.h> |
23 |
#include <gtkmm/actiongroup.h> |
#include <gtkmm/actiongroup.h> |
31 |
#endif |
#endif |
32 |
|
|
33 |
#if USE_LS_SCRIPTVM |
#if USE_LS_SCRIPTVM |
34 |
# include <linuxsampler/scriptvm/ScriptVM.h> |
# ifdef LIBLINUXSAMPLER_HEADER_FILE |
35 |
# include <linuxsampler/scriptvm/ScriptVMFactory.h> |
# include LIBLINUXSAMPLER_HEADER_FILE(scriptvm/ScriptVM.h) |
36 |
|
# include LIBLINUXSAMPLER_HEADER_FILE(scriptvm/ScriptVMFactory.h) |
37 |
|
# else |
38 |
|
# include <linuxsampler/scriptvm/ScriptVM.h> |
39 |
|
# include <linuxsampler/scriptvm/ScriptVMFactory.h> |
40 |
|
# endif |
41 |
#endif |
#endif |
42 |
|
|
43 |
class ScriptEditor : public ManagedWindow { |
class ScriptEditor : public ManagedWindow { |
73 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocTag; |
74 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag; |
75 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag; |
76 |
|
Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocCommentTag; |
77 |
Gtk::TextView m_textView; |
Gtk::TextView m_textView; |
78 |
Gtk::Image m_statusImage; |
Gtk::Image m_statusImage; |
79 |
Gtk::Label m_statusLabel; |
Gtk::Label m_statusLabel; |
93 |
std::vector<LinuxSampler::ParserIssue> m_issues; |
std::vector<LinuxSampler::ParserIssue> m_issues; |
94 |
std::vector<LinuxSampler::ParserIssue> m_errors; |
std::vector<LinuxSampler::ParserIssue> m_errors; |
95 |
std::vector<LinuxSampler::ParserIssue> m_warnings; |
std::vector<LinuxSampler::ParserIssue> m_warnings; |
96 |
|
std::vector<LinuxSampler::CodeBlock> m_preprocComments; |
97 |
#endif |
#endif |
98 |
|
|
99 |
bool isModified() const; |
bool isModified() const; |