Subversion Repositories Kolibri OS

Rev

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

Rev 9516 Rev 9524
Line 35... Line 35...
35
	?define T_NO_SS "[Disable]"
35
	?define T_NO_SS "[Disable]"
36
	?define T_DEFAULT "[Default]"
36
	?define T_DEFAULT "[Default]"
37
#endif
37
#endif
Line 38... Line 38...
38
 
38
 
39
#define WIN_W 560
39
#define WIN_W 560
40
#define WIN_H 450
40
#define WIN_H 445
41
#define LIST_W 260
41
#define LIST_W 260
42
#define PANEL_H 50
42
#define PANEL_H 50
-
 
43
#define LP 6 //LIST_PADDING
Line 43... Line 44...
43
#define LP 6 //LIST_PADDING
44
#define SL_VISIBLE WIN_H - PANEL_H - LP / SELECT_LIST_ITEMH
44
 
45
 
45
#define RIGHTx LP + LIST_W + TAB_P + 30
46
#define RIGHTx LP + LIST_W + TAB_P + 30
46
#define RIGHTy PANEL_H
47
#define RIGHTy PANEL_H
Line 68... Line 69...
68
_tabs tabs = { -sizeof(t_skins)-sizeof(t_wallpapers)-sizeof(t_screensaver)
69
_tabs tabs = { -sizeof(t_skins)-sizeof(t_wallpapers)-sizeof(t_screensaver)
69
	-3*8+WIN_W - TAB_P / 2, LP, NULL, BASE_TAB_BUTTON_ID };
70
	-3*8+WIN_W - TAB_P / 2, LP, NULL, BASE_TAB_BUTTON_ID };
Line 70... Line 71...
70
 
71
 
71
scroll_bar ss_timeout = { RIGHTw-19,RIGHTx,15,RIGHTy+25,0,3,89,10,0,0xFFFfff,
72
scroll_bar ss_timeout = { RIGHTw-19,RIGHTx,15,RIGHTy+25,0,3,89,10,0,0xFFFfff,
72
	0xBBBbbb,0xeeeeee};
73
	0xBBBbbb,0xeeeeee};
-
 
74
 
-
 
75
 
-
 
76
 
-
 
77
 
-
 
78
 
-
 
79
void sort_by_name(int a, b) // for the first call: a = 0, b = sizeof(mas) - 1
-
 
80
{
-
 
81
	int j;
-
 
82
	int isn = a;
-
 
83
	if (a >= b) return;
-
 
84
	for (j = a; j <= b; j++) {
-
 
85
		if (strcmpi(io.dir.position(ESDWORD[j*4+fmas]), io.dir.position(ESDWORD[b*4+fmas]))<=0) { 
-
 
86
			ESDWORD[isn*4+fmas] >< ESDWORD[j*4+fmas]; 
-
 
87
			isn++;
-
 
88
		}
-
 
89
	}
-
 
90
	sort_by_name(a, isn-2);
-
 
91
	sort_by_name(isn, b);
-
 
92
}
-
 
93
 
-
 
94
dword get_real_kolibrios_path()
-
 
95
{
-
 
96
	char real_kolibrios_path[256];
-
 
97
	if (!dir_exists("/kolibrios")) return 0;
-
 
98
	SetCurDir("/kolibrios");
-
 
99
	GetCurDir(#real_kolibrios_path, sizeof(real_kolibrios_path));
-
 
100
	return #real_kolibrios_path;
-
 
101
}
-
 
102
 
-
 
103
void SelectList_LineChanged() 
-
 
104
{
-
 
105
	EventApply();
-
 
106
}
73
107