<layer ui_wFindHistorySearch z=31>
	<SPRITE xxx template=xinputfield>
	<INPUTTEXT inpHF_Text template=xinput emptytitle="<Enter name filter>" maxlength=100 onchange='RUN sc_HistoryINP_onchange'>
	<TEXT txtFHS_NumberOf template=txt_results textmodel_str="mydata.history.list.size">
</layer>

<element_template et_FindHistory_wr>
	<SPRITE xxx	                 x=36 y=5 w=33 h=33 z=1 align="CENTER" valign="CENTER" iconmodel="*.icon"	iconindex=1>
	<BUTTON xxx template=btn_4c x=22 align="LEFT+40" valign="CENTER" textmodel_wstr="*.text" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 0,run sc_SearchHistoryAndGo'>
	<BUTTON xxx template=d_btn_list x=205 iconspr="$d_ico_loadroute.bmp" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 1, run sc_SearchHistoryAndGo' enabledmodel="!*.isempty" usefocus=0>
	<BUTTON xxx template=d_btn_list x=258 iconspr="ico_dest.bmp" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 2, run sc_SearchHistoryAndGo' enabledmodel="!*.isempty&navigation.has_route" usefocus=0>
	<BUTTON xxx template=d_btn_list x=311 iconspr="ico_via.bmp" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 3, run sc_SearchHistoryAndGo' enabledmodel="!*.isempty&navigation.has_route" usefocus=0>
</element_template>

<layer ui_FindHistory_wr z=30>
	<LIST lstFH_History_wr template=tlistnew element_template="et_FindHistory_wr" listmodel="mydata.history.list">
	<TEXT   xxx template=txt_empty  text="<No History Items>" visiblemodel="mydata.history.list.isempty">
	<SPRITE xxx             template=spr_empty visiblemodel="mydata.history.list.isempty">
	<TEXT   xxx             template=pageindex textmodel_wstr="ui.lstFH_History_wr.page_counter">
	<BUTTON xxx             template=prevpage clickmodel="ui.lstFH_History_wr.prevpage" enabledmodel="ui.lstFH_History_wr.prevpage.valid" onlongclick='.ui.lstFH_History_wr.autopage 2' onrelease='.ui.lstFH_History_wr.autopage 0' onmouseleave='.ui.lstFH_History_wr.autopage 0' NORELEASEONLONGCLICK>
	<BUTTON xxx             template=nextpage clickmodel="ui.lstFH_History_wr.nextpage" enabledmodel="ui.lstFH_History_wr.nextpage.valid" onlongclick='.ui.lstFH_History_wr.autopage 1' onrelease='.ui.lstFH_History_wr.autopage 0' onmouseleave='.ui.lstFH_History_wr.autopage 0' NORELEASEONLONGCLICK>
	<BUTTON xxx template=footer5_1a text="Filter" onrelease='run sc_History_SetFilter'>
	<BUTTON btnH_Sort_wr template=footer5_2a onrelease='run sc_HistorySortChange' enabledmodel="!mydata.history.list.isempty">
	<BUTTON xxx template=footer5_3a text="Without\nRoute" onrelease='run d_ChandeModeListRouteHistory 0'>
</layer>

<element_template et_FindHistory_wor>
	<SPRITE xxx  x=34 y=7 w=33 h=33 z=1 align="CENTER" valign="CENTER" iconmodel="*.icon"	iconindex=1>
	<BUTTON xxx x=34 align="LEFT+54" valign="CENTER" padding=4 fonttype=bw fontsize=16 twolinesmall=1  clicked_coloring=1 bmp="btn_4a_poi.bmp#2" textmodel_wstr="*.text" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 0, run sc_SearchHistoryAndGo'>
	<BUTTON xxx x=34 z=10 bmp="btn_lb_Hyst.bmp#2" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 0,run sc_SearchHistoryAndGo, 15 run sc_btnPM_AddAny'>
</element_template>

