Subversion Repositories Kolibri OS

Rev

Rev 6278 | Rev 6290 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6278 Rev 6289
Line 48... Line 48...
48
				else if (id==20) show_dev_name ^= 1;
48
				else if (id==20) show_dev_name ^= 1;
49
				else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
49
				else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
50
				else if (id==22) info_after_copy ^= 1;
50
				else if (id==22) info_after_copy ^= 1;
51
				else if (id==24) two_panels ^= true;
51
				else if (id==24) two_panels ^= true;
52
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
52
				else if (id==32) show_breadcrumb ^= true;
-
 
53
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
53
				else if (id==26) && (files.item_h>18) files.item_h--;
54
				else if (id==26) && (files.item_h>18) files.item_h--;
54
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
55
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
55
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
56
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
56
				EventRedrawWindow(Form.left,Form.top);
57
				EventRedrawWindow(Form.left,Form.top);
57
				DrawSettingsCheckBoxes();
58
				//DrawSettingsCheckBoxes();
58
			break;
59
			break;
59
					
60
					
Line 60... Line 61...
60
			case evKey:
61
			case evKey:
61
				GetKeys();
62
				GetKeys();
62
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
63
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
63
				break;
64
				break;
Line 64... Line 65...
64
				
65
				
65
			case evReDraw:
66
			case evReDraw:
66
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 370, 258+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
67
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 370, 282+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
67
				DrawSettingsCheckBoxes();
-
 
68
				DrawFlatButton(9, 180, strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT);
-
 
69
				DrawFlatButton(9, 216, strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS);
68
				DrawSettingsCheckBoxes();
70
		}
69
		}
71
	}
70
	}
Line 72... Line 71...
72
}
71
}
Line 80... Line 79...
80
}
79
}
81
 
80
 
Line 82... Line 81...
82
void DrawSettingsCheckBoxes()
81
void DrawSettingsCheckBoxes()
83
{
82
{
-
 
83
	incn y;
-
 
84
	y.n = 0;
84
	CheckBox(10, 13, 20, SHOW_DEVICE_CLASS,  show_dev_name);
85
	CheckBox(10, y.inc(13), 20, SHOW_DEVICE_CLASS,  show_dev_name);
85
	CheckBox(10, 37, 21, SHOW_REAL_NAMES,  real_files_names_case);
86
	CheckBox(10, y.inc(24), 21, SHOW_REAL_NAMES,  real_files_names_case);
86
	CheckBox(10, 61, 22, NOTIFY_COPY_END,  info_after_copy);
87
	CheckBox(10, y.inc(24), 22, NOTIFY_COPY_END,  info_after_copy);
87
	CheckBox(10, 85, 24, USE_TWO_PANELS,  two_panels);
88
	CheckBox(10, y.inc(24), 24, USE_TWO_PANELS,  two_panels);
-
 
89
	CheckBox(10, y.inc(24), 32, "Show breadcrumbs",  show_breadcrumb);
88
	MoreLessBox(10, 115, 25, 26, files.item_h, LIST_LINE_HEIGHT);
90
	MoreLessBox(10, y.inc(30), 25, 26, files.item_h, LIST_LINE_HEIGHT);
89
	if (label.font) MoreLessBox(10, 144, 30, 31, label.size.pt, FONT_SIZE_LABEL);
91
	if (label.font) MoreLessBox(10, y.inc(30), 30, 31, label.size.pt, FONT_SIZE_LABEL);
-
 
92
	DrawFlatButton(9, y.inc(35), strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT);
-
 
93
	DrawFlatButton(9, y.inc(35), strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS);
90
}
94
}
Line 91... Line 95...
91
 
95
 
92
 
96