#textdomain wesnoth-lib
###
### Definition of the settings window in the editor.
###

[window]
	id = "editor_settings"
	description = "Editor settings dialog."

	[resolution]
		definition = "default"

		automatic_placement = "true"
		vertical_placement = "center"
		horizontal_placement = "center"

		[tooltip]
			id = "tooltip_large"
		[/tooltip]

		[helptip]
			id = "tooltip_large"
		[/helptip]

		[grid]
			[row]
				grow_factor = 0
				[column]
					grow_factor = 1
					border = "all"
					border_size = 5
					horizontal_alignment = "left"
					[label]
						definition = "title"
						label = _ "Editor Settings"
					[/label]
				[/column]
			[/row]
			[row]
				grow_factor = 0
				[column]
					horizontal_alignment = "left"
					[grid]
						[row]
							grow_factor = 0
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								vertical_alignment = "top"
								[label]
									definition = "default"
									label = _ "Time of day lighting preset:"
								[/label]
							[/column]
							[column]
								grow_factor = 1
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[grid]
									[row]
										[column]
											horizontal_alignment = "left"
											[label]
												id = "current_tod"
												definition = "default"
											[/label]
										[/column]
									[/row]
									[row]
										[column]
											border = "top"
											border_size = 5
											horizontal_alignment = "left"
											[button]
												id = "next_tod"
												definition = "default"
												size_text = _ "Next"
												label = _ "Next"
											[/button]
										[/column]
									[/row]
								[/grid]
							[/column]
						[/row]
					[/grid]
				[/column]
			[/row]
			[row]
				grow_factor = 0
				[column]
					horizontal_grow = "true"
					[grid]
						[row]
							grow_factor = 1
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[toggle_button]
									id = "custom_tod_toggle"
									definition = "default"
									label = _ "Custom lighting settings"
								[/toggle_button]
							[/column]
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[toggle_button]
									id = "custom_tod_auto_refresh"
									definition = "default"
									label = _ "Automatically update map view"
								[/toggle_button]
							[/column]
						[/row]
					[/grid]
				[/column]
			[/row]
			[row]
				grow_factor = 0
				[column]
					horizontal_grow = "true"
					[grid]
						[row]
							grow_factor = 0
							[column]
								grow_factor = 0
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[label]
									definition = "default"
									label = _ "Red:"
								[/label]
							[/column]
							[column]
								grow_factor = 1
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[slider]
									id = "custom_tod_red"
									definition = "default"
									best_slider_length = 512
									minimum_value = -255
									maximum_value = 255
									step_size = 1
								[/slider]
							[/column]
						[/row]
						[row]
							[column]
								grow_factor = 0
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[label]
									definition = "default"
									label = _ "Green:"
								[/label]
							[/column]
							[column]
								grow_factor = 1
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[slider]
									id = "custom_tod_green"
									definition = "default"
									best_slider_length = 512
									minimum_value = -255
									maximum_value = 255
									step_size = 1
								[/slider]
							[/column]
						[/row]
						[row]
							[column]
								grow_factor = 0
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[label]
									definition = "default"
									label = _ "Blue:"
								[/label]
							[/column]
							[column]
								grow_factor = 1
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[slider]
									id = "custom_tod_blue"
									definition = "default"
									best_slider_length = 512
									minimum_value = -255
									maximum_value = 255
									step_size = 1
								[/slider]
							[/column]
						[/row]
					[/grid]
				[/column]
			[/row]
			[row]
				grow_factor = 0
				[column]
					[label]
						id = "current_tod_image"
						definition = "default"
					[/label]
				[/column]
			[/row]
			[row]
				grow_factor = 0
				[column]
					horizontal_alignment = "left"
					[grid]
						[row]
							grow_factor = 0
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "left"
								[toggle_button]
									id = "use_mdi"
									definition = "default"
									label = _ "Allow multiple maps to be open simultaneously"
								[/toggle_button]
							[/column]
						[/row]
					[/grid]
				[/column]
			[/row]
			[row]
				grow_factor = 0
				[column]
					horizontal_grow = "true"
					[grid]
						[row]
							grow_factor = 0
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "center"
								[button]
									id = "ok"
									definition = "default"
									label = _ "OK"
								[/button]
							[/column]
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "center"
								[button]
									id = "cancel"
									definition = "default"
									label = _ "Cancel"
								[/button]
							[/column]
							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "center"
								[button]
									id = "apply"
									definition = "default"
									label = _ "Apply"
								[/button]
							[/column]
						[/row]
					[/grid]
				[/column]
			[/row]
		[/grid]
	[/resolution]
[/window]
