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

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

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

revision 2901 by schoenebeck, Mon May 2 16:10:56 2016 UTC revision 3310 by schoenebeck, Sat Jul 15 12:02:21 2017 UTC
# Line 1  Line 1 
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.
# Line 7  Line 7 
7    
8  #include "scripteditor.h"  #include "scripteditor.h"
9  #include "global.h"  #include "global.h"
10    #include <gtk/gtkwidget.h> // for gtk_widget_modify_*()
11    
12  #if !USE_LS_SCRIPTVM  #if !USE_LS_SCRIPTVM
13    
14  static const std::string _keywords[] = {  static const std::string _keywords[] = {
15      "on", "end", "declare", "while", "if", "or", "and", "not", "else", "case",      "on", "end", "declare", "while", "if", "or", "and", "not", "else", "case",
16      "select", "to", "const", "polyphonic", "mod"      "select", "to", "const", "polyphonic", "mod", "synchronized"
17  };  };
18  static int _keywordsSz = sizeof(_keywords) / sizeof(std::string);  static int _keywordsSz = sizeof(_keywords) / sizeof(std::string);
19    
# Line 41  static Glib::RefPtr<Gdk::Pixbuf> createI Line 42  static Glib::RefPtr<Gdk::Pixbuf> createI
42      int w = 0;      int w = 0;
43      int h = 0; // ignored      int h = 0; // ignored
44      Gtk::IconSize::lookup(Gtk::ICON_SIZE_SMALL_TOOLBAR, w, h);      Gtk::IconSize::lookup(Gtk::ICON_SIZE_SMALL_TOOLBAR, w, h);
45        if (!theme->has_icon(name))
46            return Glib::RefPtr<Gdk::Pixbuf>();
47      Glib::RefPtr<Gdk::Pixbuf> pixbuf = theme->load_icon(name, w, Gtk::ICON_LOOKUP_GENERIC_FALLBACK);      Glib::RefPtr<Gdk::Pixbuf> pixbuf = theme->load_icon(name, w, Gtk::ICON_LOOKUP_GENERIC_FALLBACK);
48      if (pixbuf->get_height() != targetH) {      if (pixbuf->get_height() != targetH) {
49          pixbuf = pixbuf->scale_simple(targetH, targetH, Gdk::INTERP_BILINEAR);          pixbuf = pixbuf->scale_simple(targetH, targetH, Gdk::INTERP_BILINEAR);
# Line 48  static Glib::RefPtr<Gdk::Pixbuf> createI Line 51  static Glib::RefPtr<Gdk::Pixbuf> createI
51      return pixbuf;      return pixbuf;
52  }  }
53    
54    static Glib::RefPtr<Gdk::Pixbuf> createIcon(std::vector<std::string> alternativeNames, const Glib::RefPtr<Gdk::Screen>& screen) {
55        for (int i = 0; i < alternativeNames.size(); ++i) {
56            Glib::RefPtr<Gdk::Pixbuf> buf = createIcon(alternativeNames[i], screen);
57            if (buf) return buf;
58        }
59        return Glib::RefPtr<Gdk::Pixbuf>();
60    }
61    
62  ScriptEditor::ScriptEditor() :  ScriptEditor::ScriptEditor() :
63      m_statusLabel("",  Gtk::ALIGN_START),      m_statusLabel("",  Gtk::ALIGN_START),
64      m_applyButton(_("_Apply"), true),      m_applyButton(Gtk::Stock::APPLY),
65      m_cancelButton(_("_Cancel"), true)      m_cancelButton(Gtk::Stock::CANCEL)
66  {  {
67      m_script = NULL;      m_script = NULL;
68  #if USE_LS_SCRIPTVM  #if USE_LS_SCRIPTVM
69      m_vm = NULL;      m_vm = NULL;
70  #endif  #endif
71    
72      m_errorIcon = createIcon("dialog-error", get_screen());      if (!Settings::singleton()->autoRestoreWindowDimension) {
73      m_warningIcon = createIcon("dialog-warning-symbolic", get_screen());          set_default_size(800, 700);
74      m_successIcon = createIcon("emblem-default", get_screen());          set_position(Gtk::WIN_POS_MOUSE);
75        }
76    
77        // depending on GTK version and installed themes, there may be different
78        // icons, and different names for them, so for each type of icon we use,
79        // we provide a list of possible icon names, the first one found to be
80        // installed on the local system from the list will be used and loaded for
81        // the respective purpose (so order matters in those lists)
82        //
83        // (see https://developer.gnome.org/gtkmm/stable/namespaceGtk_1_1Stock.html for
84        // available icon names)
85        std::vector<std::string> errorIconNames;
86        errorIconNames.push_back("dialog-error");
87        errorIconNames.push_back("media-record");
88        errorIconNames.push_back("process-stop");
89    
90        std::vector<std::string> warningIconNames;
91        warningIconNames.push_back("dialog-warning-symbolic");
92        warningIconNames.push_back("dialog-warning");
93    
94        std::vector<std::string> successIconNames;
95        successIconNames.push_back("emblem-default");
96        successIconNames.push_back("tools-check-spelling");
97    
98        m_errorIcon = createIcon(errorIconNames, get_screen());
99        m_warningIcon = createIcon(warningIconNames, get_screen());
100        m_successIcon = createIcon(successIconNames, get_screen());
101    
102      add(m_vbox);      add(m_vbox);
103    
# Line 96  ScriptEditor::ScriptEditor() : Line 133  ScriptEditor::ScriptEditor() :
133      m_commentTag->property_foreground() = "#9c9c9c"; // gray      m_commentTag->property_foreground() = "#9c9c9c"; // gray
134      m_tagTable->add(m_commentTag);      m_tagTable->add(m_commentTag);
135    
136        #define PREPROC_TOKEN_COLOR  "#2f8a33" // green
137    
138      m_preprocTag = Gtk::TextBuffer::Tag::create();      m_preprocTag = Gtk::TextBuffer::Tag::create();
139      m_preprocTag->property_foreground() = "#2f8a33"; // green      m_preprocTag->property_foreground() = PREPROC_TOKEN_COLOR;
140      m_tagTable->add(m_preprocTag);      m_tagTable->add(m_preprocTag);
141    
142        m_preprocCommentTag = Gtk::TextBuffer::Tag::create();
143        m_preprocCommentTag->property_strikethrough() = true;
144        m_preprocCommentTag->property_background() = "#e5e5e5";
145        m_tagTable->add(m_preprocCommentTag);
146    
147      m_errorTag = Gtk::TextBuffer::Tag::create();      m_errorTag = Gtk::TextBuffer::Tag::create();
148      m_errorTag->property_background() = "#ff9393"; // red      m_errorTag->property_background() = "#ff9393"; // red
149      m_tagTable->add(m_errorTag);      m_tagTable->add(m_errorTag);
# Line 108  ScriptEditor::ScriptEditor() : Line 152  ScriptEditor::ScriptEditor() :
152      m_warningTag->property_background() = "#fffd7c"; // yellow      m_warningTag->property_background() = "#fffd7c"; // yellow
153      m_tagTable->add(m_warningTag);      m_tagTable->add(m_warningTag);
154    
155        m_lineNrTag = Gtk::TextBuffer::Tag::create();
156        m_lineNrTag->property_foreground() = "#CCCCCC";
157        m_tagTable->add(m_lineNrTag);
158    
159      // create menu      // create menu
160      m_actionGroup = Gtk::ActionGroup::create();      m_actionGroup = Gtk::ActionGroup::create();
161      m_actionGroup->add(Gtk::Action::create("MenuScript", _("_Script")));      m_actionGroup->add(Gtk::Action::create("MenuScript", _("_Script")));
# Line 115  ScriptEditor::ScriptEditor() : Line 163  ScriptEditor::ScriptEditor() :
163                         Gtk::AccelKey("<control>s"),                         Gtk::AccelKey("<control>s"),
164                         sigc::mem_fun(*this, &ScriptEditor::onButtonApply));                         sigc::mem_fun(*this, &ScriptEditor::onButtonApply));
165      m_actionGroup->add(Gtk::Action::create("Close", _("_Close")),      m_actionGroup->add(Gtk::Action::create("Close", _("_Close")),
166                         Gtk::AccelKey("<control>x"),                         Gtk::AccelKey("<control>q"),
167                         sigc::mem_fun(*this, &ScriptEditor::onButtonCancel));                         sigc::mem_fun(*this, &ScriptEditor::onButtonCancel));
168        m_actionGroup->add(Gtk::Action::create("MenuEditor", _("_Editor")));
169        m_actionGroup->add(Gtk::Action::create("ChangeFont", _("_Font Size ...")),
170                           sigc::mem_fun(*this, &ScriptEditor::onMenuChangeFontSize));
171      m_uiManager = Gtk::UIManager::create();      m_uiManager = Gtk::UIManager::create();
172      m_uiManager->insert_action_group(m_actionGroup);      m_uiManager->insert_action_group(m_actionGroup);
173      add_accel_group(m_uiManager->get_accel_group());      add_accel_group(m_uiManager->get_accel_group());
# Line 128  ScriptEditor::ScriptEditor() : Line 179  ScriptEditor::ScriptEditor() :
179          "      <separator/>"          "      <separator/>"
180          "      <menuitem action='Close'/>"          "      <menuitem action='Close'/>"
181          "    </menu>"          "    </menu>"
182            "    <menu action='MenuEditor'>"
183            "      <menuitem action='ChangeFont'/>"
184            "    </menu>"
185          "  </menubar>"          "  </menubar>"
186          "</ui>"          "</ui>"
187      );      );
188    
189      m_textBuffer = Gtk::TextBuffer::create(m_tagTable);      m_lineNrBuffer = Gtk::TextBuffer::create(m_tagTable);
190      m_textView.set_buffer(m_textBuffer);      m_lineNrView.set_buffer(m_lineNrBuffer);
191        m_lineNrView.set_left_margin(3);
192        m_lineNrView.set_right_margin(3);
193        m_lineNrTextViewSpacer.set_size_request(5);
194      {      {
195          Pango::FontDescription fdesc;          Gdk::Color color;
196          fdesc.set_family("monospace");          color.set("#F5F5F5");
197  #if defined(__APPLE__)          GtkWidget* widget = (GtkWidget*) m_lineNrView.gobj();
198          fdesc.set_size(12 * PANGO_SCALE);          gtk_widget_modify_base(widget, GTK_STATE_NORMAL, color.gobj());
199  #else          gtk_widget_modify_bg(widget, GTK_STATE_NORMAL, color.gobj());
200          fdesc.set_size(10 * PANGO_SCALE);      }
201  #endif      {
202  #if GTKMM_MAJOR_VERSION < 3          Gdk::Color color;
203          m_textView.modify_font(fdesc);          color.set("#EEEEEE");
204  #else          GtkWidget* widget = (GtkWidget*) m_lineNrTextViewSpacer.gobj();
205          m_textView.override_font(fdesc);          gtk_widget_modify_base(widget, GTK_STATE_NORMAL, color.gobj());
206  #endif          gtk_widget_modify_bg(widget, GTK_STATE_NORMAL, color.gobj());
207      }      }
208      m_scrolledWindow.add(m_textView);      m_textBuffer = Gtk::TextBuffer::create(m_tagTable);
209        m_textView.set_buffer(m_textBuffer);
210        m_textView.set_left_margin(5);
211        setFontSize(currentFontSize(), false);
212        m_textViewHBox.pack_start(m_lineNrView, Gtk::PACK_SHRINK);
213        m_textViewHBox.pack_start(m_lineNrTextViewSpacer, Gtk::PACK_SHRINK);
214        m_textViewHBox.add(m_textView);
215        m_scrolledWindow.add(m_textViewHBox);
216      m_scrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);      m_scrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
217    
218      Gtk::Widget* menuBar = m_uiManager->get_widget("/MenuBar");      Gtk::Widget* menuBar = m_uiManager->get_widget("/MenuBar");
# Line 216  ScriptEditor::~ScriptEditor() { Line 280  ScriptEditor::~ScriptEditor() {
280  #endif  #endif
281  }  }
282    
283    int ScriptEditor::currentFontSize() const {
284    #if defined(__APPLE__)
285        const int defaultFontSize = 13;
286    #else
287        const int defaultFontSize = 10;
288    #endif
289        const int settingFontSize = Settings::singleton()->scriptEditorFontSize;
290        const int fontSize = (settingFontSize > 0) ? settingFontSize : defaultFontSize;
291        return fontSize;
292    }
293    
294    void ScriptEditor::setFontSize(int size, bool save) {
295        //printf("setFontSize(%d,%d)\n", size, save);
296        Pango::FontDescription fdesc;
297        fdesc.set_family("monospace");
298        fdesc.set_size(size * PANGO_SCALE);
299    #if GTKMM_MAJOR_VERSION < 3
300        m_lineNrView.modify_font(fdesc);
301        m_textView.modify_font(fdesc);
302    #else
303        m_lineNrView.override_font(fdesc);
304        m_textView.override_font(fdesc);
305    #endif
306        if (save) Settings::singleton()->scriptEditorFontSize = size;
307    }
308    
309  void ScriptEditor::setScript(gig::Script* script) {  void ScriptEditor::setScript(gig::Script* script) {
310      m_script = script;      m_script = script;
311      if (!script) {      if (!script) {
# Line 231  void ScriptEditor::setScript(gig::Script Line 321  void ScriptEditor::setScript(gig::Script
321      m_textBuffer->set_modified(false);      m_textBuffer->set_modified(false);
322  }  }
323    
324    void ScriptEditor::updateLineNumbers() {
325        const int n = m_textBuffer->get_line_count();
326        const int old = m_lineNrBuffer->get_line_count();
327        if (n == old) return;
328        Glib::ustring s;
329        for (int i = 0; i < n; ++i) {
330            if (i) s += "\n";
331            s += ToString(i+1);
332        }
333        m_lineNrBuffer->remove_all_tags(m_lineNrBuffer->begin(), m_lineNrBuffer->end());
334        m_lineNrBuffer->set_text(s);
335        m_lineNrBuffer->apply_tag(m_lineNrTag, m_lineNrBuffer->begin(), m_lineNrBuffer->end());
336    }
337    
338  void ScriptEditor::onTextInserted(const Gtk::TextBuffer::iterator& itEnd, const Glib::ustring& txt, int length) {  void ScriptEditor::onTextInserted(const Gtk::TextBuffer::iterator& itEnd, const Glib::ustring& txt, int length) {
339      //printf("onTextInserted()\n");      //printf("onTextInserted()\n");
340  #if USE_LS_SCRIPTVM  #if USE_LS_SCRIPTVM
# Line 281  void ScriptEditor::onTextInserted(const Line 385  void ScriptEditor::onTextInserted(const
385      ;      ;
386            
387  #endif // USE_LS_SCRIPTVM  #endif // USE_LS_SCRIPTVM
388        updateLineNumbers();
389  }  }
390    
391  #if USE_LS_SCRIPTVM  #if USE_LS_SCRIPTVM
# Line 290  LinuxSampler::ScriptVM* ScriptEditor::Ge Line 395  LinuxSampler::ScriptVM* ScriptEditor::Ge
395      return m_vm;      return m_vm;
396  }  }
397    
398  static void getIteratorsForIssue(Glib::RefPtr<Gtk::TextBuffer>& txtbuf, const LinuxSampler::ParserIssue& issue, Gtk::TextBuffer::iterator& start, Gtk::TextBuffer::iterator& end) {  template<class T>
399      start = txtbuf->get_iter_at_line_index(issue.firstLine - 1, issue.firstColumn - 1);  static void getIteratorsForIssue(Glib::RefPtr<Gtk::TextBuffer>& txtbuf, const T& issue, Gtk::TextBuffer::iterator& start, Gtk::TextBuffer::iterator& end) {
400        Gtk::TextBuffer::iterator itLine =
401            txtbuf->get_iter_at_line_index(issue.firstLine - 1, 0);
402        const int charsInLine = itLine.get_bytes_in_line();
403        start = txtbuf->get_iter_at_line_index(
404            issue.firstLine - 1,
405            // check we are not getting past the end of the line here, otherwise Gtk crashes
406            issue.firstColumn - 1 < charsInLine ? issue.firstColumn - 1 : charsInLine - 1
407        );
408      end = start;      end = start;
409      end.forward_lines(issue.lastLine - issue.firstLine);      end.forward_lines(issue.lastLine - issue.firstLine);
410      end.forward_chars(      end.forward_chars(
# Line 302  static void getIteratorsForIssue(Glib::R Line 415  static void getIteratorsForIssue(Glib::R
415  }  }
416    
417  static void applyCodeTag(Glib::RefPtr<Gtk::TextBuffer>& txtbuf, const LinuxSampler::VMSourceToken& token, Glib::RefPtr<Gtk::TextBuffer::Tag>& tag) {  static void applyCodeTag(Glib::RefPtr<Gtk::TextBuffer>& txtbuf, const LinuxSampler::VMSourceToken& token, Glib::RefPtr<Gtk::TextBuffer::Tag>& tag) {
418      Gtk::TextBuffer::iterator itStart =      Gtk::TextBuffer::iterator itLine =
419          txtbuf->get_iter_at_line_index(token.firstLine(), token.firstColumn());          txtbuf->get_iter_at_line_index(token.firstLine(), 0);
420        const int charsInLine = itLine.get_bytes_in_line();
421        Gtk::TextBuffer::iterator itStart = txtbuf->get_iter_at_line_index(
422            token.firstLine(),
423            // check we are not getting past the end of the line here, otherwise Gtk crashes
424            token.firstColumn() < charsInLine ? token.firstColumn() : charsInLine - 1
425        );
426      Gtk::TextBuffer::iterator itEnd = itStart;      Gtk::TextBuffer::iterator itEnd = itStart;
427      const int length = token.text().length();      const int length = token.text().length();
428      itEnd.forward_chars(length);      itEnd.forward_chars(length);
# Line 316  static void applyCodeTag(Glib::RefPtr<Gt Line 435  static void applyCodeTag(Glib::RefPtr<Gt
435      txtbuf->apply_tag(tag, itStart, itEnd);      txtbuf->apply_tag(tag, itStart, itEnd);
436  }  }
437    
438    static void applyPreprocessorComment(Glib::RefPtr<Gtk::TextBuffer>& txtbuf, const LinuxSampler::CodeBlock& block, Glib::RefPtr<Gtk::TextBuffer::Tag>& tag) {
439        Gtk::TextBuffer::iterator itStart, itEnd;
440        getIteratorsForIssue(txtbuf, block, itStart, itEnd);
441        txtbuf->apply_tag(tag, itStart, itEnd);
442    }
443    
444  void ScriptEditor::updateSyntaxHighlightingByVM() {  void ScriptEditor::updateSyntaxHighlightingByVM() {
445      GetScriptVM();      GetScriptVM();
446      const std::string s = m_textBuffer->get_text();      const std::string s = m_textBuffer->get_text();
447        if (s.empty()) return;
448      std::vector<LinuxSampler::VMSourceToken> tokens = m_vm->syntaxHighlighting(s);      std::vector<LinuxSampler::VMSourceToken> tokens = m_vm->syntaxHighlighting(s);
449    
450      for (int i = 0; i < tokens.size(); ++i) {      for (int i = 0; i < tokens.size(); ++i) {
# Line 354  void ScriptEditor::updateParserIssuesByV Line 480  void ScriptEditor::updateParserIssuesByV
480      m_issues = parserContext->issues();      m_issues = parserContext->issues();
481      m_errors = parserContext->errors();      m_errors = parserContext->errors();
482      m_warnings = parserContext->warnings();      m_warnings = parserContext->warnings();
483        m_preprocComments = parserContext->preprocessorComments();
484    
485      for (int i = 0; i < m_issues.size(); ++i) {      if (!s.empty()) {
486          const LinuxSampler::ParserIssue& issue = m_issues[i];          for (int i = 0; i < m_issues.size(); ++i) {
487                const LinuxSampler::ParserIssue& issue = m_issues[i];
488          if (issue.isErr()) {  
489              applyCodeTag(m_textBuffer, issue, m_errorTag);              if (issue.isErr()) {
490          } else if (issue.isWrn()) {                  applyCodeTag(m_textBuffer, issue, m_errorTag);
491              applyCodeTag(m_textBuffer, issue, m_warningTag);              } else if (issue.isWrn()) {
492                    applyCodeTag(m_textBuffer, issue, m_warningTag);
493                }
494          }          }
495      }      }
496    
497        for (int i = 0; i < m_preprocComments.size(); ++i) {
498            applyPreprocessorComment(m_textBuffer, m_preprocComments[i],
499                                     m_preprocCommentTag);
500        }
501    
502      delete parserContext;      delete parserContext;
503  }  }
504    
# Line 398  void ScriptEditor::updateIssueTooltip(Gd Line 532  void ScriptEditor::updateIssueTooltip(Gd
532          }          }
533      }      }
534    
535        for (int i = 0; i < m_preprocComments.size(); ++i) {
536            const LinuxSampler::CodeBlock& block = m_preprocComments[i];
537            const int firstLine   = block.firstLine - 1;
538            const int firstColumn = block.firstColumn - 1;
539            const int lastLine    = block.lastLine - 1;
540            const int lastColumn  = block.lastColumn - 1;
541            if (firstLine  <= line && line <= lastLine &&
542                (firstLine != line || firstColumn <= column) &&
543                (lastLine  != line || lastColumn  >= column))
544            {
545                m_textView.set_tooltip_markup(
546                    "Code block filtered out by preceding <span foreground=\"" PREPROC_TOKEN_COLOR "\">preprocessor</span> statement."
547                );
548                return;
549            }
550        }
551    
552      m_textView.set_tooltip_markup("");      m_textView.set_tooltip_markup("");
553  }  }
554    
# Line 460  void ScriptEditor::onTextErased(const Gt Line 611  void ScriptEditor::onTextErased(const Gt
611    
612      m_textBuffer->remove_all_tags(itStart2, itEnd2);      m_textBuffer->remove_all_tags(itStart2, itEnd2);
613  #endif // USE_LS_SCRIPTVM  #endif // USE_LS_SCRIPTVM
614        updateLineNumbers();
615  }  }
616    
617  bool ScriptEditor::on_motion_notify_event(GdkEventMotion* e) {  bool ScriptEditor::on_motion_notify_event(GdkEventMotion* e) {
# Line 470  bool ScriptEditor::on_motion_notify_even Line 622  bool ScriptEditor::on_motion_notify_even
622      return ManagedWindow::on_motion_notify_event(e);      return ManagedWindow::on_motion_notify_event(e);
623  }  }
624    
625    void ScriptEditor::onMenuChangeFontSize() {
626        //TODO: for GTKMM >= 3.2 class Gtk::FontChooser could be used instead
627        Gtk::Dialog dialog(_("Font Size"), true /*modal*/);
628        Gtk::HBox hbox;
629        hbox.set_spacing(6);
630    
631        Gtk::Label label(_("Editor's Font Size:"), Gtk::ALIGN_START);
632        hbox.pack_start(label, Gtk::PACK_SHRINK);
633    
634        Gtk::SpinButton spinButton;
635        spinButton.set_range(4, 80);
636        spinButton.set_increments(1, 10);
637        spinButton.set_value(currentFontSize());
638        hbox.pack_start(spinButton);
639    
640        dialog.get_vbox()->pack_start(hbox);
641        dialog.add_button(_("_OK"), 0);
642        dialog.add_button(_("_Cancel"), 1);
643    
644        dialog.show_all_children();
645    
646        if (!dialog.run()) { // OK selected ...
647            const int newFontSize = spinButton.get_value_as_int();
648            if (newFontSize >= 4)
649                setFontSize(newFontSize, true);
650        }
651    }
652    
653  bool ScriptEditor::onWindowDelete(GdkEventAny* e) {  bool ScriptEditor::onWindowDelete(GdkEventAny* e) {
654      //printf("onWindowDelete\n");      //printf("onWindowDelete\n");
655    
# Line 525  void ScriptEditor::onButtonCancel() { Line 705  void ScriptEditor::onButtonCancel() {
705  }  }
706    
707  void ScriptEditor::onButtonApply() {  void ScriptEditor::onButtonApply() {
708        signal_script_to_be_changed.emit(m_script);
709      m_script->SetScriptAsText(m_textBuffer->get_text());      m_script->SetScriptAsText(m_textBuffer->get_text());
710        signal_script_changed.emit(m_script);
711      m_textBuffer->set_modified(false);      m_textBuffer->set_modified(false);
712  }  }
713    

Legend:
Removed from v.2901  
changed lines
  Added in v.3310

  ViewVC Help
Powered by ViewVC