<layer ui_FindHistory_wor z=30>
	<LIST lstFH_History_wor template=tlistnew element_template="et_FindHistory_wor" listmodel="mydata.history.list">
	<TEXT   xxx template=txt_empty text="<No History Items>" visiblemodel="mydata.history.list.isempty">
	<SPRITE xxx             template=spr_empty visiblemodel="mydata.history.list.isempty">
	<TEXT   xxx             template=pageindex textmodel_wstr="ui.lstFH_History_wor.page_counter">
	<BUTTON xxx             template=prevpage clickmodel="ui.lstFH_History_wor.prevpage" enabledmodel="ui.lstFH_History_wor.prevpage.valid" onlongclick='.ui.lstFH_History_wor.autopage 2' onrelease='.ui.lstFH_History_wor.autopage 0' onmouseleave='.ui.lstFH_History_wor.autopage 0' NORELEASEONLONGCLICK>
	<BUTTON xxx             template=nextpage clickmodel="ui.lstFH_History_wor.nextpage" enabledmodel="ui.lstFH_History_wor.nextpage.valid" onlongclick='.ui.lstFH_History_wor.autopage 1' onrelease='.ui.lstFH_History_wor.autopage 0' onmouseleave='.ui.lstFH_History_wor.autopage 0' NORELEASEONLONGCLICK>
	<BUTTON xxx template=footer5_1a text="Filter" onrelease='run sc_History_SetFilter'>
	<BUTTON btnH_Sort_wor template=footer5_2a onrelease='run sc_HistorySortChange' enabledmodel="!mydata.history.list.isempty">
	<BUTTON xxx template=footer5_3a text="With\nRoute" onrelease='run d_ChandeModeListRouteHistory 0'>
</layer>

<element_template et_ManageHistory>
	<BUTTON xxx template=btn_4d iconspr="x.bmp" clickmodel="mydata.history.list.setcurrent $i" onrelease='run sc_et_ManageHistoryDel_OnRelease' usefocus=0>
	<SPRITE xxx	x=34 y=6 z=1 iconmodel="*.icon"	iconindex=1 usefocus=0>
	<BUTTON xxx template=btn_4b_icon textmodel_wstr="*.text" clickmodel="mydata.history.list.setcurrent $i">
	<BUTTON xxx template=btn_4b_icon z=100 alpha=0 disable>
</element_template>

<layer ui_ManageHistory z=30>
	<LIST lstMH_History template=tlistnew element_template="et_ManageHistory" listmodel="mydata.history.list">
	<TEXT   xxx             template=txt_empty  text="<No History Items>" visiblemodel="mydata.history.list.isempty">
	<SPRITE xxx             template=spr_empty visiblemodel="mydata.history.list.isempty">
	<TEXT   xxx             template=pageindex textmodel_wstr="ui.lstMH_History.page_counter">
	<BUTTON xxx             template=prevpage clickmodel="ui.lstMH_History.prevpage" enabledmodel="ui.lstMH_History.prevpage.valid" onlongclick='.ui.lstMH_History.autopage 2' onrelease='.ui.lstMH_History.autopage 0' onmouseleave='.ui.lstMH_History.autopage 0' NORELEASEONLONGCLICK>
	<BUTTON xxx             template=nextpage clickmodel="ui.lstMH_History.nextpage" enabledmodel="ui.lstMH_History.nextpage.valid" onlongclick='.ui.lstMH_History.autopage 1' onrelease='.ui.lstMH_History.autopage 0' onmouseleave='.ui.lstMH_History.autopage 0' NORELEASEONLONGCLICK>
	<BUTTON xxx template=footer5_1a text="Filter" onrelease='run sc_History_SetFilter'>
	<BUTTON btnH_SortM template=footer5_2a onrelease='run sc_HistorySortChange' enabledmodel="!mydata.history.list.isempty">
	<BUTTON btnMH_ClearAll  template=footer5_3a text="Clear\nHistory" enabledmodel="!mydata.history.list.isempty" onrelease='run sc_btnMH_ClearAll_OnRelease'> 
</layer>
