12 |
#include <gtkmm.h> |
#include <gtkmm.h> |
13 |
#include <config.h> |
#include <config.h> |
14 |
#include "compat.h" |
#include "compat.h" |
15 |
|
#include <gtkmm/uimanager.h> |
16 |
|
#include <gtkmm/actiongroup.h> |
17 |
#include "ManagedWindow.h" |
#include "ManagedWindow.h" |
18 |
|
|
19 |
// 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 |
34 |
~ScriptEditor(); |
~ScriptEditor(); |
35 |
void setScript(gig::Script* script); |
void setScript(gig::Script* script); |
36 |
|
|
37 |
|
sigc::signal<void, gig::Script*> signal_script_to_be_changed; |
38 |
|
sigc::signal<void, gig::Script*> signal_script_changed; |
39 |
|
|
40 |
// implementation for abstract methods of interface class "ManagedWindow" |
// implementation for abstract methods of interface class "ManagedWindow" |
41 |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->scriptEditorWindowX; } |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->scriptEditorWindowX; } |
42 |
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->scriptEditorWindowY; } |
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->scriptEditorWindowY; } |
71 |
Glib::RefPtr<Gdk::Pixbuf> m_errorIcon; |
Glib::RefPtr<Gdk::Pixbuf> m_errorIcon; |
72 |
Glib::RefPtr<Gdk::Pixbuf> m_successIcon; |
Glib::RefPtr<Gdk::Pixbuf> m_successIcon; |
73 |
|
|
74 |
|
Glib::RefPtr<Gtk::ActionGroup> m_actionGroup; |
75 |
|
Glib::RefPtr<Gtk::UIManager> m_uiManager; |
76 |
|
|
77 |
gig::Script* m_script; |
gig::Script* m_script; |
78 |
#if USE_LS_SCRIPTVM |
#if USE_LS_SCRIPTVM |
79 |
LinuxSampler::ScriptVM* m_vm; |
LinuxSampler::ScriptVM* m_vm; |
98 |
#endif |
#endif |
99 |
bool on_motion_notify_event(GdkEventMotion* e); |
bool on_motion_notify_event(GdkEventMotion* e); |
100 |
bool onWindowDelete(GdkEventAny* e); |
bool onWindowDelete(GdkEventAny* e); |
101 |
|
void onMenuChangeFontSize(); |
102 |
|
int currentFontSize() const; |
103 |
|
void setFontSize(int size, bool save); |
104 |
}; |
}; |
105 |
|
|
106 |
#endif // GIGEDIT_SCRIPTEDITOR_H |
#endif // GIGEDIT_SCRIPTEDITOR_H |