search controls change

This commit is contained in:
Manuel Simon Hirsig
2016-10-13 17:50:58 +02:00
parent 76efcc298d
commit be7271ac8c
3 changed files with 8 additions and 14 deletions
-1
View File
@@ -9,7 +9,6 @@ public.font_size = {
small = 13,
medium = 15,
large = 18,
huge = 23,
}
function LOAD()
+7 -12
View File
@@ -69,11 +69,9 @@ do
private.next_button = btn
end
do
local btn = gui.button(frame, gui.font_size.huge)
local btn = gui.button(frame)
btn:SetPoint('TOPRIGHT', -5, -8)
btn:SetWidth(70)
btn:SetHeight(25)
btn:SetText'Start'
btn:SetText'Search'
btn:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
btn:SetScript('OnClick', function()
if arg1 == 'RightButton' then
@@ -84,22 +82,19 @@ do
private.start_button = btn
end
do
local btn = gui.button(frame, gui.font_size.huge)
local btn = gui.button(frame)
btn:SetPoint('TOPRIGHT', -5, -8)
btn:SetWidth(70)
btn:SetHeight(25)
btn:SetText'Stop'
btn:SetText'Pause'
btn:SetScript('OnClick', function()
scan.abort(search_scan_id)
end)
private.stop_button = btn
end
do
local btn = gui.button(frame, gui.font_size.huge)
local btn = gui.button(frame)
btn:SetPoint('RIGHT', start_button, 'LEFT', -4, 0)
btn:SetWidth(70)
btn:SetHeight(25)
btn:SetText(color.green 'Resume')
btn:SetBackdropColor(color.state.enabled())
btn:SetText'Resume'
btn:SetScript('OnClick', function()
execute(true)
end)
+1 -1
View File
@@ -300,7 +300,7 @@ function public.execute(resume, real_time)
if resume then
current_search.table:SetSelectedRecord()
else
if filter_string ~= current_search.filter_string or current_search.first_page ~= first_page or current_search.last_page ~= last_page then
if filter_string ~= current_search.filter_string then
if current_search.filter_string then
new_search(filter_string, first_page, last_page)
else