From: <cs-...@li...> - 2010-09-29 18:21:50
|
details: http://cs-studio.hg.sourceforge.net/hgweb/cs-studio/cs-studio//hgrepo/c/cs/cs-studio/cs-studio/rev/899daf96a9f0 changeset: 7829:899daf96a9f0 user: xihui <ch...@or...> date: Wed Sep 29 14:21:08 2010 -0400 description: BOY: Add description to every widget action diffstat: applications/plugins/org.csstudio.opibuilder.examples/examples/BOY Examples/widgets/3_3_Menu_Button.opi | 759 +++++---- applications/plugins/org.csstudio.opibuilder.widgets/src/org/csstudio/opibuilder/widgets/editparts/MenuButtonEditPart.java | 1 + applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/AbstractWidgetAction.java | 17 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/ExecuteCommandAction.java | 4 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/ExecuteJavaScriptAction.java | 4 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/OpenDisplayAction.java | 8 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/OpenFileAction.java | 4 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/OpenWebpageAction.java | 4 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/PlayWavFileAction.java | 4 +- applications/plugins/org.csstudio.opibuilder/src/org/csstudio/opibuilder/widgetActions/WritePVAction.java | 2 +- 10 files changed, 418 insertions(+), 389 deletions(-) diffs (truncated from 942 to 300 lines): diff -r 55db76987368 -r 899daf96a9f0 applications/plugins/org.csstudio.opibuilder.examples/examples/BOY Examples/widgets/3_3_Menu_Button.opi --- a/applications/plugins/org.csstudio.opibuilder.examples/examples/BOY Examples/widgets/3_3_Menu_Button.opi Tue Sep 28 18:23:54 2010 +0200 +++ b/applications/plugins/org.csstudio.opibuilder.examples/examples/BOY Examples/widgets/3_3_Menu_Button.opi Wed Sep 29 14:21:08 2010 -0400 @@ -1,371 +1,392 @@ <?xml version="1.0" encoding="UTF-8"?> -<display typeId="org.csstudio.opibuilder.Display" version="1.0"> - <widget_type>Display</widget_type> - <macros> - <include_parent_macros>true</include_parent_macros> - <noisePV>sim://noise</noisePV> - <my_name>Best OPI Yet</my_name> - </macros> - <width>800</width> - <scripts /> - <show_ruler>false</show_ruler> - <height>600</height> - <show_edit_range>true</show_edit_range> - <name>Menu Button</name> - <grid_space>4</grid_space> - <snap_to_geometry>true</snap_to_geometry> - <show_grid>false</show_grid> - <y>0</y> - <actions hook="false" /> - <foreground_color> - <color red="192" green="192" blue="192" /> - </foreground_color> - <background_color> - <color red="240" green="240" blue="240" /> - </background_color> - <x>0</x> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>-Actions From PV(actions_from_pv). If true, the actions will be loaded from the enumerated PV specified in "PV Name" property. If false, actions will be loaded from "Actions" Property. The property sheet will update based on this option.
 --Label(label). Label text displayed on button.</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="10" style="0" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>745</width> - <border_style>1</border_style> - <auto_size>false</auto_size> - <scripts /> - <height>80</height> - <border_width>1</border_width> - <name>Label_6</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>0</horizontal_alignment> - <transparent>false</transparent> - <y>217</y> - <actions hook="false" /> - <tooltip /> - <x>17</x> - <background_color> - <color red="255" green="255" blue="223" /> - </background_color> - <foreground_color> - <color red="0" green="0" blue="203" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>Menu Button will pop up a menu when clicked. The menu will be filled with either the actions from "Actions" Property or the actions from a enumerated PV.</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="10" style="0" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>745</width> - <border_style>1</border_style> - <auto_size>false</auto_size> - <scripts /> - <height>60</height> - <border_width>1</border_width> - <name>Label_6</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>0</horizontal_alignment> - <transparent>false</transparent> - <y>115</y> - <actions hook="false" /> - <tooltip /> - <x>17</x> - <background_color> - <color red="255" green="255" blue="223" /> - </background_color> - <foreground_color> - <color red="0" green="0" blue="203" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>Menu Button</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="18" style="1" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>295</width> - <border_style>0</border_style> - <auto_size>false</auto_size> - <scripts /> - <height>86</height> - <border_width>1</border_width> - <name>Label_8</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>1</horizontal_alignment> - <transparent>false</transparent> - <y>6</y> - <actions hook="false" /> - <tooltip /> - <x>17</x> - <background_color> - <color red="135" green="181" blue="255" /> - </background_color> - <foreground_color> - <color red="128" green="0" blue="64" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>Examples</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="18" style="1" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>451</width> - <border_style>0</border_style> - <auto_size>false</auto_size> - <scripts /> - <height>43</height> - <border_width>1</border_width> - <name>Label_6</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>1</horizontal_alignment> - <transparent>false</transparent> - <y>49</y> - <actions hook="false" /> - <tooltip /> - <x>311</x> - <background_color> - <color red="135" green="181" blue="255" /> - </background_color> - <foreground_color> - <color red="29" green="40" blue="184" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>Best OPI Yet (BOY)</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="18" style="1" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>451</width> - <border_style>0</border_style> - <auto_size>false</auto_size> - <scripts /> - <height>44</height> - <border_width>1</border_width> - <name>Label_9</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>1</horizontal_alignment> - <transparent>false</transparent> - <y>6</y> - <actions hook="false" /> - <tooltip /> - <x>311</x> - <background_color> - <color red="135" green="181" blue="255" /> - </background_color> - <foreground_color> - <color red="29" green="40" blue="184" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>Introduction</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="10" style="1" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>76</width> - <border_style>0</border_style> - <auto_size>true</auto_size> - <scripts /> - <height>16</height> - <border_width>1</border_width> - <name>Label_5</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>1</horizontal_alignment> - <transparent>false</transparent> - <y>106</y> - <actions hook="false" /> - <tooltip>$(pv_name) -$(pv_value)</tooltip> - <x>332</x> - <background_color> - <color red="0" green="255" blue="128" /> - </background_color> - <foreground_color> - <color red="0" green="0" blue="0" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0"> - <widget_type>Label</widget_type> - <enabled>true</enabled> - <text>Special Properties</text> - <visible>true</visible> - <font> - <fontdata fontName="Arial" height="10" style="1" /> - </font> - <vertical_alignment>1</vertical_alignment> - <width>117</width> - <border_style>0</border_style> - <auto_size>true</auto_size> - <scripts /> - <height>16</height> - <border_width>1</border_width> - <name>Label_5</name> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <horizontal_alignment>1</horizontal_alignment> - <transparent>false</transparent> - <y>208</y> - <actions hook="false" /> - <tooltip>$(pv_name) -$(pv_value)</tooltip> - <x>311</x> - <background_color> - <color red="0" green="255" blue="128" /> - </background_color> - <foreground_color> - <color red="0" green="0" blue="0" /> - </foreground_color> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.MenuButton" version="1.0"> - <border_alarm_sensitive>false</border_alarm_sensitive> - <visible>true</visible> - <actions_from_pv>true</actions_from_pv> - <scripts /> - <height>40</height> - <name>Menu Button</name> - <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive> - <pv_name>EpicsDemo1.SCAN</pv_name> - <foreground_color> - <color red="0" green="0" blue="0" /> - </foreground_color> - <background_color> - <color red="240" green="240" blue="240" /> - </background_color> - <enabled>true</enabled> - <widget_type>Menu Button</widget_type> - <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive> - <font> - <fontdata fontName="Arial" height="8" style="0" /> - </font> - <width>100</width> - <border_style>6</border_style> - <label /> - <border_width>1</border_width> - <border_color> - <color red="0" green="128" blue="255" /> - </border_color> - <y>341</y> - <x>461</x> - <tooltip>$(pv_name) -$(pv_value)</tooltip> - </widget> - <widget typeId="org.csstudio.opibuilder.widgets.MenuButton" version="1.0"> - <border_alarm_sensitive>false</border_alarm_sensitive> - <visible>true</visible> - <actions_from_pv>false</actions_from_pv> - <scripts /> - <height>40</height> - <name>Menu Button_1</name> - <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive> - <foreground_color> - <color red="0" green="0" blue="0" /> |