forked from KolibriOS/kolibrios
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:
parent
66c2b8b255
commit
64183baa43
@ -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
|
||||||
|
18
programs/cmm/iconedit/compile_ru.bat
Normal file
18
programs/cmm/iconedit/compile_ru.bat
Normal 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
|
||||||
|
)
|
@ -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:
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user