2021-12-22 02:26:10 +01:00
|
|
|
|
#ifdef LANG_RUS
|
2021-12-24 21:07:57 +01:00
|
|
|
|
char t_skins[] = " <20>⨫<EFBFBD> <20><><EFBFBD><EFBFBD>";
|
|
|
|
|
char t_wallpapers[] = " <20><><EFBFBD><EFBFBD>";
|
|
|
|
|
char t_screensaver[] = " <20><>ਭᥩ<E0A8AD><E1A5A9><EFBFBD>";
|
2021-12-22 02:26:10 +01:00
|
|
|
|
?define WINDOW_HEADER "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD><EFBFBD> <20><><EFBFBD>ଫ<EFBFBD><E0ACAB><EFBFBD><EFBFBD>"
|
|
|
|
|
?define T_SELECT_FOLDER "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define T_PICTURE_MODE " <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>⨭<EFBFBD><E2A8AD> "
|
|
|
|
|
?define T_CHECKBOX_STRETCH "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define T_CHECKBOX_TILED "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2021-12-24 21:07:57 +01:00
|
|
|
|
?define T_CHECKBOX_AUTO "<EFBFBD><EFBFBD>⮬<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪨"
|
2021-12-22 02:26:10 +01:00
|
|
|
|
?define T_UPDATE_DOCK "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Dock-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2021-12-23 13:27:15 +01:00
|
|
|
|
?define T_NO_FILES "'<27><><EFBFBD><EFBFBD><EFBFBD>ন<EFBFBD><E0A6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' -E"
|
|
|
|
|
?define T_UI_PREVIEW " <20>ਬ<EFBFBD><E0A8AC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢ "
|
2021-12-28 19:24:06 +01:00
|
|
|
|
?define T_SS_TIMEOUT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࢠ<EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: %i "
|
2021-12-25 11:36:30 +01:00
|
|
|
|
?define T_SS_PREVIEW "<EFBFBD><EFBFBD><EFBFBD>ᬮ<EFBFBD><EFBFBD>"
|
2021-12-27 16:48:22 +01:00
|
|
|
|
?define T_SS_SET "<EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2021-12-25 11:36:30 +01:00
|
|
|
|
?define T_NO_SS "[<5B>몫<EFBFBD>祭]"
|
|
|
|
|
?define T_DEFAULT "[<5B><> 㬮<>砭<EFBFBD><E7A0AD>]"
|
2021-12-22 02:26:10 +01:00
|
|
|
|
#else
|
2021-12-24 21:07:57 +01:00
|
|
|
|
char t_skins[] = " Skins";
|
|
|
|
|
char t_wallpapers[] = " Wallpapers";
|
|
|
|
|
char t_screensaver[] = " Screensaver";
|
2021-12-22 02:26:10 +01:00
|
|
|
|
?define WINDOW_HEADER "Appearance"
|
|
|
|
|
?define T_SELECT_FOLDER "Select folder"
|
|
|
|
|
?define T_PICTURE_MODE " Picture Mode "
|
|
|
|
|
?define T_CHECKBOX_STRETCH "Stretch"
|
|
|
|
|
?define T_CHECKBOX_TILED "Tiled"
|
2021-12-24 21:07:57 +01:00
|
|
|
|
?define T_CHECKBOX_AUTO "Auto"
|
2021-12-22 02:26:10 +01:00
|
|
|
|
?define T_UPDATE_DOCK "Update Dock"
|
2021-12-23 13:27:15 +01:00
|
|
|
|
?define T_NO_FILES "'No supported files were found' -E"
|
|
|
|
|
?define T_UI_PREVIEW " Components Preview "
|
2021-12-28 19:24:06 +01:00
|
|
|
|
?define T_SS_TIMEOUT "Wait in minutes: %i "
|
2021-12-27 16:48:22 +01:00
|
|
|
|
?define T_SS_PREVIEW "View"
|
|
|
|
|
?define T_SS_SET "Set"
|
2021-12-25 11:36:30 +01:00
|
|
|
|
?define T_NO_SS "[Disable]"
|
|
|
|
|
?define T_DEFAULT "[Default]"
|
2021-12-22 02:26:10 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
2021-12-28 19:24:06 +01:00
|
|
|
|
#define WIN_W 560
|
2021-12-30 00:09:18 +01:00
|
|
|
|
#define WIN_H 445
|
2021-12-28 19:24:06 +01:00
|
|
|
|
#define LIST_W 260
|
2021-12-22 02:26:10 +01:00
|
|
|
|
#define PANEL_H 50
|
2021-12-23 13:27:15 +01:00
|
|
|
|
#define LP 6 //LIST_PADDING
|
2021-12-30 00:09:18 +01:00
|
|
|
|
#define SL_VISIBLE WIN_H - PANEL_H - LP / SELECT_LIST_ITEMH
|
2021-12-23 13:27:15 +01:00
|
|
|
|
|
2021-12-28 19:24:06 +01:00
|
|
|
|
#define RIGHTx LP + LIST_W + TAB_P + 30
|
2021-12-23 13:27:15 +01:00
|
|
|
|
#define RIGHTy PANEL_H
|
2021-12-28 19:24:06 +01:00
|
|
|
|
#define RIGHTw WIN_W - RIGHTx - LP - TAB_P
|
2021-12-23 13:27:15 +01:00
|
|
|
|
#define RIGHTh 215
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
|
TAB_SKINS,
|
|
|
|
|
TAB_WALLPAPERS,
|
|
|
|
|
TAB_SCREENSAVERS
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-27 16:48:22 +01:00
|
|
|
|
enum {
|
|
|
|
|
BASE_TAB_BUTTON_ID=3,
|
|
|
|
|
BTN_SELECT_WALLP_FOLDER=10,
|
|
|
|
|
BTN_TEST_SCREENSAVER,
|
|
|
|
|
BTN_SET_SCREENSAVER
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-23 13:27:15 +01:00
|
|
|
|
_ini ini = { "/sys/settings/system.ini" };
|
|
|
|
|
|
2022-01-07 02:01:22 +01:00
|
|
|
|
char default_dir[] = "/sys";
|
2021-12-28 19:24:06 +01:00
|
|
|
|
od_filter filter2 = { 8, "TXT\0\0" };
|
|
|
|
|
|
|
|
|
|
_tabs tabs = { -sizeof(t_skins)-sizeof(t_wallpapers)-sizeof(t_screensaver)
|
|
|
|
|
-3*8+WIN_W - TAB_P / 2, LP, NULL, BASE_TAB_BUTTON_ID };
|
|
|
|
|
|
|
|
|
|
scroll_bar ss_timeout = { RIGHTw-19,RIGHTx,15,RIGHTy+25,0,3,89,10,0,0xFFFfff,
|
2021-12-30 00:09:18 +01:00
|
|
|
|
0xBBBbbb,0xeeeeee};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void sort_by_name(int a, b) // for the first call: a = 0, b = sizeof(mas) - 1
|
|
|
|
|
{
|
|
|
|
|
int j;
|
|
|
|
|
int isn = a;
|
|
|
|
|
if (a >= b) return;
|
|
|
|
|
for (j = a; j <= b; j++) {
|
|
|
|
|
if (strcmpi(io.dir.position(ESDWORD[j*4+fmas]), io.dir.position(ESDWORD[b*4+fmas]))<=0) {
|
|
|
|
|
ESDWORD[isn*4+fmas] >< ESDWORD[j*4+fmas];
|
|
|
|
|
isn++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
sort_by_name(a, isn-2);
|
|
|
|
|
sort_by_name(isn, b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dword get_real_kolibrios_path()
|
|
|
|
|
{
|
|
|
|
|
char real_kolibrios_path[256];
|
|
|
|
|
if (!dir_exists("/kolibrios")) return 0;
|
|
|
|
|
SetCurDir("/kolibrios");
|
|
|
|
|
GetCurDir(#real_kolibrios_path, sizeof(real_kolibrios_path));
|
|
|
|
|
return #real_kolibrios_path;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SelectList_LineChanged()
|
|
|
|
|
{
|
|
|
|
|
EventApply();
|
2022-01-07 02:01:22 +01:00
|
|
|
|
}
|