#textdomain wesnoth
# FIXME should be in wesnoth-lib, but don't want to break the stringfreeze.
###
### Definition of the window select the campaign to play
###

[window]
	id = "campaign_selection"
	description = "Campaign selection dialog."

	[resolution]
		definition = "default"

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

		[grid]
			
			[row]
				grow_factor = 0

				[column]
					grow_factor = 1

					border = "all"
					border_size = 5
					horizontal_alignment = "left"
					[label]
						definition = "title"

						label = _ "Play a campaign"
					[/label]

				[/column]

			[/row]

			[row]
				grow_factor = 1

				[column]
					grow_factor = 1

					horizontal_grow = "true"

					[grid]

						[row]
							grow_factor = 1
							vertical_grow = "true" 

							[column]
								grow_factor = 0

								border = "all"
								border_size = 5
								horizontal_alignment = "left"

								[listbox]
									id = "campaign_list"
									definition = "default"

									vertical_scrollbar_mode = "auto"
									horizontal_scrollbar_mode = "never"

									[list_definition]

										[row]

											 [column]
												grow_factor = 1
												horizontal_grow = "true"

												[toggle_button]
													definition = "listbox_text_with_icon"

													return_value_id = "ok"
												[/toggle_button]

											[/column]


										[/row]

									[/list_definition]

								[/listbox]

							[/column]

							[column]
								grow_factor = 1
								horizontal_grow = "true" 

								border = "all"
								border_size = 5
								vertical_alignment = "top"

								# FIXME show the addon pane.
								[panel]
									definition = "default"
									[grid]

										[row]
											grow_factor = 0

											[column]

												[scroll_label]
													id = "description"
													definition = "default"
												[/scroll_label]

											[/column]

										[/row]

										[row]
											grow_factor = 1

											[column]
												horizontal_alignment = "center"
												vertical_alignment = "top"

												[image]
													id = "image"
													definition = "default"
												[/image]

											[/column]

										[/row]

									[/grid]

								[/panel]

							[/column]

						[/row]

					[/grid]

				[/column]

			[/row]

			[row]
				grow_factor = 0

				[column]
					grow_factor = 1
					horizontal_grow = "true" 

					[grid]

						[row]
							grow_factor = 0

							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "right"

								[button]
									id = "ok"
									definition = "default"

									label = _ "OK"
								[/button]

							[/column]

							[column]
								border = "all"
								border_size = 5
								horizontal_alignment = "right"

								[button]
									id = "cancel"
									definition = "default"

									label = _ "Cancel"
								[/button]

							[/column]

						[/row]

					[/grid]

				[/column]

			[/row]

		[/grid]

	[/resolution]

[/window]
