Subversion Repositories Kolibri OS

Rev

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

Rev 7227 Rev 7244
Line 7... Line 7...
7
#define WIN_W 490
7
#define WIN_W 490
8
#define WIN_H 315
8
#define WIN_H 315
9
proc_info Form;
9
proc_info Form;
Line 10... Line 10...
10
 
10
 
11
enum { 
-
 
12
	STRONG_BTN=10, SMOOTH_BTN, 
11
enum { 
13
	PHRASE_TAB=20, CHARS_TAB
12
	PHRASE_TAB=20, CHARS_TAB
Line 14... Line 13...
14
};
13
};
Line 15... Line 14...
15
 
14
 
16
_tabs tabs = { 0,0, WIN_W, WIN_H, PHRASE_TAB};
-
 
-
 
15
_tabs tabs = { 0,0, WIN_W, WIN_H, PHRASE_TAB};
-
 
16
 
Line 17... Line 17...
17
 
17
block preview = { 0, PANELH, WIN_W, WIN_H - PANELH };
18
block preview = { 0, PANELH, WIN_W, WIN_H - PANELH };
18
checkbox bold = { "Bold", false };
19
 
19
checkbox smooth = { "Smooth", true };
20
 
20
 
Line 29... Line 29...
29
	loop() switch(WaitEvent())
29
	loop() switch(WaitEvent())
30
	{
30
	{
31
		case evButton:
31
		case evButton:
32
			btn = GetButtonID();
32
			btn = GetButtonID();
33
			if (btn==1) ExitProcess();
33
			if (btn==1) ExitProcess();
34
			if (btn==STRONG_BTN) kfont.bold ^=1;
34
			if (bold.click(btn)) kfont.bold = bold.checked;
35
			if (btn==SMOOTH_BTN) kfont.smooth ^=1;
35
			if (smooth.click(btn)) kfont.smooth = smooth.checked;
36
			if (btn==PHRASE_TAB) || (btn==CHARS_TAB) tabs.click(btn);
36
			if (btn==PHRASE_TAB) || (btn==CHARS_TAB) tabs.click(btn);
37
			goto _DRAW_WINDOW_CONTENT;
37
			goto _DRAW_WINDOW_CONTENT;
38
		case evReDraw:
38
		case evReDraw:
39
			system.color.get();
39
			system.color.get();
40
			DefineAndDrawWindow(215,100,WIN_W+9,WIN_H+skin_height+5,0x74,0xFFFFFF,#title,0);
40
			DefineAndDrawWindow(215,100,WIN_W+9,WIN_H+skin_height+5,0x74,0xFFFFFF,#title,0);
Line 42... Line 42...
42
			if (Form.status_window>2) break;
42
			if (Form.status_window>2) break;
43
			_DRAW_WINDOW_CONTENT:
43
			_DRAW_WINDOW_CONTENT:
Line 44... Line 44...
44
 
44
 
45
			DrawBar(0, 0, Form.cwidth, PANELH-1, system.color.work);
45
			DrawBar(0, 0, Form.cwidth, PANELH-1, system.color.work);
46
			DrawBar(0, PANELH-1,Form.cwidth,1,system.color.work_graph);
46
			DrawBar(0, PANELH-1,Form.cwidth,1,system.color.work_graph);
47
			CheckBox(10, 8, STRONG_BTN, "Bold",  kfont.bold);
47
			bold.draw(10, 8);
Line 48... Line 48...
48
			CheckBox(83,8, SMOOTH_BTN, "Smooth",  kfont.smooth);
48
			smooth.draw(83,8);
49
 
49
 
Line 50... Line 50...
50
			tabs.draw_button(Form.cwidth-130, PHRASE_TAB, "Phrase");
50
			tabs.draw_button(Form.cwidth-130, PHRASE_TAB, "Phrase");