15 |
#include "ManagedWindow.h" |
#include "ManagedWindow.h" |
16 |
|
|
17 |
// Should we use a very simple (and buggy) local NKSP syntax parser, or should |
// Should we use a very simple (and buggy) local NKSP syntax parser, or should |
18 |
// we rather use the full features NKSP syntax highlighting backend from |
// we rather use the full featured NKSP syntax highlighting backend from |
19 |
// liblinuxsampler for syntax highlighting of this text editor? |
// liblinuxsampler for syntax highlighting of this text editor? |
20 |
#if HAVE_LINUXSAMPLER |
#if HAVE_LINUXSAMPLER |
21 |
# define USE_LS_SCRIPTVM 1 |
# define USE_LS_SCRIPTVM 1 |
40 |
|
|
41 |
protected: |
protected: |
42 |
Gtk::VBox m_vbox; |
Gtk::VBox m_vbox; |
43 |
|
Gtk::HBox m_footerHBox; |
44 |
|
Gtk::HBox m_statusHBox; |
45 |
Gtk::HButtonBox m_buttonBox; |
Gtk::HButtonBox m_buttonBox; |
46 |
Gtk::ScrolledWindow m_scrolledWindow; |
Gtk::ScrolledWindow m_scrolledWindow; |
47 |
Glib::RefPtr<Gtk::TextBuffer> m_textBuffer; |
Glib::RefPtr<Gtk::TextBuffer> m_textBuffer; |
57 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag; |
58 |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag; |
Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag; |
59 |
Gtk::TextView m_textView; |
Gtk::TextView m_textView; |
60 |
|
Gtk::Image m_statusImage; |
61 |
|
Gtk::Label m_statusLabel; |
62 |
Gtk::Button m_applyButton; |
Gtk::Button m_applyButton; |
63 |
Gtk::Button m_cancelButton; |
Gtk::Button m_cancelButton; |
64 |
|
|
65 |
|
Glib::RefPtr<Gdk::Pixbuf> m_warningIcon; |
66 |
|
Glib::RefPtr<Gdk::Pixbuf> m_errorIcon; |
67 |
|
Glib::RefPtr<Gdk::Pixbuf> m_successIcon; |
68 |
|
|
69 |
gig::Script* m_script; |
gig::Script* m_script; |
70 |
#if USE_LS_SCRIPTVM |
#if USE_LS_SCRIPTVM |
71 |
LinuxSampler::ScriptVM* m_vm; |
LinuxSampler::ScriptVM* m_vm; |
72 |
std::vector<LinuxSampler::ParserIssue> m_issues; |
std::vector<LinuxSampler::ParserIssue> m_issues; |
73 |
|
std::vector<LinuxSampler::ParserIssue> m_errors; |
74 |
|
std::vector<LinuxSampler::ParserIssue> m_warnings; |
75 |
#endif |
#endif |
76 |
|
|
77 |
bool isModified() const; |
bool isModified() const; |
86 |
void updateParserIssuesByVM(); |
void updateParserIssuesByVM(); |
87 |
LinuxSampler::ScriptVM* GetScriptVM(); |
LinuxSampler::ScriptVM* GetScriptVM(); |
88 |
void updateIssueTooltip(GdkEventMotion* e); |
void updateIssueTooltip(GdkEventMotion* e); |
89 |
|
void updateStatusBar(); |
90 |
#endif |
#endif |
91 |
bool on_motion_notify_event(GdkEventMotion* e); |
bool on_motion_notify_event(GdkEventMotion* e); |
92 |
bool onWindowDelete(GdkEventAny* e); |
bool onWindowDelete(GdkEventAny* e); |