Path: blob/main/editors/fxite/files/patch-src_prefdlg.cpp
16461 views
--- src/prefdlg.cpp.orig 2013-10-03 09:22:51 UTC1+++ src/prefdlg.cpp2@@ -415,13 +415,13 @@ void PrefsDialog::MakeGeneralTab()3right_column=new FXVerticalFrame(hframe,FRAME_SUNKEN|LAYOUT_FILL/*|PACK_UNIFORM_HEIGHT*/);45chk=new FXCheckButton(left_column, _("Watch files for external changes."), prefs, Settings::ID_TOGGLE_WATCH_EXTERN);6- chk->setCheck(prefs->WatchExternChanges, FALSE);7+ chk->setCheck(prefs->WatchExternChanges, false);8chk->setPadBottom(8);910hframe=new FXHorizontalFrame(left_column);11SetPad(hframe,0);12chk=new FXCheckButton(hframe, _("Backup files every "), prefs, Settings::ID_TOGGLE_AUTOSAVE);13- chk->setCheck(prefs->Autosave, FALSE);14+ chk->setCheck(prefs->Autosave, false);15chk->setPadBottom(12);16spin=new FXSpinner(hframe, 3, prefs, Settings::ID_SET_AUTOSAVE_INT,SPIN_OPTS);17spin->setRange(15,900);18@@ -433,10 +433,10 @@ void PrefsDialog::MakeGeneralTab()1920new FXLabel(left_column, _("Ask before closing multiple files:"));21chk=new FXCheckButton(left_column, _("From menu"), prefs, Settings::ID_TOGGLE_ASK_CLOSE_MULTI_MENU);22- chk->setCheck(prefs->PromptCloseMultiMenu, FALSE);23+ chk->setCheck(prefs->PromptCloseMultiMenu, false);24chk->setPadLeft(12);25chk=new FXCheckButton(left_column, _("On exit"), prefs, Settings::ID_TOGGLE_ASK_CLOSE_MULTI_EXIT);26- chk->setCheck(prefs->PromptCloseMultiExit, FALSE);27+ chk->setCheck(prefs->PromptCloseMultiExit, false);28chk->setPadLeft(12);29chk->setPadBottom(12);3031@@ -464,15 +464,15 @@ void PrefsDialog::MakeGeneralTab()3233new FXLabel(right_column,_("Save open files before executing:"));34chk=new FXCheckButton(right_column, _("Tools->Filter Selection"), prefs, Settings::ID_SAVE_ON_FILTER_SEL);35- chk->setCheck(prefs->SaveBeforeFilterSel, FALSE);36+ chk->setCheck(prefs->SaveBeforeFilterSel, false);37chk->setPadLeft(12);3839chk=new FXCheckButton(right_column, _("Tools->Insert Command"), prefs, Settings::ID_SAVE_ON_INS_CMD);40- chk->setCheck(prefs->SaveBeforeInsCmd, FALSE);41+ chk->setCheck(prefs->SaveBeforeInsCmd, false);42chk->setPadLeft(12);4344chk=new FXCheckButton(right_column, _("Tools->Execute Command"), prefs, Settings::ID_SAVE_ON_EXEC_CMD);45- chk->setCheck(prefs->SaveBeforeExecCmd, FALSE);46+ chk->setCheck(prefs->SaveBeforeExecCmd, false);47chk->setPadLeft(12);4849#ifndef WIN3250@@ -539,19 +539,19 @@ void PrefsDialog::MakeEditorTab()51list->setCurrentItem(prefs->AutoIndent);5253chk=new FXCheckButton(column, _("Smart home key"), prefs, Settings::ID_TOGGLE_SMART_HOME);54- chk->setCheck(prefs->SmartHome, FALSE);55+ chk->setCheck(prefs->SmartHome, false);5657chk=new FXCheckButton(column, _("Smooth scrolling"), prefs, Settings::ID_TOGGLE_SMOOTH_SCROLL);58- chk->setCheck(prefs->SmoothScroll, FALSE);59+ chk->setCheck(prefs->SmoothScroll, false);6061chk=new FXCheckButton(column, _("Allow caret beyond end of line"), prefs, Settings::ID_TOGGLE_CARET_PAST_EOL);62- chk->setCheck(prefs->CaretPastEOL, FALSE);63+ chk->setCheck(prefs->CaretPastEOL, false);6465chk=new FXCheckButton(column,_("Turn line wrapping on by default"),prefs,Settings::ID_TOGGLE_WORD_WRAP);66chk->setCheck(prefs->WordWrap);6768chk=new FXCheckButton(column, _("Wrap-aware home/end keys"), prefs, Settings::ID_TOGGLE_WRAP_AWARE);69- chk->setCheck(prefs->WrapAwareHomeEnd, FALSE);70+ chk->setCheck(prefs->WrapAwareHomeEnd, false);7172spinframe=new FXHorizontalFrame(column);73spin=new FXSpinner(spinframe, 2, prefs, Settings::ID_SET_CARET_WIDTH, SPIN_OPTS);74@@ -605,14 +605,14 @@ void PrefsDialog::MakeEditorTab()75new FXLabel(spinframe, _("Indent width"));7677chk->setUserData((void*)spin);78- chk->setCheck(prefs->UseTabs, TRUE);79+ chk->setCheck(prefs->UseTabs, true);8081new FXHorizontalSeparator(column,LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE);82new FXLabel(column, _("Default search options:"));83srchopts=new SciSearchOptions(column, prefs,Settings::ID_SET_SEARCH_OPTS);84srchopts->SetSciFlags(prefs->SearchOptions);85chk=new FXCheckButton(column, _("Verbose search messages"), prefs, Settings::ID_TOGGLE_SEARCH_VERBOSE);86- chk->setCheck(prefs->SearchVerbose, FALSE);87+ chk->setCheck(prefs->SearchVerbose, false);88chk->setPadLeft(6);8990spinframe=new FXHorizontalFrame(column);91@@ -635,10 +635,10 @@ void PrefsDialog::MakeEditorTab()9293new FXHorizontalSeparator(column,LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE);94chk=new FXCheckButton(column, _("Open 7-bit ASCII files as UTF-8"), prefs, Settings::ID_TOGGLE_ASCII_DEFAULT);95- chk->setCheck(!prefs->DefaultToAscii, FALSE);96+ chk->setCheck(!prefs->DefaultToAscii, false);97chk->setPadBottom(4);98chk=new FXCheckButton(column, _("Treat other files as broken UTF-8"), prefs, Settings::ID_TOGGLE_SBCS_DEFAULT);99- chk->setCheck(!prefs->DefaultToSbcs, FALSE);100+ chk->setCheck(!prefs->DefaultToSbcs, false);101chk->setPadBottom(8);102spinframe=new FXHorizontalFrame(column);103new FXLabel(spinframe, _("Default file format:"));104@@ -651,7 +651,7 @@ void PrefsDialog::MakeEditorTab()105106chk=new FXCheckButton(column, _("Show line endings with \"View Whitespace\""),107prefs, Settings::ID_TOGGLE_VIEW_WHITESPACE_EOL);108- chk->setCheck(prefs->WhitespaceShowsEOL, FALSE);109+ chk->setCheck(prefs->WhitespaceShowsEOL, false);110chk->setPadLeft(6);111}112113114115