Mercurial > hg > octave-nkf
comparison gui/src/m-editor/file-editor-tab.h @ 14869:db3c84d38345 gui
Now supporting c/cc/cpp syntax highlighting.
* file-editor-tab: Added updating lexer dependent on the filename suffix..
* file-editor: Removed initializig a single lexer for all editor tabs.
author | Jacob Dawid <jacob.dawid@gmail.com> |
---|---|
date | Tue, 17 Jul 2012 11:38:54 -0400 |
parents | e97be88fc478 |
children | 355d6c165df0 |
comparison
equal
deleted
inserted
replaced
14864:3a05cb67dea5 | 14869:db3c84d38345 |
---|---|
21 #include <Qsci/qsciscintilla.h> | 21 #include <Qsci/qsciscintilla.h> |
22 #include <QWidget> | 22 #include <QWidget> |
23 #include <QCloseEvent> | 23 #include <QCloseEvent> |
24 #include <QFileSystemWatcher> | 24 #include <QFileSystemWatcher> |
25 | 25 |
26 #include <Qsci/qsciapis.h> | |
27 // Not available in the Debian repos yet! | |
28 // #include <Qsci/qscilexeroctave.h> | |
29 #include "lexer-octave-gui.h" | |
30 #include <Qsci/qscilexercpp.h> | |
26 #include "octave-event-observer.h" | 31 #include "octave-event-observer.h" |
27 | 32 |
28 class file_editor; | 33 class file_editor; |
29 class file_editor_tab : public QWidget, public octave_event_observer | 34 class file_editor_tab : public QWidget, public octave_event_observer |
30 { | 35 { |
77 protected: | 82 protected: |
78 void closeEvent (QCloseEvent *event); | 83 void closeEvent (QCloseEvent *event); |
79 void set_file_name (QString fileName); | 84 void set_file_name (QString fileName); |
80 | 85 |
81 private: | 86 private: |
87 void update_lexer (); | |
82 void request_add_breakpoint (int line); | 88 void request_add_breakpoint (int line); |
83 void request_remove_breakpoint (int line); | 89 void request_remove_breakpoint (int line); |
84 | 90 |
85 void update_tracked_file (); | 91 void update_tracked_file (); |
86 int check_file_modified (QString msg, int cancelButton); | 92 int check_file_modified (QString msg, int cancelButton); |