#define PROG_NAME "Placer"

#define	ID_FIRST		2000

#define	ID_OPEN			ID_FIRST
#define	ID_INFO			(ID_FIRST+1)
#define	ID_ZOOMIN		(ID_FIRST+2)
#define	ID_ZOOMOUT		(ID_FIRST+3)
#define	ID_RECT			(ID_FIRST+4)
#define	ID_RECT_left	(ID_FIRST+5)
#define	ID_RECT_top		(ID_FIRST+6)
#define	ID_RECT_right	(ID_FIRST+7)
#define	ID_RECT_bottom  (ID_FIRST+8)
#define	ID_COLOR		(ID_FIRST+9)
#define	ID_COLOR_R		(ID_FIRST+10)
#define	ID_COLOR_G		(ID_FIRST+11)
#define	ID_COLOR_B		(ID_FIRST+12)
#define	ID_REF			(ID_FIRST+13)
#define	ID_REF_x		(ID_FIRST+14)
#define	ID_REF_y		(ID_FIRST+15)
#define	ID_FLATTEN		(ID_FIRST+16)
#define	ID_SAVE			(ID_FIRST+17)
#define	ID_UNDO			(ID_FIRST+18)
#define	ID_CLOSE		(ID_FIRST+19)
#define	ID_LAST			ID_CLOSE
#define	ID_NUM			(ID_LAST-ID_FIRST+1)

#define	ID_MLOAD		(ID_LAST+1)
#define	ID_MSAVE		(ID_LAST+2)
#define	ID_MLIST		(ID_LAST+3)

#define	IDL_FIRST		(ID_MLIST+1)
#define	ID_HIST			IDL_FIRST
#define	ID_HIST_EDT		(IDL_FIRST+1)
#define	ID_HIST_UD		(IDL_FIRST+2)
#define	ID_PYRM			(IDL_FIRST+3)
#define	ID_PYRM_EDT		(IDL_FIRST+4)
#define	ID_PYRM_UD		(IDL_FIRST+5)
#define	ID_FILL			(IDL_FIRST+6)
#define	ID_FILL_EDT		(IDL_FIRST+7)
#define	ID_FILL_UD		(IDL_FIRST+8)
#define	ID_RGBG			(IDL_FIRST+9)
#define	ID_RGBG_EDT		(IDL_FIRST+10)
#define	ID_RGBG_UD		(IDL_FIRST+11)
#define	ID_EROD			(IDL_FIRST+12)
#define	ID_EROD_EDT		(IDL_FIRST+13)
#define	ID_EROD_UD		(IDL_FIRST+14)
#define	ID_SMOO			(IDL_FIRST+15)
#define	ID_SMOO_EDT		(IDL_FIRST+16)
#define	ID_SMOO_UD		(IDL_FIRST+17)
#define	ID_CONT			(IDL_FIRST+18)
#define	ID_CONT_EDT		(IDL_FIRST+19)
#define	ID_CONT_UD		(IDL_FIRST+20)
#define	ID_THRE			(IDL_FIRST+21)
#define	ID_THRE_EDT		(IDL_FIRST+22)
#define	ID_THRE_UD		(IDL_FIRST+23)
#define	IDL_LAST		ID_THRE_UD
#define	IDL_NUM			((IDL_LAST-IDL_FIRST+1)/3)
#define	ID_EDGE			(IDL_FIRST+24)
#define	IDR_FIRST		ID_EDGE
#define	ID_EDGE_EDT		(IDL_FIRST+25)
#define	ID_EDGE_UD		(IDL_FIRST+26)
#define	ID_APPR			(IDL_FIRST+27)
#define	ID_APPR_EDT		(IDL_FIRST+28)
#define	ID_APPR_UD		(IDL_FIRST+29)
#define	ID_SNAK			(IDL_FIRST+30)
#define	ID_SNAK_EDT		(IDL_FIRST+31)
#define	ID_SNAK_UD		(IDL_FIRST+32)
#define	ID_HOUG			(IDL_FIRST+33)
#define	ID_HOUG_EDT		(IDL_FIRST+34)
#define	ID_HOUG_UD		(IDL_FIRST+35)
#define	ID_CNVX			(IDL_FIRST+36)
#define	ID_CNVX_EDT		(IDL_FIRST+37)
#define	ID_CNVX_UD		(IDL_FIRST+38)
#define	IDR_LAST		ID_CNVX_UD
#define	IDR_NUM			((IDR_LAST-IDR_FIRST+1)/3)

#define	ID_MSG			(IDR_LAST+1)
#define	ID_HWND			(ID_MSG+1)
#define	ID_HWNDR		(ID_HWND+1)
#define	ID_PAINT		(ID_HWNDR+1)

#define ID_BTN( xxx ) 	ID_##xxx

#define ID_ID(i) 		(IDL_FIRST+3*(i))
#define ID_EDT(i) 		(IDL_FIRST+3*(i)+1)
#define ID_UD(i) 		(IDL_FIRST+3*(i)+2)

#define IDR_ID(i) 		(IDR_FIRST+3*(i))
#define IDR_EDT(i) 		(IDR_FIRST+3*(i)+1)
#define IDR_UD(i) 		(IDR_FIRST+3*(i)+2)
