Subversion Repositories Kolibri OS

Rev

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

Rev 7257 Rev 7259
Line 29... Line 29...
29
//                                                   //
29
//                                                   //
30
//                       DATA                        //
30
//                       DATA                        //
31
//                                                   //
31
//                                                   //
32
//===================================================//
32
//===================================================//
Line 33... Line 33...
33
 
33
 
Line 34... Line 34...
34
#define T_TITLE "Icon Editor 0.48 Alpha"
34
#define T_TITLE "Icon Editor 0.49 Alpha"
35
 
35
 
36
#define TOOLBAR_H    24+8
36
#define TOOLBAR_H    24+8
37
#define PANEL_LEFT_W 16+5+5+3+3
37
#define PANEL_LEFT_W 16+5+5+3+3
Line 78... Line 78...
78
	BTN_PENCIL,
78
	BTN_PENCIL,
79
	BTN_PICK,
79
	BTN_PICK,
80
	BTN_FILL,
80
	BTN_FILL,
81
	BTN_LINE,
81
	BTN_LINE,
82
	BTN_RECT,
82
	BTN_RECT,
-
 
83
	BTN_BAR,
83
	BTN_SELECT,
84
	BTN_SELECT,
-
 
85
	BTN_SCREEN,
84
	BTN_ZOOM_IN,
86
	BTN_ZOOM_IN,
85
	BTN_ZOOM_OUT,
87
	BTN_ZOOM_OUT,
86
	BTNS_PALETTE_COLOR_MAS = 100,
88
	BTNS_PALETTE_COLOR_MAS = 100,
87
	BTNS_LAST_USED_COLORS = 400
89
	BTNS_LAST_USED_COLORS = 400
88
};
90
};
Line 252... Line 254...
252
				case BTN_PENCIL:
254
				case BTN_PENCIL:
253
					setCurrentTool(TOOL_PENCIL);
255
					setCurrentTool(TOOL_PENCIL);
254
					break;
256
					break;
255
				case BTN_PICK:
257
				case BTN_PICK:
256
					setCurrentTool(TOOL_PIPETTE);
258
					setCurrentTool(TOOL_PIPETTE);
257
					//EventPickActivate();
-
 
258
					break;
259
					break;
259
				case BTN_FILL:
260
				case BTN_FILL:
260
					setCurrentTool(TOOL_FILL);
261
					setCurrentTool(TOOL_FILL);
261
					//EventFillActivate();
-
 
262
					break;
262
					break;
263
				case BTN_LINE:
263
				case BTN_LINE:
264
					setCurrentTool(TOOL_LINE);
264
					setCurrentTool(TOOL_LINE);
265
					break;
265
					break;
266
				case BTN_RECT:
266
				case BTN_RECT:
267
					setCurrentTool(TOOL_RECT);
267
					setCurrentTool(TOOL_RECT);
268
					break;
268
					break;
-
 
269
				case BTN_BAR:
-
 
270
					setCurrentTool(TOOL_BAR);
-
 
271
					break;
269
				case BTN_SELECT:
272
				case BTN_SELECT:
270
					setCurrentTool(TOOL_SELECT);
273
					setCurrentTool(TOOL_SELECT);
271
					break;
274
					break;
272
				case CLOSE_BTN:
275
				case CLOSE_BTN:
273
					EventExitIconEdit();
276
					EventExitIconEdit();
Line 370... Line 373...
370
	DrawLeftPanelButton(BTN_PENCIL, ty.inc(TB_ICON_PADDING), 38);
373
	DrawLeftPanelButton(BTN_PENCIL, ty.inc(TB_ICON_PADDING), 38);
371
	DrawLeftPanelButton(BTN_PICK,   ty.inc(TB_ICON_PADDING), 39);
374
	DrawLeftPanelButton(BTN_PICK,   ty.inc(TB_ICON_PADDING), 39);
372
	DrawLeftPanelButton(BTN_FILL,   ty.inc(TB_ICON_PADDING), 40);
375
	DrawLeftPanelButton(BTN_FILL,   ty.inc(TB_ICON_PADDING), 40);
373
	DrawLeftPanelButton(BTN_LINE,   ty.inc(TB_ICON_PADDING), 41);
376
	DrawLeftPanelButton(BTN_LINE,   ty.inc(TB_ICON_PADDING), 41);
374
	DrawLeftPanelButton(BTN_RECT,   ty.inc(TB_ICON_PADDING), 42);
377
	DrawLeftPanelButton(BTN_RECT,   ty.inc(TB_ICON_PADDING), 42);
-
 
378
	DrawLeftPanelButton(BTN_BAR,    ty.inc(TB_ICON_PADDING), 43);
375
	DrawLeftPanelButton(BTN_SELECT,   ty.inc(TB_ICON_PADDING), 43);
379
	DrawLeftPanelButton(BTN_SELECT, ty.inc(TB_ICON_PADDING), 44);
-
 
380
	//DrawLeftPanelButton(BTN_SCREEN, ty.inc(TB_ICON_PADDING), 45);
376
	DrawRectangle3D(5, currentTool*TB_ICON_PADDING+right_bar.y, 16+3+2, 16+3+2, 0x333333, 0x777777);
381
	DrawRectangle3D(5, currentTool*TB_ICON_PADDING+right_bar.y, 16+3+2, 16+3+2, 0x333333, 0x777777);
377
}
382
}
Line 378... Line 383...
378
 
383
 
379
void DrawEditArea()
384
void DrawEditArea()