@@ -1,26 +1,26 @@
# ifdef LANG_RUS
# ifdef LANG_RUS
? define EDIT_FILE_ASSOCIATIONS " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> 樠樨 䠩<> <E4A0A9> <EFBFBD> "
? define TITLE_SETT " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ன<EFBFBD> <EFBFBD> "
? define TITLE_SETT " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ன<EFBFBD> <EFBFBD> "
? define SHOW_DEVICE_CLASS " <EFBFBD> 뢮<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> ன<EFBFBD> <E0AEA9> <EFBFBD> "
? define SHOW_DEVICE_CLASS " <EFBFBD> 뢮<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> ன<EFBFBD> <E0AEA9> <EFBFBD> "
? define SHOW_REAL_NAMES " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 뢠<EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 䠩<> <E4A0A9> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ॣ<> <E0A5A3> <EFBFBD> <EFBFBD> "
? define SHOW_REAL_NAMES " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 뢠<EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 䠩<> <E4A0A9> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ॣ<> <E0A5A3> <EFBFBD> <EFBFBD> "
? define FONT_SIZE_LABEL " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
? define USE_TWO_PANELS " <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
? define smooth_FONT " <EFBFBD> ᯮ<EFBFBD> 짮<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᣫ<> <E1A3AB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
? define LIST_LINE_HEIGHT " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ப<EFBFBD> <20> ᯨ᪥"
? define NOTIFY_COPY_END " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 襭<EFBFBD> <E8A5AD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> "
? define NOTIFY_COPY_END " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 襭<EFBFBD> <E8A5AD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> "
? define SHOW_BREADCRUMBS " <EFBFBD> ᯮ<EFBFBD> 짮<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '嫥<> <E5ABA5> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 誨'"
? define USE_TWO_PANELS " <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
? define FONT_SIZE_LABEL " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
? define LIST_LINE_HEIGHT " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ப<EFBFBD> <20> ᯨ᪥"
? define SAVE_PATH_AS_DEFAULT " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⥪<> 騩 <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> 譨<EFBFBD> <20> <> ⠫<EFBFBD> <E2A0AB> <EFBFBD> <EFBFBD> "
? define SAVE_PATH_AS_DEFAULT " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⥪<> 騩 <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> 譨<EFBFBD> <20> <> ⠫<EFBFBD> <E2A0AB> <EFBFBD> <EFBFBD> "
? define EDIT_FILE_ASSOCIATIONS " <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> 樠樨 䠩<> <E4A0A9> <EFBFBD> "
# else
# else
? define EDIT_FILE_ASSOCIATIONS " Edit file associations "
? define TITLE_SETT " Settings "
? define TITLE_SETT " Settings "
? define SHOW_DEVICE_CLASS " Show device class name "
? define SHOW_DEVICE_CLASS " Show device class name "
? define SHOW_REAL_NAMES " Show file names in original case "
? define SHOW_REAL_NAMES " Show file names in original case "
? define FONT_SIZE_LABEL " Font size "
? define USE_TWO_PANELS " Two panels "
? define smooth_FONT " Use smooth font "
? define LIST_LINE_HEIGHT " List line height "
? define NOTIFY_COPY_END " Notify when copying finished "
? define NOTIFY_COPY_END " Notify when copying finished "
? define SHOW_BREADCRUMBS " Show breadcrumbs "
? define USE_TWO_PANELS " Two panels "
? define FONT_SIZE_LABEL " Font size "
? define LIST_LINE_HEIGHT " List line height "
? define SAVE_PATH_AS_DEFAULT " Save current path as home folder "
? define SAVE_PATH_AS_DEFAULT " Save current path as home folder "
? define EDIT_FILE_ASSOCIATIONS " Edit file associations "
# endif
# endif
char config_section [ ] = " Config " ;
char config_section [ ] = " Config " ;
@@ -52,11 +52,10 @@ void settings_dialog()
else if ( id = = 24 ) two_panels ^ = true ;
else if ( id = = 24 ) two_panels ^ = true ;
else if ( id = = 32 ) show_breadcrumb ^ = true ;
else if ( id = = 32 ) show_breadcrumb ^ = true ;
else if ( id = = 25 ) { files . item_h + + ; files_active . item_h = files_inactive . item_h = files . item_h ; }
else if ( id = = 25 ) { files . item_h + + ; files_active . item_h = files_inactive . item_h = files . item_h ; }
else if ( id = = 26 ) & & ( files . item_h > 18 ) files . item_h - - ;
else if ( id = = 26 ) & & ( files . item_h > 16 ) files . item_h - - ;
else if ( id = = 30 ) { label . size . pt + + ; IF ( ! label . changeSIZE ( ) ) label . size . pt - - ; BigFontsChange ( ) ; }
else if ( id = = 30 ) { label . size . pt + + ; IF ( ! label . changeSIZE ( ) ) label . size . pt - - ; BigFontsChange ( ) ; }
else if ( id = = 31 ) { label . size . pt - - ; IF ( ! label . changeSIZE ( ) ) label . size . pt + + ; BigFontsChange ( ) ; }
else if ( id = = 31 ) { label . size . pt - - ; IF ( ! label . changeSIZE ( ) ) label . size . pt + + ; BigFontsChange ( ) ; }
EventRedrawWindow ( Form . left , Form . top ) ;
EventRedrawWindow ( Form . left , Form . top ) ;
//DrawSettingsCheckBoxes();
break ;
break ;
case evKey :
case evKey :
@@ -65,7 +64,7 @@ void settings_dialog()
break ;
break ;
case evReDraw :
case evReDraw :
DefineAndDrawWindow ( Form . left + Form . width/ 2 - 10 , Form . top + Form . height / 2 - 75 , 370 , 28 2 + GetSkinHeight ( ) , 0x34 , system . color . work , TITLE_SETT ) ;
DefineAndDrawWindow ( Form . c width- 300 / 2 + Form . left , Form . c height- 292 / 2 + Form . top , 376 , 29 2 + GetSkinHeight ( ) , 0x34 , system . color . work , TITLE_SETT ) ;
DrawSettingsCheckBoxes ( ) ;
DrawSettingsCheckBoxes ( ) ;
}
}
}
}
@@ -82,16 +81,17 @@ void ExitSettings()
void DrawSettingsCheckBoxes ( )
void DrawSettingsCheckBoxes ( )
{
{
incn y ;
incn y ;
int x = 11 ;
y . n = 0 ;
y . n = 0 ;
CheckBox ( 10 , y . inc ( 13 ) , 20 , SHOW_DEVICE_CLASS , show_dev_name ) ;
CheckBox ( x , y . inc ( 14 ) , 20 , SHOW_DEVICE_CLASS , show_dev_name ) ;
CheckBox ( 10 , y . inc ( 24 ) , 21 , SHOW_REAL_NAMES , real_files_names_case ) ;
CheckBox ( x , y . inc ( 25 ) , 21 , SHOW_REAL_NAMES , real_files_names_case ) ;
CheckBox ( 10 , y . inc ( 24 ) , 22 , NOTIFY_COPY_END , info_after_copy ) ;
CheckBox ( x , y . inc ( 25 ) , 22 , NOTIFY_COPY_END , info_after_copy ) ;
CheckBox ( 10 , y . inc ( 24 ) , 24 , USE_TWO_PANELS , two_panels ) ;
CheckBox ( x , y . inc ( 25 ) , 3 2, SHOW_BREADCRUMBS , show_breadcrumb ) ;
CheckBox ( 10 , y . inc ( 24 ) , 3 2, " Show breadcrumbs " , show_breadcrumb ) ;
CheckBox ( x , y . inc ( 25 ) , 24 , USE_TWO_PANELS , two_panels ) ;
MoreLessBox ( 10 , y . inc ( 30 ) , 25 , 26 , files . item_h , LIST_LINE_HEIGHT ) ;
MoreLessBox ( x , y . inc ( 31 ) , 30 , 31 , label . size . pt , FONT_SIZE_LABEL ) ;
if ( label . font ) MoreLessBox ( 10 , y . inc ( 30 ) , 30 , 31 , label . size . pt , FONT_SIZE_LABEL ) ;
MoreLessBox ( x , y . inc ( 31 ) , 25 , 26 , files . item_h , LIST_LINE_HEIGHT ) ;
DrawFlatButton ( 9 , y . inc ( 35 ) , strlen ( SAVE_PATH_AS_DEFAULT ) + 3 * 8 , 24 , 6 , SAVE_PATH_AS_DEFAULT ) ;
DrawFlatButton ( x - 1 , y . inc ( 36 ) , strlen ( SAVE_PATH_AS_DEFAULT ) + 3 * 8 , 24 , 6 , SAVE_PATH_AS_DEFAULT ) ;
DrawFlatButton ( 9 , y . inc ( 35 ) , strlen ( EDIT_FILE_ASSOCIATIONS ) + 3 * 8 , 24 , 5 , EDIT_FILE_ASSOCIATIONS ) ;
DrawFlatButton ( x - 1 , y . inc ( 36 ) , strlen ( EDIT_FILE_ASSOCIATIONS ) + 3 * 8 , 24 , 5 , EDIT_FILE_ASSOCIATIONS ) ;
}
}