Quantcast

added bindings for check boxes

Sidoine De Wispelaere [01-22-10 - 20:59]
added bindings for check boxes

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@214 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Bindings.xml
Locale-enUS.lua
Locale-frFR.lua
Ovale.lua
Ovale.toc
diff --git a/Bindings.xml b/Bindings.xml
new file mode 100644
index 0000000..e615a7b
--- /dev/null
+++ b/Bindings.xml
@@ -0,0 +1,17 @@
+<Bindings>
+	<Binding name="OVALE_CHECKBOX0" header="OVALE">
+		Ovale:ToggleCheckBox(0)
+	</Binding>
+	<Binding name="OVALE_CHECKBOX1">
+		Ovale:ToggleCheckBox(1)
+	</Binding>
+	<Binding name="OVALE_CHECKBOX2">
+		Ovale:ToggleCheckBox(2)
+	</Binding>
+	<Binding name="OVALE_CHECKBOX3">
+		Ovale:ToggleCheckBox(3)
+	</Binding>
+	<Binding name="OVALE_CHECKBOX4">
+		Ovale:ToggleCheckBox(4)
+	</Binding>
+</Bindings>
diff --git a/Locale-enUS.lua b/Locale-enUS.lua
index d65b2fc..8a761d3 100644
--- a/Locale-enUS.lua
+++ b/Locale-enUS.lua
@@ -42,4 +42,5 @@ L["Affiche les deux prochains sorts et pas uniquement le suivant"] = "Display tw
 L["Défilement"] = "Scrolling"
 L["Les icônes se déplacent"] = "Scroll the icons"
 L["multidot"] = "Damage Over Time on multiple targets"
-L["buff"] = "Buffs"
\ No newline at end of file
+L["buff"] = "Buffs"
+L["Inverser la boîte à cocher "] = "Toggle check box"
\ No newline at end of file
diff --git a/Locale-frFR.lua b/Locale-frFR.lua
index 629af7b..9e724cb 100644
--- a/Locale-frFR.lua
+++ b/Locale-frFR.lua
@@ -42,4 +42,5 @@ L["Affiche les deux prochains sorts et pas uniquement le suivant"] = true
 L["Défilement"] = true
 L["Les icônes se déplacent"] = true
 L["multidot"] = "Multicible pour DoTs"
-L["buff"] = "Améliorations"
\ No newline at end of file
+L["buff"] = "Améliorations"
+L["Inverser la boîte à cocher "] = true
\ No newline at end of file
diff --git a/Ovale.lua b/Ovale.lua
index db974e3..2b551af 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -41,6 +41,13 @@ Ovale.lastSpellTime = 0

 Ovale.arbre = {}

+BINDING_HEADER_OVALE = "Ovale"
+BINDING_NAME_OVALE_CHECKBOX0 = L["Inverser la boîte à cocher "].."(1)"
+BINDING_NAME_OVALE_CHECKBOX1 = L["Inverser la boîte à cocher "].."(2)"
+BINDING_NAME_OVALE_CHECKBOX2 = L["Inverser la boîte à cocher "].."(3)"
+BINDING_NAME_OVALE_CHECKBOX3 = L["Inverser la boîte à cocher "].."(4)"
+BINDING_NAME_OVALE_CHECKBOX4 = L["Inverser la boîte à cocher "].."(5)"
+
 -- Ovale.trace=true
 local nouvelleCondition
 local nouveauSort
@@ -1667,3 +1674,13 @@ function Ovale:EnableOtherDebuffs()
 	end
 	self.otherDebuffsEnabled = true
 end
+
+function Ovale:ToggleCheckBox(v)
+	for k,checkBox in pairs(self.casesACocher) do
+		if v==0 then
+			self.checkBoxes[k]:SetValue(not self.checkBoxes[k]:GetValue())
+			break
+		end
+		v = v - 1
+	end
+end
\ No newline at end of file
diff --git a/Ovale.toc b/Ovale.toc
index d9528c5..5bcf72e 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -3,7 +3,7 @@
 ## Notes: Show the icon of the next spell to cast
 ## Notes-frFR: Affiche l'icône du prochain sort à lancer
 ## Author: Sidoine
-## Version: 3.3.18
+## Version: 3.3.19
 ## OptionalDeps: Ace3, ButtonFacade, Recount, LibBabble-CreatureType-3.0
 ## SavedVariables: OvaleDB
 ## SavedVariablesPerCharacter: OvaleDBPC