22 |
#endif |
#endif |
23 |
|
|
24 |
#if USE_LS_SCRIPTVM |
#if USE_LS_SCRIPTVM |
25 |
namespace LinuxSampler { |
# include <linuxsampler/scriptvm/ScriptVM.h> |
26 |
class ScriptVM; |
# include <linuxsampler/scriptvm/ScriptVMFactory.h> |
|
} |
|
27 |
#endif |
#endif |
28 |
|
|
29 |
class ScriptEditor : public ManagedWindow { |
class ScriptEditor : public ManagedWindow { |
54 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocTag; |
55 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag; |
56 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag; |
57 |
|
Glib::RefPtr<Gtk::TextBuffer::Tag> m_readOnlyTag; |
58 |
Gtk::TextView m_textView; |
Gtk::TextView m_textView; |
59 |
Gtk::Button m_applyButton; |
Gtk::Button m_applyButton; |
60 |
Gtk::Button m_cancelButton; |
Gtk::Button m_cancelButton; |
62 |
gig::Script* m_script; |
gig::Script* m_script; |
63 |
#if USE_LS_SCRIPTVM |
#if USE_LS_SCRIPTVM |
64 |
LinuxSampler::ScriptVM* m_vm; |
LinuxSampler::ScriptVM* m_vm; |
65 |
|
std::vector<LinuxSampler::ParserIssue> m_issues; |
66 |
#endif |
#endif |
67 |
|
|
68 |
|
bool m_ignoreEraseEvents; |
69 |
|
|
70 |
void onButtonCancel(); |
void onButtonCancel(); |
71 |
void onButtonApply(); |
void onButtonApply(); |
72 |
void onWindowHide(); |
void onWindowHide(); |
74 |
void onTextErased(const Gtk::TextBuffer::iterator& itStart, const Gtk::TextBuffer::iterator& itEnd); |
void onTextErased(const Gtk::TextBuffer::iterator& itStart, const Gtk::TextBuffer::iterator& itEnd); |
75 |
void onModifiedChanged(); |
void onModifiedChanged(); |
76 |
#if USE_LS_SCRIPTVM |
#if USE_LS_SCRIPTVM |
77 |
|
void removeIssueAnchors(); |
78 |
void updateSyntaxHighlightingByVM(); |
void updateSyntaxHighlightingByVM(); |
79 |
void updateParserIssuesByVM(); |
void updateParserIssuesByVM(); |
80 |
LinuxSampler::ScriptVM* GetScriptVM(); |
LinuxSampler::ScriptVM* GetScriptVM(); |