.
[sfinx.git] / patches / fldev.patch
blob485b6c899a1c9ac705e77986ca9a0ca299047516
1 ôÏÌØËÏ × fldev: build_tools.o
2 ôÏÌØËÏ × fldev: debug.o
3 diff -ur /usr/src/cvs/fldev/editor.cpp fldev/editor.cpp
4 --- /usr/src/cvs/fldev/editor.cpp 2007-07-02 09:15:20.000000000 +0300
5 +++ fldev/editor.cpp 2007-08-27 18:32:19.000000000 +0300
6 @@ -508,6 +508,7 @@
8 if(strncmp(newfile + strlen(newfile) - 4,".cpp",4) == 0) cppfile = true;
9 if(strncmp(newfile + strlen(newfile) - 2,".c",2) == 0) cppfile = true;
10 + if(strncmp(newfile + strlen(newfile) - 2,".C",2) == 0) cppfile = true;
11 if(strncmp(newfile + strlen(newfile) - 2,".h",2) == 0) cppfile = true;
12 if(strncmp(newfile + strlen(newfile) - 2,".H",2) == 0) cppfile = true;
13 if(strncmp(newfile + strlen(newfile) - 4,".hpp",4) == 0) cppfile = true;
14 @@ -3459,7 +3460,7 @@
15 textbuf->add_modify_callback(style_update, w->editor);
16 textbuf->add_modify_callback(changed_cb, w);
17 textbuf->call_modify_callbacks();
18 - textbuf->tab_distance(4);
19 + textbuf->tab_distance(2);
22 make_pref_form();
23 @@ -3520,9 +3521,9 @@
28 +#include <locale.h>
29 int main(int argc, char **argv) {
31 + setlocale(LC_ALL, "");
32 undoHistory = new UndoHistory(undosize);
35 ôÏÌØËÏ × fldev: editor.o
36 ôÏÌØËÏ × fldev: EditorWindow.o
37 diff -ur /usr/src/cvs/fldev/extras.cpp fldev/extras.cpp
38 --- /usr/src/cvs/fldev/extras.cpp 2007-07-02 09:15:20.000000000 +0300
39 +++ fldev/extras.cpp 2007-08-27 18:56:37.000000000 +0300
40 @@ -1017,10 +1017,16 @@
42 int key = Fl::event_key(), state = Fl::event_state(), c = Fl::event_text()[0];
43 state &= FL_SHIFT|FL_CTRL|FL_ALT|FL_META; // only care about these states
49 + if (key == FL_Tab) {
50 + if (insert_mode()) insert(" ");
51 + else overstrike(" ");
52 + show_insert_position();
53 + if (when()&FL_WHEN_CHANGED) do_callback();
54 + else set_changed();
55 + return 1;
56 + }
58 if(Fl::event_key()==FL_Enter && smart_indent) {
59 char *line = "";
60 line = strdup(buffer()->line_text(insert_position()));
61 ôÏÌØËÏ × fldev: extras.o
62 ôÏÌØËÏ × fldev: fldev
63 ôÏÌØËÏ × fldev: Flu_Tree_Browser.o
64 ôÏÌØËÏ × fldev: highlight.o
65 ôÏÌØËÏ × fldev: My_File_Browser.o
66 ôÏÌØËÏ × fldev: My_Text_Display.o
67 ôÏÌØËÏ × fldev: My_Text_Editor.o
68 ôÏÌØËÏ × fldev: navigator.o
69 ôÏÌØËÏ × fldev: pref_form.o
70 ôÏÌØËÏ × fldev: proj_form.o
71 ôÏÌØËÏ × fldev: proj_wiz_form.o
72 diff -ur /usr/src/cvs/fldev/tabbar.h fldev/tabbar.h
73 --- /usr/src/cvs/fldev/tabbar.h 2007-07-02 09:15:20.000000000 +0300
74 +++ fldev/tabbar.h 2007-08-26 21:27:44.000000000 +0300
75 @@ -23,7 +23,7 @@
76 #include <deque>
77 #include <string>
79 -#define NO_TAB
80 +//#define NO_TAB
82 using namespace std;
84 ôÏÌØËÏ × fldev: tabbar.o
85 ôÏÌØËÏ × fldev: undo.o