Subversion Repositories Kolibri OS

Rev

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

Rev 5767 Rev 5825
Line 76... Line 76...
76
	for (i=0; i
76
	for (i=0; i
77
	{
77
	{
78
		cur = list[active].first;
78
		cur = list[active].first;
79
		strcpy(#temp_filename, io.dir.position(files_mas[i+cur]));
79
		strcpy(#temp_filename, io.dir.position(files_mas[i+cur]));
80
		temp_filename[strlen(#temp_filename)-4] = 0;
80
		temp_filename[strlen(#temp_filename)-4] = 0;
81
		yyy = i*list[active].line_h+list[active].y;
81
		yyy = i*list[active].item_h+list[active].y;
Line 82... Line 82...
82
		
82
		
83
		if (list[active].current-list[active].first==i)
83
		if (list[active].cur_y-list[active].first==i)
84
		{
84
		{
85
			if (system.color.work_button!=system.color.work)
85
			if (system.color.work_button!=system.color.work)
86
			{
86
			{
87
				DrawBar(0, yyy, list[active].w, list[active].line_h, system.color.work_button);
87
				DrawBar(0, yyy, list[active].w, list[active].item_h, system.color.work_button);
88
				if (i
88
				if (i
89
			}
89
			}
90
			else
90
			else
91
			{
91
			{
92
				DrawBar(0, yyy, list[active].w, list[active].line_h, system.color.grab_button);
92
				DrawBar(0, yyy, list[active].w, list[active].item_h, system.color.grab_button);
93
				if (i
93
				if (i
94
			}
94
			}
95
		}
95
		}
96
		else
96
		else
97
		{
97
		{
98
			DrawBar(0,yyy,list[active].w, list[active].line_h, 0xFFFfff);
98
			DrawBar(0,yyy,list[active].w, list[active].item_h, 0xFFFfff);
99
			WriteText(12,yyy+list[active].text_y,0x80,0, #temp_filename);
99
			WriteText(12,yyy+list[active].text_y,0x80,0, #temp_filename);
100
		}
100
		}
101
	}
101
	}
102
	DrawBar(0,list_last*list[active].line_h+list[active].y, list[active].w, -list_last*list[active].line_h+ list[active].h, 0xFFFfff);
102
	DrawBar(0,list_last*list[active].item_h+list[active].y, list[active].w, -list_last*list[active].item_h+ list[active].h, 0xFFFfff);
103
	DrawScroller();
103
	DrawScroller();
Line 104... Line 104...
104
}
104
}
105
 
105
 
Line 121... Line 121...
121
 
121
 
122
void Apply()
122
void Apply()
123
{
123
{
124
	if (list[SKINS].active)
124
	if (list[SKINS].active)
125
	{
125
	{
126
		cur = list[SKINS].current;
126
		cur = list[SKINS].cur_y;
127
		sprintf(#cur_file_path,"%s/%s",#folder_path,io.dir.position(files_mas[cur]));
127
		sprintf(#cur_file_path,"%s/%s",#folder_path,io.dir.position(files_mas[cur]));
128
		SetSystemSkin(#cur_file_path);
128
		SetSystemSkin(#cur_file_path);
129
	} 
129
	} 
130
	if (list[WALLPAPERS].active)
130
	if (list[WALLPAPERS].active)
131
	{
131
	{
132
		cur = list[WALLPAPERS].current;
132
		cur = list[WALLPAPERS].cur_y;
133
		sprintf(#cur_file_path,"\\S__%s/%s",#folder_path,io.dir.position(files_mas[cur]));
133
		sprintf(#cur_file_path,"\\S__%s/%s",#folder_path,io.dir.position(files_mas[cur]));
134
		RunProgram("/sys/media/kiv", #cur_file_path);
134
		RunProgram("/sys/media/kiv", #cur_file_path);
135
		Draw_List();
135
		Draw_List();
136
	}
136
	}
Line 147... Line 147...
147
{   
147
{   
148
	int id, mouse_clicked;
148
	int id, mouse_clicked;
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].current = list[WALLPAPERS].current = -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(WALLPAPERS);
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);
156
	list[SKINS].SetSizes(0, 230, 350, 400-PANEL_H, 18);