local M,d=...local l=d.DevTool l.DatabaseDefaults={profile={sideBarTabSelected="\104\105\115\116\111\114\121";isWndOpen=false,isSideBarOpen=true;MAX_HISTORY_SIZE=50;collResizeWidth=250;history={"\068\101\118\084\111\111\108","\102\105\110\100 \076\070\082","\102\105\110\100 \083\076\065\083\072";"\102\105\110\100 \068\097\116\097 \068\101\118\084\111\111\108","\115\116\097\114\116\115\119\105\116\104 \068\101\118\084\111\111\108","\068\101\118\084\111\111\108\046\115\101\116\116\105\110\103\115\046\104\105\115\116\111\114\121"};logs={};tArgs={};fontSize=10;colorVals={table={.41,.8,.94;1};string={.67;.83,.45;1},number={1,.96;.41,1};["\102\117\110\099\116\105\111\110"]={1,.49;.04;1},default={1,1,1,1}};events={{event="\065\076\076";active=false},{event="\067\079\077\066\065\084\095\076\079\071\095\069\086\069\078\084\095\085\078\070\073\076\084\069\082\069\068";active=false};{event="\085\078\073\084\095\065\085\082\065";unit="\112\108\097\121\101\114";active=false},{event="\085\080\068\065\084\069\095\085\073\095\087\073\068\071\069\084";active=false}}}}
-- DevTool is a World of Warcraft® addon development tool.
-- Copyright (c) 2021-2024 Britt W. Yazel
-- Copyright (c) 2016-2021 Peter aka "Varren"
-- This code is licensed under the MIT license (see LICENSE for details)

local _, addonTable = ... --make use of the default addon namespace
local DevTool = addonTable.DevTool

-- Default settings
-- this variable will be used only on first load so it is just default init with empty values.
-- will be replaced with DevTool_Settings at 2-nd start
DevTool.DatabaseDefaults = {
	profile = {
		-- selected list in gui. one of 3 list from settings: history or function call logs or events
		sideBarTabSelected = "history",

		-- UI saved state
		isWndOpen = false,
		isSideBarOpen = true,

		-- stores history of recent calls to /dev
		MAX_HISTORY_SIZE = 50,
		collResizeWidth = 250,
		history = {
			-- examples
			"DevTool",
			"find LFR",
			"find SLASH",
			"find Data DevTool",
			"startswith DevTool",
			"DevTool.settings.history",
		},
		logs = {--{
			--    fnName = "functionNameHere",
			--    parentTableName = "DevTool.sometable",
			--    active = false
			--},
		},

		-- stores arguments for function calls --todo implement
		tArgs = {},
		fontSize = 10, -- font size for default table
		colorVals = {
			["table"] = { 0.41, 0.80, 0.94, 1 },
			["string"] = { 0.67, 0.83, 0.45, 1 },
			["number"] = { 1, 0.96, 0.41, 1 },
			["function"] = { 1, 0.49, 0.04, 1 },
			["default"] = { 1, 1, 1, 1 },
		},

		-- events to monitor
		-- format ({event = "EVENT_NAME", unit = "player", active = true}, ...)
		-- default events inactive
		events = {
			{
				event = "ALL",
				active = false
			},
			{
				event = "COMBAT_LOG_EVENT_UNFILTERED",
				active = false
			},
			{
				event = "UNIT_AURA",
				unit = "player",
				active = false
			},
			{
				event = "UPDATE_UI_WIDGET",
				active = false
			}
		},
	}
}