Line 0
Link Here
|
|
|
1 |
--- src/prefdlg.cpp.orig 2013-10-03 09:22:51 UTC |
2 |
+++ src/prefdlg.cpp |
3 |
@@ -415,13 +415,13 @@ void PrefsDialog::MakeGeneralTab() |
4 |
right_column=new FXVerticalFrame(hframe,FRAME_SUNKEN|LAYOUT_FILL/*|PACK_UNIFORM_HEIGHT*/); |
5 |
|
6 |
chk=new FXCheckButton(left_column, _("Watch files for external changes."), prefs, Settings::ID_TOGGLE_WATCH_EXTERN); |
7 |
- chk->setCheck(prefs->WatchExternChanges, FALSE); |
8 |
+ chk->setCheck(prefs->WatchExternChanges, false); |
9 |
chk->setPadBottom(8); |
10 |
|
11 |
hframe=new FXHorizontalFrame(left_column); |
12 |
SetPad(hframe,0); |
13 |
chk=new FXCheckButton(hframe, _("Backup files every "), prefs, Settings::ID_TOGGLE_AUTOSAVE); |
14 |
- chk->setCheck(prefs->Autosave, FALSE); |
15 |
+ chk->setCheck(prefs->Autosave, false); |
16 |
chk->setPadBottom(12); |
17 |
spin=new FXSpinner(hframe, 3, prefs, Settings::ID_SET_AUTOSAVE_INT,SPIN_OPTS); |
18 |
spin->setRange(15,900); |
19 |
@@ -433,10 +433,10 @@ void PrefsDialog::MakeGeneralTab() |
20 |
|
21 |
new FXLabel(left_column, _("Ask before closing multiple files:")); |
22 |
chk=new FXCheckButton(left_column, _("From menu"), prefs, Settings::ID_TOGGLE_ASK_CLOSE_MULTI_MENU); |
23 |
- chk->setCheck(prefs->PromptCloseMultiMenu, FALSE); |
24 |
+ chk->setCheck(prefs->PromptCloseMultiMenu, false); |
25 |
chk->setPadLeft(12); |
26 |
chk=new FXCheckButton(left_column, _("On exit"), prefs, Settings::ID_TOGGLE_ASK_CLOSE_MULTI_EXIT); |
27 |
- chk->setCheck(prefs->PromptCloseMultiExit, FALSE); |
28 |
+ chk->setCheck(prefs->PromptCloseMultiExit, false); |
29 |
chk->setPadLeft(12); |
30 |
chk->setPadBottom(12); |
31 |
|
32 |
@@ -464,15 +464,15 @@ void PrefsDialog::MakeGeneralTab() |
33 |
|
34 |
new FXLabel(right_column,_("Save open files before executing:")); |
35 |
chk=new FXCheckButton(right_column, _("Tools->Filter Selection"), prefs, Settings::ID_SAVE_ON_FILTER_SEL); |
36 |
- chk->setCheck(prefs->SaveBeforeFilterSel, FALSE); |
37 |
+ chk->setCheck(prefs->SaveBeforeFilterSel, false); |
38 |
chk->setPadLeft(12); |
39 |
|
40 |
chk=new FXCheckButton(right_column, _("Tools->Insert Command"), prefs, Settings::ID_SAVE_ON_INS_CMD); |
41 |
- chk->setCheck(prefs->SaveBeforeInsCmd, FALSE); |
42 |
+ chk->setCheck(prefs->SaveBeforeInsCmd, false); |
43 |
chk->setPadLeft(12); |
44 |
|
45 |
chk=new FXCheckButton(right_column, _("Tools->Execute Command"), prefs, Settings::ID_SAVE_ON_EXEC_CMD); |
46 |
- chk->setCheck(prefs->SaveBeforeExecCmd, FALSE); |
47 |
+ chk->setCheck(prefs->SaveBeforeExecCmd, false); |
48 |
chk->setPadLeft(12); |
49 |
|
50 |
#ifndef WIN32 |
51 |
@@ -539,19 +539,19 @@ void PrefsDialog::MakeEditorTab() |
52 |
list->setCurrentItem(prefs->AutoIndent); |
53 |
|
54 |
chk=new FXCheckButton(column, _("Smart home key"), prefs, Settings::ID_TOGGLE_SMART_HOME); |
55 |
- chk->setCheck(prefs->SmartHome, FALSE); |
56 |
+ chk->setCheck(prefs->SmartHome, false); |
57 |
|
58 |
chk=new FXCheckButton(column, _("Smooth scrolling"), prefs, Settings::ID_TOGGLE_SMOOTH_SCROLL); |
59 |
- chk->setCheck(prefs->SmoothScroll, FALSE); |
60 |
+ chk->setCheck(prefs->SmoothScroll, false); |
61 |
|
62 |
chk=new FXCheckButton(column, _("Allow caret beyond end of line"), prefs, Settings::ID_TOGGLE_CARET_PAST_EOL); |
63 |
- chk->setCheck(prefs->CaretPastEOL, FALSE); |
64 |
+ chk->setCheck(prefs->CaretPastEOL, false); |
65 |
|
66 |
chk=new FXCheckButton(column,_("Turn line wrapping on by default"),prefs,Settings::ID_TOGGLE_WORD_WRAP); |
67 |
chk->setCheck(prefs->WordWrap); |
68 |
|
69 |
chk=new FXCheckButton(column, _("Wrap-aware home/end keys"), prefs, Settings::ID_TOGGLE_WRAP_AWARE); |
70 |
- chk->setCheck(prefs->WrapAwareHomeEnd, FALSE); |
71 |
+ chk->setCheck(prefs->WrapAwareHomeEnd, false); |
72 |
|
73 |
spinframe=new FXHorizontalFrame(column); |
74 |
spin=new FXSpinner(spinframe, 2, prefs, Settings::ID_SET_CARET_WIDTH, SPIN_OPTS); |
75 |
@@ -605,14 +605,14 @@ void PrefsDialog::MakeEditorTab() |
76 |
new FXLabel(spinframe, _("Indent width")); |
77 |
|
78 |
chk->setUserData((void*)spin); |
79 |
- chk->setCheck(prefs->UseTabs, TRUE); |
80 |
+ chk->setCheck(prefs->UseTabs, true); |
81 |
|
82 |
new FXHorizontalSeparator(column,LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE); |
83 |
new FXLabel(column, _("Default search options:")); |
84 |
srchopts=new SciSearchOptions(column, prefs,Settings::ID_SET_SEARCH_OPTS); |
85 |
srchopts->SetSciFlags(prefs->SearchOptions); |
86 |
chk=new FXCheckButton(column, _("Verbose search messages"), prefs, Settings::ID_TOGGLE_SEARCH_VERBOSE); |
87 |
- chk->setCheck(prefs->SearchVerbose, FALSE); |
88 |
+ chk->setCheck(prefs->SearchVerbose, false); |
89 |
chk->setPadLeft(6); |
90 |
|
91 |
spinframe=new FXHorizontalFrame(column); |
92 |
@@ -635,10 +635,10 @@ void PrefsDialog::MakeEditorTab() |
93 |
|
94 |
new FXHorizontalSeparator(column,LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE); |
95 |
chk=new FXCheckButton(column, _("Open 7-bit ASCII files as UTF-8"), prefs, Settings::ID_TOGGLE_ASCII_DEFAULT); |
96 |
- chk->setCheck(!prefs->DefaultToAscii, FALSE); |
97 |
+ chk->setCheck(!prefs->DefaultToAscii, false); |
98 |
chk->setPadBottom(4); |
99 |
chk=new FXCheckButton(column, _("Treat other files as broken UTF-8"), prefs, Settings::ID_TOGGLE_SBCS_DEFAULT); |
100 |
- chk->setCheck(!prefs->DefaultToSbcs, FALSE); |
101 |
+ chk->setCheck(!prefs->DefaultToSbcs, false); |
102 |
chk->setPadBottom(8); |
103 |
spinframe=new FXHorizontalFrame(column); |
104 |
new FXLabel(spinframe, _("Default file format:")); |
105 |
@@ -651,7 +651,7 @@ void PrefsDialog::MakeEditorTab() |
106 |
|
107 |
chk=new FXCheckButton(column, _("Show line endings with \"View Whitespace\""), |
108 |
prefs, Settings::ID_TOGGLE_VIEW_WHITESPACE_EOL); |
109 |
- chk->setCheck(prefs->WhitespaceShowsEOL, FALSE); |
110 |
+ chk->setCheck(prefs->WhitespaceShowsEOL, false); |
111 |
chk->setPadLeft(6); |
112 |
} |
113 |
|