Subversion Repositories Kolibri OS

Rev

Rev 3440 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3363 leency 1
#define MEMSIZE 0xA1000
2
#include "..\lib\kolibri.h"
3
#include "..\lib\strings.h"
4
#include "..\lib\figures.h"
5
#include "..\lib\encoding.h"
6
#include "..\lib\file_system.h"
7
#include "..\lib\mem.h"
8
#include "..\lib\dll.h"
3434 leency 9
#include "..\lib\copyf.h"
3363 leency 10
//*.obj libraries
11
#include "..\lib\lib.obj\box_lib.h"
12
#include "..\lib\lib.obj\libio_lib.h"
13
#include "..\lib\lib.obj\libimg_lib.h"
14
#include "..\lib\lib.obj\truetype.h"
15
 
16
 
17
#define LOGOW 16
18
#define LOGOH 16
19
#define BLACK_H 40
20
#define TEXTX 20
21
#define WIN_W 500
22
#define WIN_H 350
23
 
24
unsigned char logo[LOGOW*LOGOH*3]= FROM "img\logo.raw";
25
 
26
proc_info Form;
27
system_colors sc;
28
char dialog;
29
enum {
30
	HALLO,
31
	INSTALL,
32
	END
33
};
34
 
35
int DefineWindow(dword wtitle, wbutton)
36
{
37
	sc.get();
38
	DefineAndDrawWindow(GetScreenWidth()-WIN_W/2,GetScreenHeight()-WIN_H/2-30, WIN_W+9, WIN_H+GetSkinHeight()+4, 0x74,0xFFFfff);
39
	DrawTitle("KolibriN 8.2a Setup");
40
	GetProcessInfo(#Form, SelfInfo);
41
	if (Form.status_window>2) return 0; //rolled_up
42
 
43
	DrawBar(0, 0, Form.cwidth, BLACK_H, 0);
44
	_PutImage(BLACK_H-LOGOW/2, BLACK_H-LOGOH/2, LOGOW,LOGOH, #logo);
45
	WriteTextB(BLACK_H-LOGOW + LOGOW, BLACK_H-6/2, 0x90, 0xFFFfff, wtitle);
3412 leency 46
	DrawBar(0, BLACK_H, Form.cwidth, Form.cheight-BLACK_H, 0xFFFfff);
3363 leency 47
	DrawCaptButton(Form.cwidth-107, Form.cheight-40, 90, 24, 10, sc.work_button, sc.work_button_text,wbutton);
48
	return 1;
49
}
50
 
3991 leency 51
 
52
struct sysdir
53
{
54
   char name[64];
55
   char path[64];
56
} sysdir;
57
 
58
 
59
int SetAddApplDir(dword tName, tPath)
60
{
61
	int i;
62
	strcpy(#sysdir.name, tName);
63
	strcpy(#sysdir.path, tPath);
64
	if (sysdir.name[0]=='/') strcpy(#sysdir.name, #sysdir.name+1);
65
	if (sysdir.path[0]=='/') strcpy(#sysdir.path, #sysdir.path+1);
66
	i = strlen(#sysdir.name);
67
	if (sysdir.name[i]=='/') sysdir.name[i]='\0';
68
	i = strlen(#sysdir.path);
69
	if (sysdir.path[i]=='/') sysdir.path[i]='\0';
70
	debug(#sysdir.name);
71
	debug(#sysdir.path);
72
	$mov eax, 30
73
	$mov ebx, 3
74
	ECX = #sysdir;
75
	$int 0x40
76
}
77
 
78
 
3363 leency 79
#include "tmp_add.c"
80
#include "hallo.c";
81
#include "installation.c";
82
 
83
void main()
84
{
85
	mem_Init();
86
	HalloLoop();
87
}
88
 
89
 
90
stop: