diff --git a/core/ui/EditorToolbar/excise-dropdown.tid b/core/ui/EditorToolbar/excise-dropdown.tid index 509133512..224ae0bfe 100644 --- a/core/ui/EditorToolbar/excise-dropdown.tid +++ b/core/ui/EditorToolbar/excise-dropdown.tid @@ -1,11 +1,13 @@ title: $:/core/ui/EditorToolbar/excise-dropdown \define lingo-base() $:/language/Buttons/Excise/ + +\define body(config-title) ''<>'' -<> <$edit-text tag="input" tiddler="""$(config-title)$/new-title""" default="" focus="true"/> +<> <$edit-text tag="input" tiddler="$config-title$/new-title" default="" focus="true"/> -<$set name="new-title" value={{$(config-title)$/new-title}}> +<$set name="new-title" value={{$config-title$/new-title}}> <$list filter="""[is[tiddler]]""">
<> @@ -13,33 +15,35 @@ title: $:/core/ui/EditorToolbar/excise-dropdown -<$checkbox tiddler="""$(config-title)$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <> +<$checkbox tiddler="""$config-title$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <> -<> <$select tiddler="""$(config-title)$/type""" default="transclude"> +<> <$select tiddler="""$config-title$/type""" default="transclude"> -<$reveal state="""$(config-title)$/type""" type="match" text="macro"> -<> <$edit-text tag="input" tiddler="""$(config-title)$/macro-title""" default="translink"/> +<$reveal state="""$config-title$/type""" type="match" text="macro"> +<> <$edit-text tag="input" tiddler="""$config-title$/macro-title""" default="translink"/> <$button> <$action-sendmessage $message="tm-edit-text-operation" $param="excise" - title={{$(config-title)$/new-title}} - type={{$(config-title)$/type}} - macro={{$(config-title)$/macro-title}} - tagnew={{$(config-title)$/tagnew}} + title={{$config-title$/new-title}} + type={{$config-title$/type}} + macro={{$config-title$/macro-title}} + tagnew={{$config-title$/tagnew}} /> <$action-deletetiddler - $tiddler="""$(config-title)$/new-title""" + $tiddler=<> /> <$action-deletetiddler $tiddler=<> /> <> +\end +<$macrocall $name="body" config-title=<>/> diff --git a/core/ui/EditorToolbar/size-dropdown.tid b/core/ui/EditorToolbar/size-dropdown.tid index 473eb5bc2..96e4ec7d9 100644 --- a/core/ui/EditorToolbar/size-dropdown.tid +++ b/core/ui/EditorToolbar/size-dropdown.tid @@ -1,7 +1,8 @@ title: $:/core/ui/EditorToolbar/size-dropdown \define lingo-base() $:/language/Buttons/Size/ -\define toolbar-button-size-preset() + +\define toolbar-button-size-preset(config-title) <$set name="width" filter="$(sizePair)$ +[first[]]"> <$set name="height" filter="$(sizePair)$ +[last[]]"> @@ -9,17 +10,17 @@ title: $:/core/ui/EditorToolbar/size-dropdown <$button tag="a"> <$action-setfield - $tiddler="""$(config-title)$/new-width""" + $tiddler="""$config-title$/new-width""" $value=<> /> <$action-setfield - $tiddler="""$(config-title)$/new-height""" + $tiddler="""$config-title$/new-height""" $value=<> /> <$action-deletetiddler - $tiddler="""$(config-title)$/presets-popup""" + $tiddler="""$config-title$/presets-popup""" /> <$text text=<>/> × <$text text=<>/> @@ -31,20 +32,20 @@ title: $:/core/ui/EditorToolbar/size-dropdown \end -\define toolbar-button-size() +\define toolbar-button-size(config-title) ''{{$:/language/Buttons/Size/Hint}}'' -<> <$edit-text tag="input" tiddler="""$(config-title)$/new-width""" default=<> focus="true" size="8"/> <> <$edit-text tag="input" tiddler="""$(config-title)$/new-height""" default=<> size="8"/> <$button popup="""$(config-title)$/presets-popup""" class="tc-btn-invisible tc-popup-keep" style="width: auto; display: inline-block; background-colour: inherit;" selectedClass="tc-selected"> +<> <$edit-text tag="input" tiddler="""$config-title$/new-width""" default=<> focus="true" size="8"/> <> <$edit-text tag="input" tiddler="""$config-title$/new-height""" default=<> size="8"/> <$button popup="""$config-title$/presets-popup""" class="tc-btn-invisible tc-popup-keep" style="width: auto; display: inline-block; background-colour: inherit;" selectedClass="tc-selected"> {{$:/core/images/down-arrow}} -<$reveal tag="span" state="""$(config-title)$/presets-popup""" type="popup" position="belowleft" animate="yes"> +<$reveal tag="span" state="""$config-title$/presets-popup""" type="popup" position="belowleft" animate="yes">
<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable="sizePair"> -<> +<$macrocall $name="toolbar-button-size-preset" config-title="$config-title$"/> @@ -56,14 +57,14 @@ title: $:/core/ui/EditorToolbar/size-dropdown <$action-sendmessage $message="tm-edit-bitmap-operation" $param="resize" - width={{$(config-title)$/new-width}} - height={{$(config-title)$/new-height}} + width={{$config-title$/new-width}} + height={{$config-title$/new-height}} /> <$action-deletetiddler - $tiddler="""$(config-title)$/new-width""" + $tiddler="""$config-title$/new-width""" /> <$action-deletetiddler - $tiddler="""$(config-title)$/new-height""" + $tiddler="""$config-title$/new-height""" /> <$action-deletetiddler $tiddler=<> @@ -72,4 +73,4 @@ title: $:/core/ui/EditorToolbar/size-dropdown \end -<> +<$macrocall $name="toolbar-button-size" config-title=<>/> diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage__tm-edit-bitmap-operation.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage__tm-edit-bitmap-operation.tid index e6da0f8cc..e8df75efd 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage__tm-edit-bitmap-operation.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage__tm-edit-bitmap-operation.tid @@ -57,8 +57,8 @@ An example can be seen in [[$:/core/ui/EditorToolbar/size-dropdown]]: <$action-sendmessage $message="tm-edit-bitmap-operation" $param="resize" - width={{$(config-title)$/new-width}} - height={{$(config-title)$/new-height}} + width={{$config-title$/new-width}} + height={{$config-title$/new-height}} /> ... Resize