malcontent/malcontent-control/user-controls.ui

297 lines
10 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcAppPermissions" parent="GtkGrid">
<property name="visible">True</property>
<property name="margin-top">18</property>
<property name="row-spacing">6</property>
<property name="column-spacing">12</property>
<property name="valign">start</property>
<!-- Restricted Apps -->
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Restrict Apps</property>
<attributes>
<attribute name="weight" value="bold" />
</attributes>
</object>
<packing>
<property name="top-attach">0</property>
<property name="left-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Prevent this user from opening some apps by turning them off below.</property>
<property name="wrap">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">listbox</property>
<attributes>
<attribute name="scale" value="0.83333" />
</attributes>
<style>
<class name="dim-label" />
</style>
</object>
<packing>
<property name="top-attach">1</property>
<property name="left-attach">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="hscrollbar-policy">never</property>
<property name="min-content-height">100</property>
<property name="max-content-height">400</property>
<property name="propagate-natural-height">True</property>
<property name="shadow-type">etched-in</property>
<!-- Restricted Apps Listbox -->
<child>
<object class="GtkListBox" id="listbox">
<property name="visible">True</property>
<property name="selection-mode">none</property>
</object>
</child>
</object>
<packing>
<property name="top-attach">2</property>
<property name="left-attach">0</property>
<property name="width">2</property>
</packing>
</child>
<!-- Restricted Web Browsers -->
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Restrict Web Browsers</property>
<attributes>
<attribute name="weight" value="bold" />
</attributes>
</object>
<packing>
<property name="top-attach">3</property>
<property name="left-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Prevent this user from running web browsers by turning them off below. Note that if the computer is connected to the internet, limited web content may still be available in other applications.</property>
<property name="wrap">True</property>
<property name="max-width-chars">55</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">allow_web_browsers_switch</property>
<attributes>
<attribute name="scale" value="0.83333" />
</attributes>
<style>
<class name="dim-label" />
</style>
</object>
<packing>
<property name="top-attach">4</property>
<property name="left-attach">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="browsers_label">
<property name="visible">True</property>
<property name="xalign">1.0</property>
<property name="label" translatable="yes">Web _Browsers</property>
<property name="wrap">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">allow_web_browsers_switch</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkSwitch" id="allow_web_browsers_switch">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="halign">start</property>
<signal name="notify::active" handler="on_allow_web_browsers_switch_active_changed_cb" object="CcAppPermissions" swapped="no" />
</object>
</child>
</object>
<packing>
<property name="top-attach">5</property>
<property name="left-attach">0</property>
<property name="width">2</property>
</packing>
</child>
<!-- App Center Restrictions -->
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="margin-top">12</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">App Center Restrictions</property>
<attributes>
<attribute name="weight" value="bold" />
</attributes>
</object>
<packing>
<property name="top-attach">6</property>
<property name="left-attach">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="user_installation_label">
<property name="visible" bind-source="allow_user_installation_switch" bind-property="visible" bind-flags="default|sync-create" />
<property name="xalign">1.0</property>
<property name="label" translatable="yes">App _Installation</property>
<property name="wrap">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">allow_user_installation_switch</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkSwitch" id="allow_user_installation_switch">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="halign">start</property>
<signal name="notify::active" handler="on_allow_installation_switch_active_changed_cb" object="CcAppPermissions" swapped="no" />
</object>
</child>
</object>
<packing>
<property name="top-attach">7</property>
<property name="left-attach">0</property>
<property name="width">2</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="system_installation_label">
<property name="visible" bind-source="allow_system_installation_switch" bind-property="visible" bind-flags="default|sync-create" />
<property name="xalign">1.0</property>
<property name="label" translatable="yes">Install Apps for All _Users</property>
<property name="wrap">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">allow_system_installation_switch</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkSwitch" id="allow_system_installation_switch">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="halign">start</property>
<signal name="notify::active" handler="on_allow_installation_switch_active_changed_cb" object="CcAppPermissions" swapped="no" />
</object>
</child>
</object>
<packing>
<property name="top-attach">8</property>
<property name="left-attach">0</property>
<property name="width">2</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="app_restriction_label">
<property name="visible">True</property>
<property name="xalign">1.0</property>
<property name="label" translatable="yes">Show Apps _Suitable For</property>
<property name="wrap">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">restriction_button</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkMenuButton" id="restriction_button">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="halign">start</property>
<property name="popover">restriction_popover</property>
<property name="width-request">200</property>
</object>
</child>
</object>
<packing>
<property name="top-attach">9</property>
<property name="left-attach">0</property>
<property name="width">2</property>
</packing>
</child>
</template>
<object class="GtkPopoverMenu" id="restriction_popover" />
<menu id="age_menu" />
<object class="GtkSizeGroup">
<property name="mode">horizontal</property>
<widgets>
<widget name="restriction_button" />
<widget name="restriction_popover" />
</widgets>
</object>
<object class="GtkSizeGroup">
<property name="mode">horizontal</property>
<widgets>
<widget name="browsers_label" />
<widget name="app_restriction_label" />
<widget name="user_installation_label" />
<widget name="system_installation_label" />
</widgets>
</object>
</interface>