big filter refactoring, filter tab changes
This commit is contained in:
+8
-16
@@ -344,9 +344,7 @@ Aux.search_tab.FRAMES(function(m, public, private)
|
||||
btn1:SetHeight(24)
|
||||
btn1:SetText('Search')
|
||||
btn1:SetScript('OnClick', function()
|
||||
m.search_box:SetText('')
|
||||
m.add_filter()
|
||||
m.clear_form()
|
||||
m.export_query_string()
|
||||
m.execute()
|
||||
end)
|
||||
|
||||
@@ -354,21 +352,15 @@ Aux.search_tab.FRAMES(function(m, public, private)
|
||||
btn2:SetPoint('LEFT', btn1, 'RIGHT', 5, 0)
|
||||
btn2:SetWidth(80)
|
||||
btn2:SetHeight(24)
|
||||
btn2:SetText('Add')
|
||||
btn2:SetScript('OnClick', function()
|
||||
m.add_filter()
|
||||
m.clear_form()
|
||||
end)
|
||||
btn2:SetText('Export')
|
||||
btn2:SetScript('OnClick', m.export_query_string)
|
||||
|
||||
local btn3 = Aux.gui.button(m.frame.filter, 16)
|
||||
btn3:SetPoint('LEFT', btn2, 'RIGHT', 5, 0)
|
||||
btn3:SetWidth(80)
|
||||
btn3:SetHeight(24)
|
||||
btn3:SetText('Replace')
|
||||
btn3:SetScript('OnClick', function()
|
||||
m.add_filter(nil, true)
|
||||
m.clear_form()
|
||||
end)
|
||||
btn3:SetText('Import')
|
||||
btn3:SetScript('OnClick', m.import_query_string)
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(m.frame.filter)
|
||||
@@ -519,7 +511,7 @@ Aux.search_tab.FRAMES(function(m, public, private)
|
||||
Aux.gui.vertical_line(m.frame.filter, 332)
|
||||
do
|
||||
local dropdown = Aux.gui.dropdown(m.frame.filter)
|
||||
dropdown:SetPoint('TOPRIGHT', -200, -10)
|
||||
dropdown:SetPoint('TOPRIGHT', -210, -10)
|
||||
dropdown:SetWidth(170)
|
||||
dropdown:SetHeight(10)
|
||||
UIDropDownMenu_Initialize(dropdown, m.initialize_filter_dropdown)
|
||||
@@ -553,8 +545,8 @@ Aux.search_tab.FRAMES(function(m, public, private)
|
||||
end
|
||||
do
|
||||
local label = Aux.gui.label(m.frame.filter, 13)
|
||||
label:SetPoint('TOPLEFT', 340, -50)
|
||||
label:SetWidth(200)
|
||||
label:SetPoint('TOPLEFT', 350, -53)
|
||||
label:SetWidth(300)
|
||||
label:SetJustifyH('LEFT')
|
||||
private.filter_display = label
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user