<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=72 y=10 w=66 h=66 z=1 align="CENTER" valign="CENTER" iconmodel="*.icon"	iconindex=3>
	<BUTTON xxx template=btn_4c x=44 align="LEFT+80" 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=410 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=516 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=622 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=tlist 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" template=slow_repeat>
	<BUTTON xxx             template=nextpage clickmodel="ui.lstFH_History_wr.nextpage" enabledmodel="ui.lstFH_History_wr.nextpage.valid" template=slow_repeat>
	<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=68 y=14 w=66 h=66 z=1 align="CENTER" valign="CENTER" iconmodel="*.icon"	iconindex=3>
	<BUTTON xxx x=68 align="LEFT+108" valign="CENTER" padding=8 fonttype=bw fontsize=32 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=68 z=10 bmp="btn_lb_Hyst.bmp#2" clickmodel="mydata.history.list.setcurrent $i" onrelease='wDestinationStatus.set 0,run sc_SearchHistoryAndGo,  run sc_btnPM_AddAny'>
</element_template>

<layer ui_FindHistory_wor z=30>
	<LIST lstFH_History_wor template=tlist 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" template=slow_repeat>
	<BUTTON xxx             template=nextpage clickmodel="ui.lstFH_History_wor.nextpage" enabledmodel="ui.lstFH_History_wor.nextpage.valid" template=slow_repeat>
	<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 btn_chhistmode template=footer5_3a text="With\nRoute" onrelease='run d_ChandeModeListRouteHistory 0'>
</layer>

<element_template et_ManageHistory>
	<BUTTON xxx template=btn_4d iconspr="x.bmp#3" clickmodel="mydata.history.list.setcurrent $i" onrelease='run sc_et_ManageHistoryDel_OnRelease' usefocus=0>
	<SPRITE xxx		x=68 y=15	z=1		align="CENTER" valign="CENTER"	iconmodel="*.icon"	iconindex=3 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=tlist 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" template=slow_repeat>
	<BUTTON xxx             template=nextpage clickmodel="ui.lstMH_History.nextpage" enabledmodel="ui.lstMH_History.nextpage.valid" template=slow_repeat>
	
	<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>
