Subversion Repositories Kolibri OS

Rev

Rev 6805 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6805 Rev 6806
Line 86... Line 86...
86
void main()
86
void main()
87
{   
87
{   
88
	InitDlls();	
88
	InitDlls();	
89
	OpenDialog_init stdcall (#o_dialog);
89
	OpenDialog_init stdcall (#o_dialog);
90
	CursorPointer.Load(#CursorFile);
90
	CursorPointer.Load(#CursorFile);
91
	label.init(DEFAULT_FONT);
91
	kfont.init(DEFAULT_FONT);
92
	Libimg_LoadImage(#skin, abspath("toolbar.png"));
92
	Libimg_LoadImage(#skin, abspath("toolbar.png"));
93
	LoadIniSettings();
93
	LoadIniSettings();
94
	list.no_selection = true;
94
	list.no_selection = true;
95
	SetEventMask(10000000000000000000000001100111b);
95
	SetEventMask(10000000000000000000000001100111b);
96
	loop()
96
	loop()
Line 326... Line 326...
326
	PreparePage();
326
	PreparePage();
327
}
327
}
Line 328... Line 328...
328
 
328
 
329
void EventMagnifyPlus()
329
void EventMagnifyPlus()
330
{
330
{
331
	label.size.pt++;
331
	kfont.size.pt++;
332
	if(!label.changeSIZE())
332
	if(!kfont.changeSIZE())
333
		label.size.pt--;
333
		kfont.size.pt--;
334
	else
334
	else
335
		PreparePage();
335
		PreparePage();
Line 336... Line 336...
336
}
336
}
337
 
337
 
338
void EventMagnifyMinus()
338
void EventMagnifyMinus()
339
{
339
{
340
	label.size.pt--;
340
	kfont.size.pt--;
341
	if(!label.changeSIZE())
341
	if(!kfont.changeSIZE())
342
		label.size.pt++;
342
		kfont.size.pt++;
343
	else
343
	else
Line 344... Line 344...
344
		PreparePage();
344
		PreparePage();
Line 433... Line 433...
433
	{
433
	{
434
		DrawPage();
434
		DrawPage();
435
	}
435
	}
436
	else
436
	else
437
	{
437
	{
438
		if (!label.raw) {                           //this code need to be run
438
		if (!kfont.raw) {                           //this code need to be run
439
			if (param) EventOpenAddress(#param);    //only once at browser sturtup
439
			if (param) EventOpenAddress(#param);    //only once at browser sturtup
440
			else EventOpenAddress("aelia:home");
440
			else EventOpenAddress("aelia:home");
441
		}
441
		}
442
		else PreparePage();
442
		else PreparePage();
443
	}
443
	}
Line 446... Line 446...
446
}
446
}
Line 447... Line 447...
447
 
447
 
448
void DrawPage()
448
void DrawPage()
449
{
449
{
450
	list.CheckDoesValuesOkey();
450
	list.CheckDoesValuesOkey();
451
	if (list.count) _PutImage(list.x,list.y,list.w,list.h,list.first*list.item_h*list.w*3 + label.raw);
451
	if (list.count) _PutImage(list.x,list.y,list.w,list.h,list.first*list.item_h*list.w*3 + kfont.raw);
452
	DrawScroller();
452
	DrawScroller();
Line 453... Line 453...
453
}
453
}
454
 
454