diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-04 16:30:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-06 12:16:04 +0100 |
commit | 69c546e1e7a697217f273baa7c1729ff823efd76 (patch) | |
tree | 4533c38b84d1cd57f86094ac816f0eb7c526ade1 /sw/uiconfig/swriter/ui | |
parent | 2c61782812b1b8b382dd48a04a712da9eaeb4685 (diff) |
weld annotation window
note the labels in sw/uiconfig/swriter/ui/annotation.ui are deliberately
yaligned to 0 to retain the preexisting SwAnnotationWin::PaintTile hack which
depends on this for bin/run gtktiledviewer --enable-tiled-annotations to
not show clipped author/date/etc labels
Change-Id: I53827aa98ed4d71d532a5993d21c6e22190b8063
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107264
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/uiconfig/swriter/ui')
-rw-r--r-- | sw/uiconfig/swriter/ui/annotation.ui | 240 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/annotationmenu.ui | 95 |
2 files changed, 240 insertions, 95 deletions
diff --git a/sw/uiconfig/swriter/ui/annotation.ui b/sw/uiconfig/swriter/ui/annotation.ui new file mode 100644 index 000000000000..753f373136af --- /dev/null +++ b/sw/uiconfig/swriter/ui/annotation.ui @@ -0,0 +1,240 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 --> +<interface domain="sw"> + <requires lib="gtk+" version="3.20"/> + <object class="GtkMenu" id="menu"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <child> + <object class="GtkMenuItem" id="reply"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|reply">Reply</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkSeparatorMenuItem" id="sep1"> + <property name="visible">True</property> + <property name="can-focus">False</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="resolve"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|resolve">Resolve</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="unresolve"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|unresolve">Unresolve</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="resolvethread"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|resolvethread">Resolve Thread</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="unresolvethread"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|unresolvethread">Unresolve Thread</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="delete"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|delete">Delete _Comment</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="deletethread"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|deletethread">Delete _Comment Thread</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="deleteby"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|deleteby">Delete _All Comments by $1</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="deleteall"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|deleteall">_Delete All Comments</property> + <property name="use-underline">True</property> + </object> + </child> + <child> + <object class="GtkMenuItem" id="formatall"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="annotationmenu|formatall">Format All Comments...</property> + <property name="use-underline">True</property> + </object> + </child> + </object> + <object class="GtkBox" id="Annotation"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="events">GDK_BUTTON_MOTION_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_STRUCTURE_MASK</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkScrolledWindow" id="scrolledwindow"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="hscrollbar-policy">never</property> + <child> + <object class="GtkViewport"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkDrawingArea" id="editview"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="events">GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_FOCUS_CHANGE_MASK | GDK_STRUCTURE_MASK</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="hexpand">True</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel" id="author"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label">label</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="date"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label">label</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="resolved"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label">label</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkMenuButton" id="menubutton"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="focus-on-click">False</property> + <property name="label" translatable="no"></property> + <property name="receives-default">True</property> + <property name="valign">start</property> + <property name="margin-end">10</property> + <property name="margin-top">5</property> + <property name="relief">none</property> + <property name="draw-indicator">True</property> + <property name="popup">menu</property> + <child> + <placeholder/> + </child> + <style> + <class name="small-button"/> + </style> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> +</interface> diff --git a/sw/uiconfig/swriter/ui/annotationmenu.ui b/sw/uiconfig/swriter/ui/annotationmenu.ui deleted file mode 100644 index 859ec493737f..000000000000 --- a/sw/uiconfig/swriter/ui/annotationmenu.ui +++ /dev/null @@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.20.0 --> -<interface domain="sw"> - <requires lib="gtk+" version="3.20"/> - <object class="GtkMenu" id="menu"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <child> - <object class="GtkMenuItem" id="reply"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|reply">Reply</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkSeparatorMenuItem" id="sep1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="resolve"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|resolve">Resolve</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="unresolve"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|unresolve">Unresolve</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="resolvethread"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|resolvethread">Resolve Thread</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="unresolvethread"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|unresolvethread">Unresolve Thread</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="delete"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|delete">Delete _Comment</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="deletethread"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|deletethread">Delete _Comment Thread</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="deleteby"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|deleteby">Delete _All Comments by $1</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="deleteall"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|deleteall">_Delete All Comments</property> - <property name="use_underline">True</property> - </object> - </child> - <child> - <object class="GtkMenuItem" id="formatall"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="annotationmenu|formatall">Format All Comments...</property> - <property name="use_underline">True</property> - </object> - </child> - </object> -</interface> |