Subversion Repositories Kolibri OS

Rev

Rev 9524 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9455 leency 1
#ifdef LANG_RUS
9465 leency 2
	char t_skins[] =       "   Стиль окон";
3
	char t_wallpapers[] =  "   Обои";
4
	char t_screensaver[] =  "   Скринсейвер";
9455 leency 5
	?define WINDOW_HEADER "Настройки оформления"
6
	?define T_SELECT_FOLDER "Выбрать папку"
7
	?define T_PICTURE_MODE " Положение картинки "
8
	?define T_CHECKBOX_STRETCH "Растянуть"
9
	?define T_CHECKBOX_TILED "Замостить"
9465 leency 10
	?define T_CHECKBOX_AUTO "Автоматически"
9455 leency 11
	?define T_UPDATE_DOCK "Обновлять Dock-панель"
9461 leency 12
	?define T_NO_FILES "'Поддерживаемые файлы не найдены' -E"
13
	?define T_UI_PREVIEW " Пример компонентов "
9516 leency 14
	?define T_SS_TIMEOUT "Интервал в минутах: %i "
9469 leency 15
	?define T_SS_PREVIEW "Просмотр"
9489 leency 16
	?define T_SS_SET "Установить"
9469 leency 17
	?define T_NO_SS "[Выключен]"
18
	?define T_DEFAULT "[По умолчанию]"
9455 leency 19
#else
9465 leency 20
	char t_skins[] =       "   Skins";
21
	char t_wallpapers[] =  "   Wallpapers";
22
	char t_screensaver[] =  "   Screensaver";
9455 leency 23
	?define WINDOW_HEADER "Appearance"
24
	?define T_SELECT_FOLDER "Select folder"
25
	?define T_PICTURE_MODE " Picture Mode "
26
	?define T_CHECKBOX_STRETCH "Stretch"
27
	?define T_CHECKBOX_TILED "Tiled"
9465 leency 28
	?define T_CHECKBOX_AUTO "Auto"
9455 leency 29
	?define T_UPDATE_DOCK "Update Dock"
9461 leency 30
	?define T_NO_FILES "'No supported files were found' -E"
31
	?define T_UI_PREVIEW " Components Preview "
9516 leency 32
	?define T_SS_TIMEOUT "Wait in minutes: %i "
9489 leency 33
	?define T_SS_PREVIEW "View"
34
	?define T_SS_SET "Set"
9469 leency 35
	?define T_NO_SS "[Disable]"
36
	?define T_DEFAULT "[Default]"
9455 leency 37
#endif
38
 
9516 leency 39
#define WIN_W 560
9524 leency 40
#define WIN_H 445
9516 leency 41
#define LIST_W 260
9455 leency 42
#define PANEL_H 50
9461 leency 43
#define LP 6 //LIST_PADDING
9524 leency 44
#define SL_VISIBLE WIN_H - PANEL_H - LP / SELECT_LIST_ITEMH
9461 leency 45
 
9516 leency 46
#define RIGHTx LP + LIST_W + TAB_P + 30
9461 leency 47
#define RIGHTy PANEL_H
9516 leency 48
#define RIGHTw WIN_W - RIGHTx - LP - TAB_P
9461 leency 49
#define RIGHTh 215
50
 
51
enum {
52
	TAB_SKINS,
53
	TAB_WALLPAPERS,
54
	TAB_SCREENSAVERS
55
};
56
 
9489 leency 57
enum {
58
	BASE_TAB_BUTTON_ID=3,
59
	BTN_SELECT_WALLP_FOLDER=10,
60
	BTN_TEST_SCREENSAVER,
61
	BTN_SET_SCREENSAVER
62
};
63
 
9461 leency 64
_ini ini = { "/sys/settings/system.ini" };
65
 
9585 vitalkrilo 66
char default_dir[] = "/sys";
9516 leency 67
od_filter filter2 = { 8, "TXT\0\0" };
68
 
69
_tabs tabs = { -sizeof(t_skins)-sizeof(t_wallpapers)-sizeof(t_screensaver)
70
	-3*8+WIN_W - TAB_P / 2, LP, NULL, BASE_TAB_BUTTON_ID };
71
 
72
scroll_bar ss_timeout = { RIGHTw-19,RIGHTx,15,RIGHTy+25,0,3,89,10,0,0xFFFfff,
9524 leency 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();
9585 vitalkrilo 106
}