<userlist lm_History text="str" onrelease="ui" enable="bool" visible="bool" real_index="int">
	<view visibility_filter=visible />
	<default text="" onrelease=undef enable=1 visible=1 real_index=0 >
		<row edit text="Edit" onrelease=sc_EditHistory visible=( !%lua.EditMode )  >
		<row text="Delete All" onrelease=sc_DeleteAllHistoryMSGbox visible=( %lua.EditMode )/>
</userlist>

<userlist lm_HistoryPopover text="str" onrelease="ui" enable="bool">
	<default enable=1/>
	<row text="Delete" onrelease=sc_DeleteSelectedHistoryMSGbox/>
</userlist>

<userlist lm_smartHistoryList street_base="wstr" street_crossing="wstr" text="wstr" icon="int" type="int" is_smart_item="bool" real_index="int" visible="bool">
	<view visibility_filter=visible/>
	<default visible=1>
</userlist>
	
<userlist lm_SmartHistory_header text="str">
	<row    text="Smart History Items:">
	<row    text="History Items:">
</userlist>

<element_template et_FindHistory icon="" text="" details="" value="" enable=1 >
	<implementation>
		<property isSmart value=(%*.is_smart_item && !%lua.HistoryListFilterString)>
	</implementation>
		<BUTTON class="listitem" onrelease=sc_SelectHistoryMain> 
			<HBOX class="listitem">
					<SPRITE class="listitem submenu svg" z=1001 iconmodel="*.icon" iconindex=(%*.type == lua.EHistoryTypes.Poi ? 2 : 1) visible=(!isSmart)>
					<SPRITE class="listitem submenu svg" z=1001 img=("ico_rank_" + (min(index + 1, 3)) + ".svg") visible=isSmart>
				<VBOX class="listitem">		
					<TEXT txt_history class="listitem history" text=(%*.text) wordwrap=2 line_break_method="hard" visible=(%*.type != lua.EHistoryTypes.Junction)>
					<TEXT txt_history_street1 class="listitem history" text=(%*.street_base) visible=(%*.type == lua.EHistoryTypes.Junction)>
					<TEXT txt_history_street2 class="listitem history" text=(%*.street_crossing) visible=(%*.type == lua.EHistoryTypes.Junction)>
				</VBOX>
				<SPRITE class="listitem icon popover" visible=(%lua.EditMode) >
			</HBOX>
		</BUTTON>
</element_template>

<layer ui_FindHistory z=30 >
	<DIV class="list">
		<SECTIONMARKER>
		<LIST2 lstFH_History class="list_control" SMOOTHSCROLLING>
			<HEADER class="inputcontrol" visible=(!%lua.EditMode)>
				<USE_LAYER class=fill layer=(States.CurrentState.InputControlLayer) LAYER_Z=32/>
			</HEADER>
			<LISTMODEL listmodel="ui.lm_smartHistoryList" element_template="et_FindHistory">
				<SEPARATOR insert_at=(sc_GetHistoryHeaderIndexes(%ui.lm_smartHistoryList.size, %lua.HistoryListFilterString)) element_template=et_Separator TEXT=(%ui.lm_SmartHistory_header[index].text) visible=(!%lua.HistoryListFilterString)>
			</LISTMODEL>
			<VSMARTSCROLL>
			<WHEEL>
			<LISTCONTROL>
		</LIST2>
	</DIV>
</layer>
