Subversion Repositories Kolibri OS

Rev

Rev 5985 | Rev 5996 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5985 Rev 5987
1
#ifdef LANG_RUS
1
#ifdef LANG_RUS
2
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
2
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
3
	?define TITLE_SETT " áâனª¨"
3
	?define TITLE_SETT " áâனª¨"
4
	?define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
4
	?define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
5
	?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥­  ä ©«®¢ ­¥ ¬¥­ïï ॣ¨áâà"
5
	?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥­  ä ©«®¢ ­¥ ¬¥­ïï ॣ¨áâà"
6
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
6
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
7
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
7
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
8
	?define smooth_FONT "ˆá¯®«ì§®¢ âì ᣫ ¦¥­­ë© èà¨äâ"
8
	?define smooth_FONT "ˆá¯®«ì§®¢ âì ᣫ ¦¥­­ë© èà¨äâ"
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
10
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
10
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
11
	?define T_DOUBLE_CLICK "‚à¥¬ï ¤¢®©­®£® ª«¨ª  (¢ á®âëå)"
11
	?define T_DOUBLE_CLICK "‚à¥¬ï ¤¢®©­®£® ª«¨ª  (¢ á®âëå)"
12
	#define SAVE_PATH_AS_DEFAULT "‘®åà ­¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ­¨î"
12
	#define SAVE_PATH_AS_DEFAULT "‘®åà ­¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ­¨î"
13
#else
13
#else
14
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
14
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
15
	?define TITLE_SETT "Settings"
15
	?define TITLE_SETT "Settings"
16
	?define SHOW_DEVICE_CLASS "Show device class name"
16
	?define SHOW_DEVICE_CLASS "Show device class name"
17
	?define SHOW_REAL_NAMES "Show real file names without changing case"
17
	?define SHOW_REAL_NAMES "Show real file names without changing case"
18
	?define FONT_SIZE_LABEL "Font size"
18
	?define FONT_SIZE_LABEL "Font size"
19
	?define USE_TWO_PANELS "Two panels"
19
	?define USE_TWO_PANELS "Two panels"
20
	?define smooth_FONT "Use smooth font"
20
	?define smooth_FONT "Use smooth font"
21
	?define LIST_LINE_HEIGHT "List line height"
21
	?define LIST_LINE_HEIGHT "List line height"
22
	?define NOTIFY_COPY_END "Notify when copying finished"
22
	?define NOTIFY_COPY_END "Notify when copying finished"
23
	?define T_DOUBLE_CLICK "Double click time (in hundredths)"
23
	?define T_DOUBLE_CLICK "Double click time (in hundredths)"
24
	#define SAVE_PATH_AS_DEFAULT "Save the current default path"
24
	#define SAVE_PATH_AS_DEFAULT "Save the current default path"
25
#endif
25
#endif
26
 
26
 
27
char config_section[] = "Config";
27
char config_section[] = "Config";
28
int WinX, WinY, WinW, WinH;
28
int WinX, WinY, WinW, WinH;
29
 
29
 
