<?xml version="1.0"?>
<!--
    This file is part of Arch Linux Updates Indicator

    Arch Linux Updates Indicator is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Arch Linux Updates Indicator is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Arch Linux Updates Indicator.  If not, see <http://www.gnu.org/licenses/>.

    Copyright 2016 Raphaël Rochet
-->
<interface domain="arch-update">

<object class="GtkAdjustment" id="Adjust_1">
	<property name="lower">5</property>
	<property name="upper">5000</property>
	<property name="step_increment">1</property>
</object>
<object class="GtkAdjustment" id="Adjust_2">
	<property name="lower">30</property>
	<property name="upper">2000</property>
	<property name="step_increment">30</property>
</object>
<object class="GtkAdjustment" id="Adjust_3">
	<property name="lower">0</property>
	<property name="upper">99</property>
	<property name="step_increment">1</property>
</object>
<object class="GtkAdjustment" id="Adjust_4">
	<property name="lower">0</property>
	<property name="upper">99</property>
	<property name="step_increment">1</property>
</object>

<object class="GtkNotebook" id="prefs_widget">

	<child>
		<object class="GtkGrid">
			<property name="margin-top">18</property>
			<property name="margin-start">18</property>
			<property name="margin-end">18</property>
			<property name="margin-bottom">18</property>
			<property name="row-spacing">18</property>
			<property name="row-homogeneous">false</property>
			<property name="orientation">vertical</property>

			<child>
				<object class="GtkBox">
				<property name="orientation">vertical</property>
				<property name="spacing">6</property>

					<child>
						<object class="GtkBox">
							<property name="orientation">horizontal</property>
							<property name="spacing">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Checking for updates</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
									<attributes>
										<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
									</attributes>
								</object>
							</child>
							<child>
								<object class="GtkLabel" id="version_info">
									<property name="label">Version info placeholder</property>
									<property name="hexpand">false</property>
									<property name="halign">1</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="margin-start">12</property>
							<property name="spacing">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Time to wait before first check (seconds)</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSpinButton" id="field_wait">
									<property name="adjustment">Adjust_1</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="margin-start">12</property>
							<property name="spacing">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Interval between updates check (minutes)</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSpinButton" id="field_interval">
									<property name="adjustment">Adjust_2</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="margin-start">12</property>
							<property name="spacing">12</property>
							<child>
								<object class="GtkLabel">
									<property translatable="yes" name="label">Strip out versions numbers</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSwitch" id="field_stripversions">
									<property name="active">true</property>
								</object>
							</child>
						</object>
					</child>

				</object>
			</child>

			<child>
				<object class="GtkBox">
				<property name="orientation">vertical</property>
				<property name="spacing">6</property>

					<child>
						<object class="GtkLabel">
							<property name="label" translatable="yes">Indicator</property>
							<property name="hexpand">true</property>
							<property name="halign">1</property>
							<attributes>
								<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
							</attributes>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Always visible</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSwitch" id="field_visible">
									<property name="active">true</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Use built-in icons</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSwitch" id="field_buildinicons">
									<property name="active">true</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Show updates count on indicator</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSwitch" id="field_count">
									<property name="active">true</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<property name="hexpand">true</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Auto-expand updates list if updates count is less than this number (0 to disable)</property>
									<property name="hexpand">true</property>
									<property name="xalign">0</property>
									<property name="wrap">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSpinButton" id="field_autoexpandlist">
									<property name="adjustment">Adjust_3</property>
								</object>
							</child>
						</object>
					</child>
					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<property name="hexpand">true</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Position in Panel</property>
									<property name="hexpand">true</property>
									<property name="xalign">0</property>
									<property name="wrap">1</property>
								</object>
							</child>
							<child>
								<object class="GtkBox">
									<property name="spacing">12</property>
									<property name="margin-start">12</property>
									<property name="hexpand">false</property>
									<child>
										<object class="GtkComboBoxText" id="field_position">
											<items>
												<item translatable="yes" id="0">Left</item>
												<item translatable="yes" id="1">Center</item>
												<item translatable="yes" id="2">Right</item>
											</items>
										</object>
									</child>
									<child>
										<object class="GtkSpinButton" id="field_positionnumber">
											<property name="adjustment">Adjust_4</property>
										</object>
									</child>
								</object>
							</child>
						</object>
					</child>

				</object>
			</child>

			<child>
				<object class="GtkBox">
					<property name="orientation">vertical</property>
					<property name="spacing">6</property>

					<child>
						<object class="GtkLabel">
							<property name="label" translatable="yes">Notification</property>
							<property name="hexpand">true</property>
							<property name="halign">1</property>
							<attributes>
								<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
							</attributes>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<child>
								<object class="GtkLabel">
									<property name="label" translatable="yes">Send a notification when new updates are available</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSwitch" id="field_notify">
									<property name="active">true</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<child>
								<object class="GtkLabel">
									<property translatable="yes" name="label">Use transient notifications (auto dismiss)</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkSwitch" id="field_transient">
									<property name="active">true</property>
								</object>
							</child>
						</object>
					</child>

					<child>
						<object class="GtkBox">
							<property name="spacing">12</property>
							<property name="margin-start">12</property>
							<child>
								<object class="GtkLabel">
									<property translatable="yes" name="label">How much information to show on notifications</property>
									<property name="hexpand">true</property>
									<property name="halign">1</property>
								</object>
							</child>
							<child>
								<object class="GtkComboBoxText" id="field_howmuch">
									<items>
										<item translatable="yes" id="0">Count only</item>
										<item translatable="yes" id="1">New updates names</item>
										<item translatable="yes" id="2">All updates names</item>
									</items>
								</object>
							</child>
						</object>
					</child>

				</object>
			</child>

		</object>
	</child>

	<child type="tab">
		<object class="GtkLabel">
			<property name="label" translatable="yes">Basic settings</property>
		</object>
	</child>

	<child>
		<object class="GtkGrid">
			<property name="margin-top">18</property>
			<property name="margin-start">18</property>
			<property name="margin-end">18</property>
			<property name="margin-bottom">18</property>
			<property name="row-spacing">18</property>
			<property name="row-homogeneous">false</property>
			<property name="orientation">vertical</property>

			<child>
				<object class="GtkBox">
					<property name="orientation">vertical</property>
					<property name="spacing">6</property>
					<child>
						<object class="GtkLabel">
							<property name="label" translatable="yes">Command to check for package updates</property>
							<property name="hexpand">true</property>
							<property name="halign">1</property>
						</object>
					</child>
					<child>
						<object class="GtkEntry" id="field_checkcmd">
						</object>
					</child>
				</object>
			</child>

			<child>
				<object class="GtkBox">
					<property name="orientation">vertical</property>
					<property name="spacing">6</property>
					<child>
						<object class="GtkLabel">
							<property name="label" translatable="yes">Command to update packages</property>
							<property name="hexpand">true</property>
							<property name="halign">1</property>
						</object>
					</child>
					<child>
						<object class="GtkEntry" id="field_updatecmd">
						</object>
					</child>
				</object>
			</child>

			<child>
				<object class="GtkBox">
					<property name="orientation">vertical</property>
					<property name="spacing">6</property>
					<child>
						<object class="GtkLabel">
							<property name="label" translatable="yes">Pacman local directory path - To detect when new packages are installed</property>
							<property name="hexpand">true</property>
							<property name="halign">1</property>
						</object>
					</child>
					<child>
						<object class="GtkEntry" id="field_pacmandir">
						</object>
					</child>
				</object>
			</child>

			<child>
				<object class="GtkBox">
					<property name="orientation">vertical</property>
					<property name="spacing">6</property>
					<child>
						<object class="GtkLabel">
							<property name="label" translatable="yes">Command to open package manager (optional)</property>
							<property name="hexpand">true</property>
							<property name="halign">1</property>
						</object>
					</child>
					<child>
						<object class="GtkEntry" id="field_packagemanager">
						</object>
					</child>
				</object>
			</child>

		</object>
	</child>

	<child type="tab">
		<object class="GtkLabel">
			<property name="label" translatable="yes">Advanced settings</property>
		</object>
	</child>

</object>

</interface>
