Subversion Repositories Kolibri OS

Rev

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

Rev 6048 Rev 6096
Line 28... Line 28...
28
#define SKINS_STANDART_PATH "/kolibrios/res/skins"							
28
#define SKINS_STANDART_PATH "/kolibrios/res/skins"							
29
#define WALP_STANDART_PATH "/kolibrios/res/wallpapers"
29
#define WALP_STANDART_PATH "/kolibrios/res/wallpapers"
Line 30... Line 30...
30
 
30
 
31
llist list[2];
31
llist list[2];
32
int active;
32
int active;
Line 33... Line 33...
33
enum { WALLPAPERS, SKINS };
33
enum { SKINS, WALLPAPERS };
34
 
34
 
35
char folder_path[4096];
35
char folder_path[4096];
36
char cur_file_path[4096];
36
char cur_file_path[4096];
Line 37... Line 37...
37
char temp_filename[4096];
37
char temp_filename[4096];
Line 38... Line 38...
38
int files_mas[100];
38
int files_mas[400];
Line 149... Line 149...
149
 
149
 
150
	SetEventMask(0x27);
150
	SetEventMask(0x27);
151
	load_dll(boxlib, #box_lib_init,0);
151
	load_dll(boxlib, #box_lib_init,0);
152
	list[SKINS].cur_y = list[WALLPAPERS].cur_y = -1;
152
	list[SKINS].cur_y = list[WALLPAPERS].cur_y = -1;
153
	list[SKINS].first = list[WALLPAPERS].first = 0;
153
	list[SKINS].first = list[WALLPAPERS].first = 0;
154
	TabClick(WALLPAPERS);
154
	TabClick(SKINS);
155
	list[WALLPAPERS].SetSizes(0, 230, 350, 400-PANEL_H, 18);
155
	list[WALLPAPERS].SetSizes(0, 230, 350, 400-PANEL_H, 18);
156
	list[SKINS].SetSizes(0, 230, 350, 400-PANEL_H, 18);
-
 
157
	loop()
-
 
158
	{
156
	list[SKINS].SetSizes(0, 230, 350, 400-PANEL_H, 18);
159
	  switch(WaitEvent()) 
157
	loop() switch(WaitEvent()) 
160
	  {
158
	{
161
	  	case evMouse:
159
	  	case evMouse:
162
			if (!CheckActiveProcess(Form.ID)) break;
160
			if (!CheckActiveProcess(Form.ID)) break;
163
			mouse.get();
161
			mouse.get();
Line 213... Line 211...
213
			IF (Form.status_window>=2) break;
211
			IF (Form.status_window>=2) break;
214
			DrawTabs();
212
			DrawTabs();
215
			Draw_List();
213
			Draw_List();
216
	  }
214
   }
217
   }
215
}
218
}
-
 
Line 219... Line 216...
219
 
216
 
Line 220... Line 217...
220
#define BT_PADDING 16
217
#define BT_PADDING 16
221
 
218
 
Line 240... Line 237...
240
 
237
 
241
 
238
 
242
void DrawTabs()
239
void DrawTabs()
243
{
240
{
244
	DrawBar(0,0, Form.cwidth, PANEL_H-1, system.color.work);
241
	DrawBar(0,0, Form.cwidth, PANEL_H-1, system.color.work);
245
	DrawTab(10,7, 2, list[WALLPAPERS].active, T_WALLPAPERS);
242
	DrawTab(10,7, 3, list[SKINS].active, T_SKINS);
246
	DrawTab(strlen(T_WALLPAPERS)*6+BT_PADDING+21,7, 3, list[SKINS].active, T_SKINS);
243
	if (isdir(WALP_STANDART_PATH)) DrawTab(strlen(T_SKINS)*6+BT_PADDING+21,7, 2, list[WALLPAPERS].active, T_WALLPAPERS);
247
	DrawBar(0,PANEL_H-2, Form.cwidth, 1, system.color.work_graph);
244
	DrawBar(0,PANEL_H-2, Form.cwidth, 1, system.color.work_graph);
Line 248... Line 245...
248
	DrawBar(0,PANEL_H-1, Form.cwidth, 1, 0xEEEeee);
245
	DrawBar(0,PANEL_H-1, Form.cwidth, 1, 0xEEEeee);