2021-12-22 12:32:12 +01:00
|
|
|
|
WIN_W = 440
|
|
|
|
|
WIN_H = 200
|
|
|
|
|
BOT_PANEL_H = 70
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
CANCEL_BUTTON_ID = 1+BT_HIDE
|
|
|
|
|
HOME_BUTTON_ID = 2
|
|
|
|
|
REBOOT_BUTTON_ID = 3
|
|
|
|
|
POWEROFF_BUTTON_ID = 4
|
|
|
|
|
CHECKBOX_BUTTON_ID = 5+BT_HIDE
|
|
|
|
|
;---------------------------------------------------------------------
|
2016-11-01 00:41:05 +01:00
|
|
|
|
TEXT_HOME: db 'Home',0
|
|
|
|
|
TEXT_ENTER: db 'Enter',0
|
|
|
|
|
TEXT_END: db 'End',0
|
|
|
|
|
TEXT_CANCEL: db 'x',0
|
2021-12-22 12:32:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2016-11-01 00:41:05 +01:00
|
|
|
|
if lang eq ru
|
2021-12-22 12:32:12 +01:00
|
|
|
|
TEXT_WTITLE: db '<27><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><E8A5AD> ࠡ<><E0A0A1><EFBFBD>',0
|
|
|
|
|
TEXT_RDSAVE1: db '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, ᤥ<><E1A4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>',0
|
|
|
|
|
TEXT_RDSAVE2: db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠡ<><E0A0A1><EFBFBD> <20> <20><><EFBFBD>⥬<EFBFBD> (Ctrl+S)',0
|
|
|
|
|
TEXT_KERNEL: db '<27><><EFBFBD><EFBFBD>',0
|
|
|
|
|
TEXT_REBOOT: db '<27><>१<EFBFBD><E0A5A7><EFBFBD>㧪<EFBFBD>',0
|
|
|
|
|
TEXT_OFF: db '<27>몫<EFBFBD>祭<EFBFBD><E7A5AD>',0
|
|
|
|
|
TEXT_SAVING: db '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><>ࠧ<EFBFBD>...',0
|
2016-11-01 00:41:05 +01:00
|
|
|
|
else if lang eq ge
|
2021-12-22 12:32:12 +01:00
|
|
|
|
TEXT_WTITLE: db 'Shutdown computer',0
|
|
|
|
|
TEXT_RDSAVE1: db 'Save all changes that were done',0
|
|
|
|
|
TEXT_RDSAVE2: db 'during system work (Ctrl+S)',0
|
|
|
|
|
TEXT_KERNEL: db 'Kernel',0
|
|
|
|
|
TEXT_REBOOT: db 'Neustart',0
|
|
|
|
|
TEXT_OFF: db 'Beenden',0
|
|
|
|
|
TEXT_SAVING: db 'Saving RAM-drive...',0
|
2013-10-17 16:31:03 +02:00
|
|
|
|
else if lang eq it
|
2021-12-22 12:32:12 +01:00
|
|
|
|
TEXT_WTITLE: db 'Shutdown computer',0
|
|
|
|
|
TEXT_RDSAVE1: db 'Save all changes that were done',0
|
|
|
|
|
TEXT_RDSAVE2: db 'during system work (Ctrl+S)',0
|
|
|
|
|
TEXT_KERNEL: db 'Kernel',0
|
|
|
|
|
TEXT_REBOOT: db 'Riavvio',0
|
|
|
|
|
TEXT_OFF: db 'Spegni',0
|
|
|
|
|
TEXT_SAVING: db 'Saving RAM-drive...',0
|
2013-10-17 16:31:03 +02:00
|
|
|
|
else
|
2021-12-22 12:32:12 +01:00
|
|
|
|
TEXT_WTITLE: db 'Shutdown computer',0
|
|
|
|
|
TEXT_RDSAVE1: db 'Save all changes that were done',0
|
|
|
|
|
TEXT_RDSAVE2: db 'during system work (Ctrl+S)',0
|
|
|
|
|
TEXT_KERNEL: db 'Kernel',0
|
|
|
|
|
TEXT_REBOOT: db 'Reboot',0
|
|
|
|
|
TEXT_OFF: db 'Power off',0
|
|
|
|
|
TEXT_SAVING: db 'Saving RAM-drive...',0
|
2013-10-17 16:31:03 +02:00
|
|
|
|
end if
|
2021-12-22 12:32:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-10-17 16:31:03 +02:00
|
|
|
|
rdsave:
|
2021-01-10 20:33:26 +01:00
|
|
|
|
dd SSF_START_APP,0,hide,0,0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
db '/sys/rdsave',0
|
2021-12-22 12:32:12 +01:00
|
|
|
|
hide db 'h',0
|
|
|
|
|
asettings db 'settings',0
|
|
|
|
|
aautosave db 'autosave',0
|
|
|
|
|
ini_file db '/sys/settings/rdsave.ini',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2021-12-31 20:59:28 +01:00
|
|
|
|
importLib:
|
|
|
|
|
library \
|
|
|
|
|
libini, 'libini.obj'
|
|
|
|
|
|
|
|
|
|
import libini, \
|
|
|
|
|
ini_set_int ,'ini_set_int', \
|
|
|
|
|
ini_get_int ,'ini_get_int'
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2021-12-22 12:32:12 +01:00
|
|
|
|
checkbox_sharedname db 'CHECKBOX',0
|
|
|
|
|
checkbox_img dd ?
|
|
|
|
|
;---------------------------------------------------------------------
|