search controls change
This commit is contained in:
@@ -9,7 +9,6 @@ public.font_size = {
|
||||
small = 13,
|
||||
medium = 15,
|
||||
large = 18,
|
||||
huge = 23,
|
||||
}
|
||||
|
||||
function LOAD()
|
||||
|
||||
+7
-12
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user