IconEdit: add a notice while opening a file

git-svn-id: svn://kolibrios.org@7358 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2018-09-14 09:49:37 +00:00
parent 66c2b8b255
commit 64183baa43
4 changed files with 47 additions and 2 deletions

View File

@ -1,8 +1,12 @@
@del lang.h--
@echo #define LANG_ENG 1 >lang.h--
@del iconedit @del iconedit
cls
@c-- iconedit.c @c-- iconedit.c
@rename *.com *. @rename *.com *.
@del warning.txt @del warning.txt
@del lang.h--
if exist iconedit ( if exist iconedit (
"C:\Program Files\WinImage\winimage.exe" "D:\Soft\Kolibri\QEMU\kolibri.img" /H /Q /I iconedit "C:\Program Files\WinImage\winimage.exe" "D:\Soft\Kolibri\QEMU\kolibri.img" /H /Q /I iconedit

View File

@ -0,0 +1,18 @@
@del lang.h--
@echo #define LANG_RUS 1 >lang.h--
@del iconedit
cls
@c-- iconedit.c
@rename *.com *.
@del warning.txt
@del lang.h--
if exist iconedit (
"C:\Program Files\WinImage\winimage.exe" "D:\Soft\Kolibri\QEMU\kolibri.img" /H /Q /I iconedit
d:
cd "D:\Soft\Kolibri\QEMU"
call "D:\Soft\Kolibri\QEMU\qemu-kos-img.bat"
) else (
@pause
)

View File

@ -19,12 +19,26 @@
#include "colors_mas.h" #include "colors_mas.h"
#include "lang.h--"
//===================================================// //===================================================//
// // // //
// DATA // // DATA //
// // // //
//===================================================// //===================================================//
#ifdef LANG_RUS
#define T_NOTIFY_OPEN "'IconEdit
¤ ­­ë© ¬®¬¥­â IconEdit ¬®¦¥â ®âªà뢠âì ⮫쪮 ¨ª®­ª¨, ᮧ¤ ­­ë¥ ¢ á ¬®¬ । ªâ®à¥.
᫨ ­ã¦­® ®âªàëâì ¤à㣮¥ ¨§®¡à ¦¥­¨¥, ¢®á¯®«ì§ã©â¥áì ¨­áâà㬥­â®¬ <®â® ¯¯ à â>
¤«ï § å¢ â  ª à⨭ª¨ á íªà ­ .' -Wt"
#else
#define T_NOTIFY_OPEN "'IconEdit
You can open only files created in IconEdit for now!
In other case please use <Photo> tool to get an image from screen.' -Wt"
#endif
#define T_TITLE "Icon Editor 0.56 Alpha" #define T_TITLE "Icon Editor 0.56 Alpha"
#define TOPBAR_H 24+8 #define TOPBAR_H 24+8
@ -241,6 +255,7 @@ void main()
EventCreateNewIcon(); EventCreateNewIcon();
break; break;
case BTN_OPEN: case BTN_OPEN:
notify(T_NOTIFY_OPEN);
RunProgram("/sys/lod", sprintf(#param, "*png* %s",#program_path)); RunProgram("/sys/lod", sprintf(#param, "*png* %s",#program_path));
break; break;
case BTN_SAVE: case BTN_SAVE:

View File

@ -127,7 +127,15 @@ inline fastcall dword GetFreeRAM()
$mov eax, 18 $mov eax, 18
$mov ebx, 16 $mov ebx, 16
$int 0x40 $int 0x40
//return eax = free RAM in Kb //return eax = free RAM size in Kb
}
inline fastcall dword GetTotalRAM()
{
$mov eax, 18
$mov ebx, 17
$int 0x40
//return eax = total RAM size in Kb
} }
inline fastcall int GetCpuIdleCount() inline fastcall int GetCpuIdleCount()