30
void settings_dialog()
30
void settings_dialog()
31
{   
31
{   
32
	byte id;
32
	byte id;
33
	active_settings=1;
33
	active_settings=1;
34
	loop(){
34
	loop(){
35
		switch(WaitEvent())
35
		switch(WaitEvent())
36
		{
36
		{
37
			case evButton: 
37
			case evButton: 
38
				id=GetButtonID();
38
				id=GetButtonID();
39
				if (id==1) { ExitSettings(); break; }
39
				if (id==1) { ExitSettings(); break; }
40
				else if (id==5)
40
				else if (id==5)
41
				{
41
				{
42
					RunProgram("tinypad", "/sys/settings/assoc.ini");
42
					RunProgram("tinypad", "/sys/settings/assoc.ini");
43
					break;
43
					break;
44
				}
44
				}
45
				else if (id==6)
45
				else if (id==6)
46
				{
46
				{
47
					ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
47
					ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
48
					IF(CMD_ENABLE_SAVE_IMG)ini_set_str stdcall (fd_path_eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
48
					IF(CMD_ENABLE_SAVE_IMG)ini_set_str stdcall (fd_path_eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
49
					break;
49
					break;
50
				}
50
				}
51
				else if (id==20) show_dev_name ^= 1;
51
				else if (id==20) show_dev_name ^= 1;
52
				else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
52
				else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
53
				else if (id==22) info_after_copy ^= 1;
53
				else if (id==22) info_after_copy ^= 1;
54
				else if (id==24) two_panels ^= true;
54
				else if (id==24) two_panels ^= true;
55
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
55
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
56
				else if (id==26) && (files.item_h>18) files.item_h--;
56
				else if (id==26) && (files.item_h>18) files.item_h--;
57
				else if (id==27) MOUSE_TIME++;
57
				else if (id==27) MOUSE_TIME++;
58
				else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
58
				else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
59
				//else if (id==29) smooth_font ^= true;
59
				//else if (id==29) smooth_font ^= true;
60
				else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); }
60
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
61
				else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); }
61
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
62
				EventRedrawWindow(Form.left,Form.top);
62
				EventRedrawWindow(Form.left,Form.top);
63
				DrawSettingsCheckBoxes();
63
				DrawSettingsCheckBoxes();
64
			break;
64
			break;
65
					
65
					
66
			case evKey:
66
			case evKey:
67
				GetKeys();
67
				GetKeys();
68
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
68
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
69
				break;
69
				break;
70
				
70
				
71
			case evReDraw:
71
			case evReDraw:
72
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 260+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
72
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 260+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
73
				DrawSettingsCheckBoxes();
73
				DrawSettingsCheckBoxes();
74
				DrawFlatButton(9, 183, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
74
				DrawFlatButton(9, 183, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
75
				DrawFlatButton(9, 215, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
75
				DrawFlatButton(9, 215, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
76
		}
76
		}
77
	}
77
	}
78
}
78
}
79
 
79
 
80
void ExitSettings()
80
void ExitSettings()
81
{
81
{
82
	active_settings = 0;
82
	active_settings = 0;
83
	settings_window = 0;
83
	settings_window = 0;
84
	cmd_free = 4;
84
	cmd_free = 4;
85
	ExitProcess();
85
	ExitProcess();
86
}
86
}
87
 
87
 
88
void DrawSettingsCheckBoxes()
88
void DrawSettingsCheckBoxes()
89
{
89
{
90
	CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS,  show_dev_name);
90
	CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS,  show_dev_name);
91
	CheckBox2(10, 33, 21, SHOW_REAL_NAMES,  real_files_names_case);
91
	CheckBox2(10, 33, 21, SHOW_REAL_NAMES,  real_files_names_case);
92
	CheckBox2(10, 55, 22, NOTIFY_COPY_END,  info_after_copy);
92
	CheckBox2(10, 55, 22, NOTIFY_COPY_END,  info_after_copy);
93
	CheckBox2(10, 77, 24, USE_TWO_PANELS,  two_panels); 
93
	CheckBox2(10, 77, 24, USE_TWO_PANELS,  two_panels); 
94
	//CheckBox2(10, 99, 29, smooth_FONT,  smooth_font); 
94
	//CheckBox2(10, 99, 29, smooth_FONT,  smooth_font); 
95
	MoreLessBox(10, 99, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK);
95
	MoreLessBox(10, 99, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK);
96
	MoreLessBox(10, 125, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
96
	MoreLessBox(10, 125, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
97
	if (font.data) MoreLessBox(10, 152, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL);
97
	if (label.font) MoreLessBox(10, 152, 18, 30, 31, #system.color, label.size.pt, FONT_SIZE_LABEL);
98
}
98
}
99
 
99
 
100
 
100
 
101
void LoadIniSettings()
101
void LoadIniSettings()
102
{
102
{
103
	files.SetFont(6, 9, 10000000b);
103
	files.SetFont(6, 9, 10000000b);
104
	FileShow.font_size_x = files.font_w;
104
	FileShow.font_size_x = files.font_w;
105
	FileShow.font_number = 0;
105
	FileShow.font_number = 0;
106
	ini_get_int stdcall   (eolite_ini_path, #config_section, "ShowDeviceName",    1); show_dev_name = EAX;
106
	ini_get_int stdcall   (eolite_ini_path, #config_section, "ShowDeviceName",    1); show_dev_name = EAX;
107
	ini_get_int stdcall   (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX;
107
	ini_get_int stdcall   (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX;
108
	ini_get_int stdcall   (eolite_ini_path, #config_section, "InfoAfterCopy",     0); info_after_copy = EAX;
108
	ini_get_int stdcall   (eolite_ini_path, #config_section, "InfoAfterCopy",     0); info_after_copy = EAX;
109
	ini_get_int stdcall   (eolite_ini_path, #config_section, "FontSize",          9); font.size.text = EAX;
109
	ini_get_int stdcall   (eolite_ini_path, #config_section, "FontSize",          9); label.size.pt = EAX;
110
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TwoPanels",         0); two_panels = EAX;
110
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TwoPanels",         0); two_panels = EAX;
111
	//ini_get_int stdcall   (eolite_ini_path, #config_section, "UseSmoothFont",     true);smooth_font = EAX;
111
	//ini_get_int stdcall   (eolite_ini_path, #config_section, "UseSmoothFont",     true);smooth_font = EAX;
112
	ini_get_int stdcall   (eolite_ini_path, #config_section, "LineHeight",       18); files.item_h = EAX;
112
	ini_get_int stdcall   (eolite_ini_path, #config_section, "LineHeight",       18); files.item_h = EAX;
113
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TimeDoubleClick",  50); MOUSE_TIME = EAX;
113
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TimeDoubleClick",  50); MOUSE_TIME = EAX;
114
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
114
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
115
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
115
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
116
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
116
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
117
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
117
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
118
	ini_get_str stdcall   (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
118
	ini_get_str stdcall   (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
119
 
119
 
120
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,"/sys/FONTS/Tahoma.kf");
120
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
121
	font.load(#temp);
121
	label.init(#temp);
122
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
122
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
123
	if(!strcmp(#temp,"off"))smooth_font = false;
123
	if(!strcmp(#temp,"off"))smooth_font = false;
124
	else smooth_font = true;
124
	else smooth_font = true;
125
}
125
}
126
 
126
 
127
 
127
 
128
void SaveIniSettings()
128
void SaveIniSettings()
129
{
129
{
130
	
130
	
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
133
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
133
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt);
135
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
135
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
136
	//ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
136
	//ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
137
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
137
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
138
	ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
138
	ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
139
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
139
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
140
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
140
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
141
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
141
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
142
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
142
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
143
	
143
	
144
	if(CMD_ENABLE_SAVE_IMG)
144
	if(CMD_ENABLE_SAVE_IMG)
145
	{
145
	{
146
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
146
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
148
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
148
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
149
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text);
149
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", label.size.pt);
150
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
150
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
151
		//ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
151
		//ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
152
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
152
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
153
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
153
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
154
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
154
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
155
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
155
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
156
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
156
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
157
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);
157
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);
158
	}
158
	}
159
}
159
}
160
 
160
 
161
 
161
 
162
 
162
 
163
void Write_Error(int error_number)
163
void Write_Error(int error_number)
164
{
164
{
165
	char error_message[500];
165
	char error_message[500];
166
	dword ii;
166
	dword ii;
167
	if (files.cur_y>=0) Line_ReDraw(0xFF0000, files.cur_y);
167
	if (files.cur_y>=0) Line_ReDraw(0xFF0000, files.cur_y);
168
	pause(5);
168
	pause(5);
169
	sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE");
169
	sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE");
170
	notify(#error_message);	
170
	notify(#error_message);	
171
}
171
}
172
 
172
 
173
 
173
 
174
void SetAppColors()
174
void SetAppColors()
175
{
175
{
176
	system.color.work = 0xE4DFE1;
176
	system.color.work = 0xE4DFE1;
177
	system.color.work_text = 0;
177
	system.color.work_text = 0;
178
	system.color.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
178
	system.color.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
179
	system.color.work_button = 0xD2D3D3;
179
	system.color.work_button = 0xD2D3D3;
180
	system.color.work_button_text = 0x000000;
180
	system.color.work_button_text = 0x000000;
181
	col_padding = 0xC8C9C9;
181
	col_padding = 0xC8C9C9;
182
	col_selec   = 0x94AECE;
182
	col_selec   = 0x94AECE;
183
	col_lpanel  = 0x00699C;
183
	col_lpanel  = 0x00699C;
184
}
184
}
185
 
185
 
186
 
186
 
187
void BigFontsChange()
187
void BigFontsChange()
188
{
188
{
189
	files.item_h = font.size.text + 4;
189
	files.item_h = label.size.pt + 4;
190
	if (files.item_h<18) files.item_h = 18;
190
	if (files.item_h<18) files.item_h = 18;
191
	files_active.item_h = files_inactive.item_h = files.item_h;
191
	files_active.item_h = files_inactive.item_h = files.item_h;
192
}
192
}
193
 
193
 
194
 
194
 
195
void CheckBox2(dword x, y, id, text, byte value) {
195
void CheckBox2(dword x, y, id, text, byte value) {
196
	CheckBox(x, y, 14, 14, id, text, system.color.work_graph, system.color.work_text, value);
196
	CheckBox(x, y, 14, 14, id, text, system.color.work_graph, system.color.work_text, value);
197
}
197
}