mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Document AdwMessageDialog and AdwAlertDialog separately
This commit is contained in:
parent
05d6ff1fd7
commit
d47955c5a2
2 changed files with 32 additions and 33 deletions
4
NEWS.md
4
NEWS.md
|
@ -1,7 +1,3 @@
|
||||||
# v0.11.0
|
|
||||||
|
|
||||||
- Added support for [Adw.AlertDialog](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.AlertDialog.html#adwalertdialog-as-gtkbuildable) custom syntax.
|
|
||||||
|
|
||||||
# v0.10.0
|
# v0.10.0
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
|
@ -15,7 +15,8 @@ Properties are the main way to set values on objects, but they are limited by th
|
||||||
.. rst-class:: grammar-block
|
.. rst-class:: grammar-block
|
||||||
|
|
||||||
Extension = :ref:`ExtAccessibility<Syntax ExtAccessibility>`
|
Extension = :ref:`ExtAccessibility<Syntax ExtAccessibility>`
|
||||||
| :ref:`ExtAdwResponseDialog<Syntax ExtAdwResponseDialog>`
|
| :ref:`ExtAdwAlertDialog<Syntax ExtAdwAlertDialog>`
|
||||||
|
| :ref:`ExtAdwMessageDialog<Syntax ExtAdwMessageDialog>`
|
||||||
| :ref:`ExtAdwBreakpoint<Syntax ExtAdwBreakpoint>`
|
| :ref:`ExtAdwBreakpoint<Syntax ExtAdwBreakpoint>`
|
||||||
| :ref:`ExtComboBoxItems<Syntax ExtComboBoxItems>`
|
| :ref:`ExtComboBoxItems<Syntax ExtComboBoxItems>`
|
||||||
| :ref:`ExtFileFilterMimeTypes<Syntax ExtFileFilter>`
|
| :ref:`ExtFileFilterMimeTypes<Syntax ExtFileFilter>`
|
||||||
|
@ -63,34 +64,7 @@ Defines the condition for a breakpoint and the properties that will be set at th
|
||||||
The `Adw.Breakpoint:condition <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/property.Breakpoint.condition.html>`_ property has type `Adw.BreakpointCondition <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/struct.BreakpointCondition.html>`_, which GtkBuilder doesn't know how to parse from a string. Therefore, the ``condition`` syntax is used instead.
|
The `Adw.Breakpoint:condition <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/property.Breakpoint.condition.html>`_ property has type `Adw.BreakpointCondition <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/struct.BreakpointCondition.html>`_, which GtkBuilder doesn't know how to parse from a string. Therefore, the ``condition`` syntax is used instead.
|
||||||
|
|
||||||
|
|
||||||
.. _Syntax ExtAdwResponseDialog:
|
.. _Syntax ExtAdwAlertDialog:
|
||||||
|
|
||||||
Adw.MessageDialog Responses
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
.. rst-class:: grammar-block
|
|
||||||
|
|
||||||
ExtAdwResponseDialog = 'responses' '[' (ExtAdwResponseDialogResponse),* ']'
|
|
||||||
ExtAdwResponseDialogResponse = <id::ref:`IDENT<Syntax IDENT>`> ':' :ref:`StringValue<Syntax StringValue>` ExtAdwResponseDialogFlag*
|
|
||||||
ExtAdwResponseDialogFlag = 'destructive' | 'suggested' | 'disabled'
|
|
||||||
|
|
||||||
Valid in `Adw.MessageDialog <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/class.MessageDialog.html>`_.
|
|
||||||
|
|
||||||
The ``responses`` block defines the buttons that will be added to the dialog. The ``destructive`` or ``suggested`` flag sets the appearance of the button, and the ``disabled`` flag can be used to disable the button.
|
|
||||||
|
|
||||||
.. code-block:: blueprint
|
|
||||||
|
|
||||||
using Adw 1;
|
|
||||||
|
|
||||||
Adw.MessageDialog {
|
|
||||||
responses [
|
|
||||||
cancel: _("Cancel"),
|
|
||||||
delete: _("Delete") destructive,
|
|
||||||
save: "Save" suggested,
|
|
||||||
wipeHardDrive: "Wipe Hard Drive" destructive disabled,
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Adw.AlertDialog Responses
|
Adw.AlertDialog Responses
|
||||||
----------------------------
|
----------------------------
|
||||||
|
@ -119,6 +93,35 @@ The ``responses`` block defines the buttons that will be added to the dialog. Th
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.. _Syntax ExtAdwMessageDialog:
|
||||||
|
|
||||||
|
Adw.MessageDialog Responses
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
.. rst-class:: grammar-block
|
||||||
|
|
||||||
|
ExtAdwMessageDialog = 'responses' '[' (ExtAdwMessageDialogResponse),* ']'
|
||||||
|
ExtAdwMessageDialogResponse = <id::ref:`IDENT<Syntax IDENT>`> ':' :ref:`StringValue<Syntax StringValue>` ExtAdwMessageDialogFlag*
|
||||||
|
ExtAdwMessageDialogFlag = 'destructive' | 'suggested' | 'disabled'
|
||||||
|
|
||||||
|
Valid in `Adw.MessageDialog <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/class.MessageDialog.html>`_.
|
||||||
|
|
||||||
|
The ``responses`` block defines the buttons that will be added to the dialog. The ``destructive`` or ``suggested`` flag sets the appearance of the button, and the ``disabled`` flag can be used to disable the button.
|
||||||
|
|
||||||
|
.. code-block:: blueprint
|
||||||
|
|
||||||
|
using Adw 1;
|
||||||
|
|
||||||
|
Adw.MessageDialog {
|
||||||
|
responses [
|
||||||
|
cancel: _("Cancel"),
|
||||||
|
delete: _("Delete") destructive,
|
||||||
|
save: "Save" suggested,
|
||||||
|
wipeHardDrive: "Wipe Hard Drive" destructive disabled,
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.. _Syntax ExtComboBoxItems:
|
.. _Syntax ExtComboBoxItems:
|
||||||
|
|
||||||
Gtk.ComboBoxText Items
|
Gtk.ComboBoxText Items
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue