/[svn]/gigedit/trunk/src/gigedit/scripteditor.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/scripteditor.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2886 by schoenebeck, Fri Apr 22 15:55:08 2016 UTC revision 2893 by schoenebeck, Fri Apr 29 14:19:53 2016 UTC
# Line 11  Line 11 
11  #include <gig.h>  #include <gig.h>
12  #include <gtkmm.h>  #include <gtkmm.h>
13  #include <config.h>  #include <config.h>
   
14  #include "compat.h"  #include "compat.h"
15    #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 features NKSP syntax highlighting backend from
# Line 27  namespace LinuxSampler { Line 27  namespace LinuxSampler {
27  }  }
28  #endif  #endif
29    
30  class ScriptEditor : public Gtk::Window {  class ScriptEditor : public ManagedWindow {
31  public:  public:
32      ScriptEditor();      ScriptEditor();
33     ~ScriptEditor();     ~ScriptEditor();
34      void setScript(gig::Script* script);      void setScript(gig::Script* script);
35    
36        // implementation for abstract methods of interface class "ManagedWindow"
37        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->scriptEditorWindowX; }
38        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->scriptEditorWindowY; }
39        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->scriptEditorWindowW; }
40        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->scriptEditorWindowH; }
41    
42  protected:  protected:
43      Gtk::VBox m_vbox;      Gtk::VBox m_vbox;
44      Gtk::HButtonBox m_buttonBox;      Gtk::HButtonBox m_buttonBox;
# Line 46  protected: Line 53  protected:
53      Glib::RefPtr<Gtk::TextBuffer::Tag> m_stringTag;      Glib::RefPtr<Gtk::TextBuffer::Tag> m_stringTag;
54      Glib::RefPtr<Gtk::TextBuffer::Tag> m_commentTag;      Glib::RefPtr<Gtk::TextBuffer::Tag> m_commentTag;
55      Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocTag;      Glib::RefPtr<Gtk::TextBuffer::Tag> m_preprocTag;
56        Glib::RefPtr<Gtk::TextBuffer::Tag> m_errorTag;
57        Glib::RefPtr<Gtk::TextBuffer::Tag> m_warningTag;
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;
# Line 63  protected: Line 72  protected:
72      void onModifiedChanged();      void onModifiedChanged();
73  #if USE_LS_SCRIPTVM  #if USE_LS_SCRIPTVM
74      void updateSyntaxHighlightingByVM();      void updateSyntaxHighlightingByVM();
75        void updateParserIssuesByVM();
76        LinuxSampler::ScriptVM* GetScriptVM();
77  #endif  #endif
78  };  };
79    

Legend:
Removed from v.2886  
changed lines
  Added in v.2893

  ViewVC Help
Powered by ViewVC