Rev 7551 | Rev 7612 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7551 | Rev 7594 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //11.03.12 - start! |
1 | //11.03.12 - start! |
2 | //ver 2.21 |
2 | //ver 2.3 |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #ifndef AUTOBUILD |
4 | #ifndef AUTOBUILD |
5 | ?include "lang.h--" |
5 | ?include "lang.h--" |
Line 12... | Line 12... | ||
12 | #include "..\lib\list_box.h" |
12 | #include "..\lib\list_box.h" |
13 | #include "..\lib\gui.h" |
13 | #include "..\lib\gui.h" |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | #include "..\lib\obj\box_lib.h" |
15 | #include "..\lib\obj\box_lib.h" |
- | 16 | #include "..\lib\obj\proc_lib.h" |
|
Line 16... | Line 17... | ||
16 | #include "..\lib\obj\proc_lib.h" |
17 | #include "..\lib\obj\libini.h" |
17 | 18 | ||
Line 18... | Line -... | ||
18 | #include "..\lib\patterns\select_list.h" |
- | |
19 | #include "..\lib\patterns\simple_open_dialog.h" |
- | |
20 | 19 | #include "..\lib\patterns\select_list.h" |
|
21 | #include "ini.h" |
20 | #include "..\lib\patterns\simple_open_dialog.h" |
22 | 21 | ||
23 | //===================================================// |
22 | //===================================================// |
24 | // // |
23 | // // |
Line 40... | Line 39... | ||
40 | ?define MENU_LIST "Open file Enter\nDelete file Del" |
39 | ?define MENU_LIST "Open file Enter\nDelete file Del" |
41 | #endif |
40 | #endif |
Line 42... | Line 41... | ||
42 | 41 | ||
43 | #define PANEL_H 40 |
42 | #define PANEL_H 40 |
44 | #define LP 10 //LIST_PADDING |
43 | #define LP 10 //LIST_PADDING |
45 | char skins_folder_path[4096] = "/kolibrios/res/skins"; |
44 | char skins_folder_path[4096]; |
Line 46... | Line 45... | ||
46 | char wallp_folder_path[4096] = "/kolibrios/res/wallpapers"; |
45 | char wallp_folder_path[4096]; |
47 | 46 | ||
48 | signed int active_skin=-1, active_wallpaper=-1; |
47 | signed int active_skin=-1, active_wallpaper=-1; |
49 | enum { |
48 | enum { |
Line 80... | Line 79... | ||
80 | // // |
79 | // // |
81 | // CODE // |
80 | // CODE // |
82 | // // |
81 | // // |
83 | //===================================================// |
82 | //===================================================// |
Line -... | Line 83... | ||
- | 83 | ||
- | 84 | void GetRealFolderPathes() |
|
- | 85 | { |
|
- | 86 | char real_skin_path[4096]; |
|
- | 87 | SetCurDir("/kolibrios"); |
|
- | 88 | GetCurDir(#real_skin_path, sizeof(real_skin_path)); |
|
- | 89 | sprintf(#skins_folder_path, "%s/res/skins", #real_skin_path); |
|
- | 90 | sprintf(#wallp_folder_path, "%s/res/wallpapers", #real_skin_path); |
|
- | 91 | } |
|
84 | 92 | ||
85 | void main() |
93 | void main() |
86 | { |
94 | { |
Line -... | Line 95... | ||
- | 95 | int id, mouse_clicked; |
|
- | 96 | ||
87 | int id, mouse_clicked; |
97 | GetRealFolderPathes(); |
88 | 98 | ||
89 | load_dll(boxlib, #box_lib_init,0); |
99 | load_dll(boxlib, #box_lib_init,0); |
90 | load_dll(libini, #lib_init,1); |
100 | load_dll(libini, #lib_init,1); |
91 | load_dll(Proc_lib, #OpenDialog_init,0); |
101 | load_dll(Proc_lib, #OpenDialog_init,0); |
Line 375... | Line 385... | ||
375 | { |
385 | { |
376 | if (tabs.active_tab==SKINS) RunProgram("/sys/skincfg", #cur_file_path); |
386 | if (tabs.active_tab==SKINS) RunProgram("/sys/skincfg", #cur_file_path); |
377 | if (tabs.active_tab==WALLPAPERS) RunProgram("/sys/media/kiv", #cur_file_path); |
387 | if (tabs.active_tab==WALLPAPERS) RunProgram("/sys/media/kiv", #cur_file_path); |
378 | } |
388 | } |
Line -... | Line 389... | ||
- | 389 | ||
379 | 390 | _ini ini = { "/sys/settings/eskin.ini", "main" }; |
|
380 | void EventExit() |
391 | void EventExit() |
- | 392 | { |
|
381 | { |
393 | ini.SetString("skin", #cur_skin_path, strlen(#cur_skin_path)); |
382 | ExitProcess(); |
- | |
383 | SaveSkinSettings(#cur_skin_path); |
394 | ExitProcess(); |
Line 384... | Line 395... | ||
384 | } |
395 | } |