diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:45:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:45:20 +0000 |
commit | ae1c76ff830d146d41e88d6fba724c0a54bce868 (patch) | |
tree | 3c354bec95af07be35fc71a4b738268496f1a1c4 /panels/user-accounts/cc-add-user-dialog.ui | |
parent | Initial commit. (diff) | |
download | gnome-control-center-ae1c76ff830d146d41e88d6fba724c0a54bce868.tar.xz gnome-control-center-ae1c76ff830d146d41e88d6fba724c0a54bce868.zip |
Adding upstream version 1:43.6.upstream/1%43.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | panels/user-accounts/cc-add-user-dialog.ui | 411 |
1 files changed, 411 insertions, 0 deletions
diff --git a/panels/user-accounts/cc-add-user-dialog.ui b/panels/user-accounts/cc-add-user-dialog.ui new file mode 100644 index 0000000..afdc65f --- /dev/null +++ b/panels/user-accounts/cc-add-user-dialog.ui @@ -0,0 +1,411 @@ +<?xml version="1.0"?> +<interface> + <!-- interface-requires gtk+ 3.8 --> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkListStore" id="local_username_model"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + </object> + <template class="CcAddUserDialog" parent="GtkDialog"> + <property name="resizable">False</property> + <property name="modal">True</property> + <property name="hide-on-close">True</property> + <property name="title" translatable="yes">Add User</property> + <property name="icon_name">system-users</property> + <property name="default-width">500</property> + <property name="use_header_bar">1</property> + <child type="titlebar"> + <object class="AdwHeaderBar"> + <property name="show-end-title-buttons">False</property> + <property name="show-start-title-buttons">False</property> + <child type="start"> + <object class="GtkButton" id="cancel_button"> + <property name="label" translatable="yes">_Cancel</property> + <property name="visible">True</property> + <property name="visible">True</property> + <property name="receives_default">True</property> + <property name="use_underline">True</property> + <property name="valign">center</property> + <signal name="clicked" handler="gtk_window_destroy" object="CcAddUserDialog"/> + <style> + <class name="text-button"/> + </style> + </object> + </child> + <child type="end"> + <object class="GtkButton" id="add_button"> + <property name="label" translatable="yes">_Add</property> + <property name="receives_default">True</property> + <property name="use_underline">True</property> + <property name="valign">center</property> + <signal name="clicked" handler="add_button_clicked_cb" object="CcAddUserDialog" swapped="yes"/> + <style> + <class name="text-button"/> + <class name="suggested-action"/> + </style> + </object> + </child> + <child type="end"> + <object class="GtkSpinner" id="spinner"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">center</property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkStack" id="stack"> + <child> + <object class="AdwPreferencesPage" id="local_page"> + <child> + <object class="AdwPreferencesGroup"> + <child> + <object class="AdwActionRow" id="local_name_row"> + <property name="activatable-widget">local_name_entry</property> + <property name="title" translatable="yes">Name</property> + <child> + <object class="GtkEntry" id="local_name_entry"> + <property name="valign">center</property> + <property name="max-length">255</property> + <property name="activates_default">True</property> + <property name="hexpand">True</property> + <signal name="changed" handler="local_name_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/> + <signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/> + <child> + <object class="GtkEventControllerFocus"> + <signal name="leave" handler="local_name_entry_focus_out_event_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="local_name_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + <child> + <object class="AdwActionRow" id="local_username_row"> + <property name="activatable-widget">local_username_combo</property> + <property name="title" translatable="yes">Username</property> + <property name="subtitle-lines">2</property> + <child> + <object class="GtkComboBoxText" id="local_username_combo"> + <property name="valign">center</property> + <property name="has_entry">True</property> + <property name="entry_text_column">0</property> + <property name="model">local_username_model</property> + <signal name="changed" handler="local_username_combo_changed_cb" object="CcAddUserDialog" swapped="yes"/> + <child> + <object class="GtkEventControllerFocus"> + <signal name="leave" handler="local_username_combo_focus_out_event_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + <child internal-child="entry"> + <object class="GtkEntry" id="local_username_entry"> + <property name="activates_default">True</property> + <property name="hexpand">True</property> + <signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="local_username_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup"> + <child> + <object class="AdwActionRow"> + <property name="activatable-widget">local_account_type_switch</property> + <property name="title" translatable="yes">Administrator</property> + <property name="subtitle" translatable="yes">Administrators can add and remove other users, and can change settings for all users. Parental controls cannot be applied to administrators.</property> + <property name="subtitle-lines">3</property> + <child type="suffix"> + <object class="GtkSwitch" id="local_account_type_switch"> + <property name="valign">center</property> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup"> + <property name="title" translatable="yes">Password</property> + <child> + <object class="AdwActionRow"> + <property name="activatable-widget">local_password_login_radio</property> + <property name="title" translatable="yes">User sets password on first login</property> + <child type="prefix"> + <object class="GtkCheckButton" id="local_password_login_radio"> + <property name="valign">center</property> + <property name="active">True</property> + </object> + </child> + </object> + </child> + <child> + <object class="AdwActionRow"> + <property name="activatable-widget">local_password_radio</property> + <property name="title" translatable="yes">Set password now</property> + <child type="prefix"> + <object class="GtkCheckButton" id="local_password_radio"> + <property name="valign">center</property> + <property name="use_underline">True</property> + <property name="group">local_password_login_radio</property> + <signal name="toggled" handler="local_password_radio_changed_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup" id="password_group"> + <property name="sensitive">False</property> + <child> + <object class="AdwActionRow" id="local_password_row"> + <property name="activatable-widget">local_password_entry</property> + <property name="title" translatable="yes">Password</property> + <property name="subtitle-lines">2</property> + <child> + <object class="GtkPasswordEntry" id="local_password_entry"> + <property name="hexpand">True</property> + <property name="has_tooltip">True</property> + <property name="valign">center</property> + <property name="show-peek-icon">True</property> + <signal name="notify::text" handler="local_password_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/> + <signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/> + <child> + <object class="GtkEventControllerKey"> + <signal name="key-pressed" handler="local_password_entry_key_press_event_cb" object="CcAddUserDialog" swapped="no"/> + </object> + </child> + <child> + <object class="GtkEventControllerFocus"> + <signal name="leave" handler="password_focus_out_event_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + </object> + </child> + <child type="suffix"> + <object class="GtkButton"> + <property name="visible">False</property> + <property name="icon-name">system-run-symbolic</property> + <property name="valign">center</property> + <signal name="clicked" handler="generate_password" object="CcAddUserDialog" swapped="yes"/> + <style> + <class name="flat"/> + </style> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="local_password_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + <child> + <object class="AdwActionRow" id="local_verify_password_row"> + <property name="activatable-widget">local_verify_entry</property> + <property name="title" translatable="yes">Confirm</property> + <child> + <object class="GtkPasswordEntry" id="local_verify_entry"> + <property name="hexpand">True</property> + <property name="valign">center</property> + <property name="sensitive">False</property> + <property name="show-peek-icon">True</property> + <signal name="notify::text" handler="local_verify_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/> + <signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/> + <child> + <object class="GtkEventControllerFocus"> + <signal name="leave" handler="password_focus_out_event_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="local_verify_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkLevelBar" id="local_strength_indicator"> + <property name="mode">continuous</property> + <property name="max-value">5</property> + <property name="margin-top">12</property> + <offsets> + <offset name="strength-weak" value="1"/> + <offset name="strength-low" value="2"/> + <offset name="strength-medium" value="3"/> + <offset name="strength-good" value="4"/> + <offset name="strength-high" value="5"/> + </offsets> + </object> + </child> + <child> + <object class="GtkLabel" id="local_password_hint"> + <property name="halign">start</property> + <property name="wrap">True</property> + <property name="margin-top">12</property> + <style> + <class name="dim-label"/> + </style> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup" id="enterprise_group"> + <property name="visible">False</property> + <child> + <object class="AdwActionRow" id="enterprise_button"> + <property name="title" translatable="yes">Enterprise Login</property> + <property name="subtitle" translatable="yes">User accounts which are managed by a company or organization.</property> + <property name="activatable">True</property> + <signal name="activated" handler="enterprise_button_toggled_cb" object="CcAddUserDialog" swapped="yes"/> + <child> + <object class="GtkImage"> + <property name="icon-name">go-next-symbolic</property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesPage" id="enterprise_page"> + <property name="visible">True</property> + <child> + <object class="AdwPreferencesGroup"> + <child> + <object class="AdwActionRow" id="enterprise_domain_row"> + <property name="title" translatable="yes">Domain</property> + <property name="activatable_widget">enterprise_domain_combo</property> + <child> + <object class="GtkComboBox" id="enterprise_domain_combo"> + <property name="valign">center</property> + <property name="has_entry">True</property> + <property name="entry_text_column">0</property> + <property name="model">enterprise_realm_model</property> + <signal name="changed" handler="enterprise_domain_combo_changed_cb" object="CcAddUserDialog" swapped="yes"/> + <child internal-child="entry"> + <object class="GtkEntry" id="enterprise_domain_entry"> + </object> + </child> + <child> + <object class="GtkEventControllerFocus"> + <signal name="leave" handler="enterprise_domain_combo_focus_out_event_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="enterprise_domain_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkLabel" id="enterprise_domain_hint"> + <property name="halign">start</property> + <property name="margin-top">12</property> + <property name="wrap">True</property> + <style> + <class name="dim-label"/> + </style> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup" id="enterprise_login_group"> + <child> + <object class="AdwActionRow"> + <property name="title" translatable="yes">Username</property> + <property name="activatable_widget">enterprise_login_entry</property> + <child> + <object class="GtkEntry" id="enterprise_login_entry"> + <property name="valign">center</property> + <property name="invisible_char">●</property> + <property name="activates_default">True</property> + <property name="invisible_char_set">True</property> + <property name="input_purpose">password</property> + <signal name="changed" handler="enterprise_login_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="enterprise_login_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + <child> + <object class="AdwActionRow"> + <property name="title" translatable="yes">Password</property> + <property name="activatable_widget">enterprise_password_entry</property> + <child> + <object class="GtkPasswordEntry" id="enterprise_password_entry"> + <property name="valign">center</property> + <property name="activates_default">True</property> + <signal name="changed" handler="enterprise_password_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/> + </object> + </child> + <child type="suffix"> + <object class="GtkImage" id="enterprise_password_status_icon"> + <property name="icon-name">dialog-warning-symbolic</property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesPage" id="offline_page"> + <child> + <object class="AdwStatusPage"> + <property name="title" translatable="yes">You are Offline</property> + <property name="description" translatable="yes">Enterprise login allows an existing centrally managed user account to be used on this device. You can also use this account to access company resources on the internet.</property> + <property name="icon-name">network-offline-symbolic</property> + </object> + </child> + </object> + </child> + </object> + </child> + </template> + <object class="GtkSizeGroup"> + <widgets> + <widget name="cancel_button"/> + <widget name="add_button"/> + </widgets> + </object> + <object class="GtkListStore" id="enterprise_realm_model"> + <columns> + <!-- column-name title --> + <column type="gchararray"/> + <!-- column-name realm --> + <column type="GObject"/> + </columns> + </object> +</interface> |