diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Makefile.am | 5 | ||||
-rw-r--r-- | contrib/anastasis_gtk_challenge_template.glade | 133 | ||||
-rw-r--r-- | contrib/anastasis_gtk_main_window.glade | 317 | ||||
-rw-r--r-- | contrib/anastasis_gtk_policy_template.glade | 41 | ||||
-rw-r--r-- | contrib/checkmark.svgz | bin | 0 -> 938 bytes |
5 files changed, 200 insertions, 296 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am index d2a2cdb..22f0e14 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -16,6 +16,7 @@ IMAGES = \ outline_home_work_black_24dp.png \ ngi_ledger.png \ freeotp.png \ + checkmark.svgz \ bandiera_stelle.png EXTRA_DIST = \ @@ -36,13 +37,15 @@ pkgdata_DATA = \ anastasis_gtk_challenge_code.glade \ anastasis_gtk_challenge_iban.glade \ anastasis_gtk_challenge_question.glade \ + anastasis_gtk_challenge_template.glade \ anastasis_gtk_challenge_totp.glade \ anastasis_gtk_deny_singlefactor.glade \ anastasis_gtk_edit_providers.glade \ anastasis_gtk_edit_policy.glade \ + anastasis_gtk_main_window.glade \ anastasis_gtk_open_file_dialog.glade \ anastasis_gtk_open_secret_dialog.glade \ - anastasis_gtk_main_window.glade \ + anastasis_gtk_policy_template.glade \ anastasis_gtk_save_file_dialog.glade \ anastasis_gtk_save_secret_dialog.glade \ anastasis_gtk_warn_multifactor.glade diff --git a/contrib/anastasis_gtk_challenge_template.glade b/contrib/anastasis_gtk_challenge_template.glade new file mode 100644 index 0000000..45aab11 --- /dev/null +++ b/contrib/anastasis_gtk_challenge_template.glade @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 --> +<interface> + <requires lib="gtk+" version="3.24"/> + <object class="GtkWindow" id="challenge_template_window"> + <property name="can-focus">False</property> + <child> + <object class="GtkBox" id="challenge_hbox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="margin-top">5</property> + <property name="margin-bottom">5</property> + <property name="spacing">15</property> + <child> + <object class="GtkImage" id="challenge_category_otp_image"> + <property name="can-focus">False</property> + <property name="pixbuf">freeotp.png</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkImage" id="challenge_category_email_image"> + <property name="can-focus">False</property> + <property name="pixbuf">outline_email_black_24dp.png</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkImage" id="challenge_category_post_image"> + <property name="can-focus">False</property> + <property name="pixbuf">home_work_black_24dp.svg</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkImage" id="challenge_category_sms_image"> + <property name="can-focus">False</property> + <property name="pixbuf">outline_stay_current_portrait_black_24dp.png</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">3</property> + </packing> + </child> + <child> + <object class="GtkImage" id="challenge_category_bank_image"> + <property name="can-focus">False</property> + <property name="pixbuf">video_camera_front_black_24dp.svg</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">4</property> + </packing> + </child> + <child> + <object class="GtkImage" id="challenge_category_question_image"> + <property name="can-focus">False</property> + <property name="pixbuf">outline_contact_support_black_24dp.png</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">5</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="challenge_label"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label">DYNAMICALLY GENERATED</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="padding">15</property> + <property name="position">6</property> + </packing> + </child> + <child> + <object class="GtkButton" id="solve_challenge_button"> + <property name="label">gtk-execute</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">True</property> + <property name="tooltip-text" translatable="yes">Try to solve this challenge.</property> + <property name="use-stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">7</property> + </packing> + </child> + <child> + <object class="GtkImage" id="challenge_solved_image"> + <property name="name">challenge_solved_image</property> + <property name="can-focus">False</property> + <property name="tooltip-text" translatable="yes">This challenge was solved.</property> + <property name="pixbuf">checkmark.svgz</property> + <property name="icon_size">1</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">15</property> + <property name="position">8</property> + </packing> + </child> + </object> + </child> + </object> +</interface> diff --git a/contrib/anastasis_gtk_main_window.glade b/contrib/anastasis_gtk_main_window.glade index 66eca6a..43f5237 100644 --- a/contrib/anastasis_gtk_main_window.glade +++ b/contrib/anastasis_gtk_main_window.glade @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.38.2 +<!-- Generated with glade 3.38.2 Copyright (C) 2019-2021 Anastasis SARL @@ -88,6 +88,16 @@ Author: Christian Grothoff, Dennis Neufeld <property name="step-increment">1</property> <property name="page-increment">10</property> </object> + <object class="GtkAdjustment" id="anastasis_gtk_policy_box_adjustment_h"> + <property name="upper">100</property> + <property name="step-increment">1</property> + <property name="page-increment">10</property> + </object> + <object class="GtkAdjustment" id="anastasis_gtk_policy_box_adjustment_v"> + <property name="upper">100</property> + <property name="step-increment">1</property> + <property name="page-increment">10</property> + </object> <object class="GtkListStore" id="anastasis_gtk_recovery_progress_liststore"> <columns> <!-- column-name description --> @@ -378,13 +388,6 @@ Author: Christian Grothoff, Dennis Neufeld <column type="gchararray"/> </columns> </object> - <object class="GtkImage" id="video_image"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="margin-right">5</property> - <property name="margin-end">5</property> - <property name="pixbuf">outline_video_camera_front_black_24dp.png</property> - </object> <object class="GtkWindow" id="anastasis_gtk_main_window"> <property name="can-focus">False</property> <property name="events">GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK</property> @@ -1879,20 +1882,6 @@ with <a href="https://www.ngi.eu/ngi-projects/ledger/">funding</a> f </packing> </child> <child> - <object class="GtkButton" id="anastasis_gtk_btn_add_auth_video"> - <property name="label" translatable="yes">_Video</property> - <property name="can-focus">True</property> - <property name="receives-default">True</property> - <property name="image">video_image</property> - <property name="use-underline">True</property> - <signal name="clicked" handler="anastasis_gtk_btn_add_auth_video_clicked_cb" swapped="no"/> - </object> - <packing> - <property name="left-attach">3</property> - <property name="top-attach">0</property> - </packing> - </child> - <child> <object class="GtkButton" id="anastasis_gtk_btn_add_auth_post"> <property name="label" translatable="yes">Post</property> <property name="visible">True</property> @@ -2305,291 +2294,29 @@ You can also use "back" to add additional authentication methods.</property> <property name="can-focus">False</property> <property name="left-padding">12</property> <child> - <object class="GtkBox"> + <object class="GtkScrolledWindow"> <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="orientation">vertical</property> - <child> - <object class="GtkFrame"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="label-xalign">0</property> - <property name="shadow-type">none</property> - <child> - <object class="GtkAlignment"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="left-padding">12</property> - <child> - <object class="GtkScrolledWindow"> - <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="shadow-type">in</property> - <child> - <object class="GtkTreeView" id="anastasis_gtk_challenge_status_treeview"> - <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="tooltip-text" translatable="yes">Here you can see your progress in satisfying authorization challenges and can select the next challenge to solve.</property> - <property name="model">challenge_status_liststore</property> - <signal name="row-activated" handler="anastasis_gtk_challenge_status_treeview_row_activated_cb" swapped="no"/> - <child internal-child="selection"> - <object class="GtkTreeSelection" id="anastasis_gtk_challenge_status_treeselection"> - <signal name="changed" handler="anastasis_gtk_challenge_status_treeselection_changed_cb" swapped="no"/> - </object> - </child> - <child> - <object class="GtkTreeViewColumn"> - <property name="title" translatable="yes">#</property> - <property name="sort-column-id">0</property> - <child> - <object class="GtkCellRendererToggle" id="solved"> - <signal name="toggled" handler="anastasis_gtk_challenge_status_solved_toggled_cb" swapped="no"/> - </object> - <attributes> - <attribute name="sensitive">12</attribute> - <attribute name="activatable">12</attribute> - <attribute name="active">2</attribute> - </attributes> - </child> - <child> - <object class="GtkCellRendererText" id="challenge_number"/> - <attributes> - <attribute name="text">0</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn"> - <property name="title" translatable="yes">Status</property> - <child> - <object class="GtkCellRendererText" id="status_text"/> - <attributes> - <attribute name="text">3</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="type1"> - <property name="title" translatable="yes">Type</property> - <child> - <object class="GtkCellRendererText" id="type_column"/> - <attributes> - <attribute name="text">13</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn"> - <property name="title" translatable="yes">Cost</property> - <child> - <object class="GtkCellRendererText" id="cost"/> - <attributes> - <attribute name="text">9</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="hint"> - <property name="title" translatable="yes">Instructions</property> - <child> - <object class="GtkCellRendererText" id="instructions_text"> - <property name="ellipsize">end</property> - <property name="max-width-chars">20</property> - </object> - <attributes> - <attribute name="text">14</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn"> - <property name="sizing">autosize</property> - <property name="title" translatable="yes">Provider</property> - <child> - <object class="GtkCellRendererText" id="provider_url_text_column"/> - <attributes> - <attribute name="text">15</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn"> - <property name="title" translatable="yes">Details</property> - <child> - <object class="GtkCellRendererText" id="emsg"> - <property name="foreground">red</property> - </object> - <attributes> - <attribute name="visible">8</attribute> - <attribute name="text">5</attribute> - </attributes> - </child> - <child> - <object class="GtkCellRendererPixbuf" id="qrcode"/> - <attributes> - <attribute name="visible">7</attribute> - <attribute name="pixbuf">4</attribute> - </attributes> - </child> - <child> - <object class="GtkCellRendererText" id="redirect_url"/> - <attributes> - <attribute name="visible">11</attribute> - <attribute name="text">10</attribute> - </attributes> - </child> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - </child> - <child type="label"> - <object class="GtkLabel"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="tooltip-text" translatable="yes">Here you can see your progress in satisfying authorization challenges and possible next steps.</property> - <property name="margin-start">5</property> - <property name="margin-end">5</property> - <property name="margin-top">5</property> - <property name="margin-bottom">5</property> - <property name="label" translatable="yes">Select open challenge to solve:</property> - </object> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> + <property name="can-focus">True</property> + <property name="hadjustment">anastasis_gtk_policy_box_adjustment_h</property> + <property name="vadjustment">anastasis_gtk_policy_box_adjustment_v</property> + <property name="shadow-type">in</property> <child> - <object class="GtkFrame"> + <object class="GtkViewport"> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="label-xalign">0</property> - <property name="shadow-type">none</property> + <property name="hadjustment">anastasis_gtk_policy_box_adjustment_h</property> + <property name="vadjustment">anastasis_gtk_policy_box_adjustment_v</property> <child> - <object class="GtkAlignment"> + <object class="GtkBox" id="anastasis_gtk_policy_vbox"> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="left-padding">12</property> + <property name="orientation">vertical</property> <child> - <object class="GtkScrolledWindow"> - <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="shadow-type">in</property> - <child> - <object class="GtkTreeView" id="anastasis_gtk_choose_policy_treeview"> - <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="tooltip-text" translatable="yes">This table shows possible ways to recover the secret. For each policy, the challenges that must still be satisfied are listed.</property> - <property name="model">policy_review_treestore</property> - <property name="enable-search">False</property> - <property name="search-column">0</property> - <child internal-child="selection"> - <object class="GtkTreeSelection"/> - </child> - <child> - <object class="GtkTreeViewColumn" id="solved_column"> - <property name="sizing">autosize</property> - <property name="title" translatable="yes">Solved</property> - <child> - <object class="GtkCellRendererToggle" id="solved_column2"> - <property name="activatable">False</property> - </object> - <attributes> - <attribute name="active">8</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="policy_name_column1"> - <property name="resizable">True</property> - <property name="spacing">5</property> - <property name="sizing">autosize</property> - <property name="title" translatable="yes">Policy</property> - <child> - <object class="GtkCellRendererText" id="policy_name_column2"/> - <attributes> - <attribute name="text">0</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="challenge_type_column2"> - <property name="spacing">5</property> - <property name="sizing">autosize</property> - <property name="title" translatable="yes">Type</property> - <child> - <object class="GtkCellRendererText" id="challenge_type_column3"/> - <attributes> - <attribute name="text">1</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="policy_cost1"> - <property name="spacing">5</property> - <property name="sizing">autosize</property> - <property name="title" translatable="yes">Cost</property> - <child> - <object class="GtkCellRendererText" id="cost_column1"/> - <attributes> - <attribute name="text">2</attribute> - </attributes> - </child> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="provider_column1"> - <property name="resizable">True</property> - <property name="spacing">5</property> - <property name="sizing">autosize</property> - <property name="title" translatable="yes">Provider</property> - <child> - <object class="GtkCellRendererText" id="provider_url_column1"/> - <attributes> - <attribute name="text">3</attribute> - </attributes> - </child> - </object> - </child> - </object> - </child> - </object> + <placeholder/> </child> </object> </child> - <child type="label"> - <object class="GtkLabel"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="tooltip-text" translatable="yes">This table shows possible ways to recover the secret. For each policy, the challenges that must still be satisfied are listed.</property> - <property name="margin-start">5</property> - <property name="margin-end">5</property> - <property name="margin-top">5</property> - <property name="margin-bottom">5</property> - <property name="label" translatable="yes">Recovery policies:</property> - </object> - </child> </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">2</property> - </packing> </child> </object> </child> diff --git a/contrib/anastasis_gtk_policy_template.glade b/contrib/anastasis_gtk_policy_template.glade new file mode 100644 index 0000000..33e22ea --- /dev/null +++ b/contrib/anastasis_gtk_policy_template.glade @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 --> +<interface> + <requires lib="gtk+" version="3.24"/> + <object class="GtkWindow" id="policy_template_window"> + <property name="can-focus">False</property> + <child> + <object class="GtkFrame" id="policy_frame"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label-xalign">0</property> + <property name="shadow-type">none</property> + <child> + <object class="GtkAlignment"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="left-padding">12</property> + <child> + <object class="GtkBox" id="policy_vbox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <property name="homogeneous">True</property> + <child> + <placeholder/> + </child> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="policy_label"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label">DYNAMICALLY GENERATED</property> + </object> + </child> + </object> + </child> + </object> +</interface> diff --git a/contrib/checkmark.svgz b/contrib/checkmark.svgz Binary files differnew file mode 100644 index 0000000..1b8910f --- /dev/null +++ b/contrib/checkmark.svgz |