idlehomescreen/data/vga_tch/templateview_200286ec/xuikon/00/View.xml
branchRCL_3
changeset 102 ba63c83f4716
parent 93 b01126ce0bec
child 103 966d119a7e67
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!DOCTYPE xmluiml SYSTEM "View.dtd">
       
     3 <xmluiml xmlns="http://www.series60.com/xml/xmluiml/1" version="1.0">
       
     4     <view id="hs_vga_tch_view">
       
     5         <actions>
       
     6             <action>
       
     7                 <!-- End key -->
       
     8                 <trigger name="keyevent">
       
     9                     <property name="scancode" value="197"/> ><!-- End key -->
       
    10                     <property name="eventtype" value="1"/>
       
    11                 </trigger>
       
    12                 <!-- dismiss if edit mode active -->
       
    13                 <event name="system/reportexiteditmode"/>
       
    14             </action>
       
    15             <action>
       
    16                 <trigger name="editmode" value="enter"/>
       
    17                 <event name="system/set">
       
    18                     <property name="name" value="focusable"/>
       
    19                     <property name="value" value="true"/>
       
    20                     <property name="type" value="string"/>
       
    21                     <property name="class" value="plugins"/>
       
    22                 </event>
       
    23                 <event name="system/seteditmode">
       
    24                     <property name="id" value="hs_popup_open_hold"/>
       
    25                 </event>                                    
       
    26             </action>                
       
    27             <action>
       
    28                 <trigger name="editmode" value="exit"/>
       
    29                 <event name="system/set">
       
    30                     <property name="name" value="focusable"/>
       
    31                     <property name="value" value="false"/>
       
    32                     <property name="type" value="string"/>
       
    33                     <property name="class" value="plugins"/>
       
    34                 </event>
       
    35                 <event name="system/reseteditmode">
       
    36                     <property name="id" value="hs_popup_open_hold"/>
       
    37                 </event>                                                    
       
    38             </action>                                
       
    39             <action>
       
    40                 <trigger name="swipe" direction="left" conditional="true"/>
       
    41                 <event name="system/activatenextview" effectid="1003"/>
       
    42             </action>
       
    43             <action>
       
    44                 <trigger name="swipe" direction="right" conditional="true"/>
       
    45                 <event name="system/activatepreviousview" effectid="1004"/>
       
    46             </action>
       
    47             <action>
       
    48                 <trigger name="screendevicechange" reason="portrait"/>
       
    49                 <event name="system/set">
       
    50                     <property name="name" value="padding-left"/>
       
    51                     <property name="value" value="17px"/>
       
    52                     <property name="type" value="numeric"/>
       
    53                     <property name="id" value="plugins_container"/>
       
    54                 </event>
       
    55                 <event name="system/set">
       
    56                     <property name="name" value="padding-right"/>
       
    57                     <property name="value" value="17px"/>
       
    58                     <property name="type" value="numeric"/>
       
    59                     <property name="id" value="plugins_container"/>
       
    60                 </event>
       
    61             </action>
       
    62             <action>
       
    63                 <trigger name="screendevicechange" reason="landscape"/>
       
    64                 <event name="system/set">
       
    65                     <property name="name" value="padding-left"/>
       
    66                     <property name="value" value="0px"/>
       
    67                     <property name="type" value="numeric"/>
       
    68                     <property name="id" value="plugins_container"/>
       
    69                 </event>
       
    70                 <event name="system/set">
       
    71                     <property name="name" value="padding-right"/>
       
    72                     <property name="value" value="0px"/>
       
    73                     <property name="type" value="numeric"/>
       
    74                     <property name="id" value="plugins_container"/>
       
    75                 </event>
       
    76             </action>
       
    77         </actions>
       
    78 
       
    79         <!-- Plugins in this view -->
       
    80         <box id="plugins_container">
       
    81             <plugin id="plugin1" class="miniplugins" actionshandler="plugin_actions">
       
    82             </plugin>
       
    83             <plugin id="plugin2" class="miniplugins" actionshandler="plugin_actions">
       
    84             </plugin>
       
    85             <plugin id="plugin3" class="miniplugins" actionshandler="plugin_actions">
       
    86             </plugin>
       
    87             <plugin id="plugin4" class="plugins" actionshandler="plugin_actions">
       
    88             </plugin>
       
    89             <plugin id="plugin5" class="plugins" actionshandler="plugin_actions">
       
    90             </plugin>
       
    91             <plugin id="plugin6" class="plugins" actionshandler="plugin_actions">
       
    92             </plugin>
       
    93         </box>
       
    94 
       
    95         <!-- plugins' actions handler -->
       
    96         <actionshandler id="plugin_actions">
       
    97             <actions>
       
    98                 <action>
       
    99                     <trigger id="hs_popup_open_hold" name="hold" conditional="true" />
       
   100                     <event name="system/reportentereditmode" effectid="1005"/>
       
   101                 </action>
       
   102             </actions>
       
   103         </actionshandler>
       
   104 
       
   105         <!-- Avkon stylus popup menu is not layout capable -->
       
   106         <styluspopup id="hs_popup_menu" display="none">
       
   107             <!-- menuitems controlled by widgets' <menuextension> -->
       
   108             <widgetmenuitem id="hs_popup_widget_settings" source="hs_widget_menuitem_settings" label="&qtn_hs_longtap_settings;" />
       
   109             <widgetmenuitem id="hs_popup_widget_general_1" source="hs_widget_general_stylus_popup_1"/>
       
   110             <widgetmenuitem id="hs_popup_widget_general_2" source="hs_widget_general_stylus_popup_2"/>
       
   111             <!--<widgetmenuitem id="hs_popup_widget_refresh" source="hs_widget_menuitem_refresh" label="Refresh" />-->
       
   112             <!-- "Remove" item initialized in runtime to check whether popup is on top of widget -->
       
   113             <dynmenuitem id="hs_popup_remove_widget" type="hs_remove_widget" label="&qtn_hs_longtap_remove_element;">
       
   114                 <actions>
       
   115                     <action>
       
   116                         <trigger name="activate"/>
       
   117                         <event name="system/removefocusedwidget"/>
       
   118                     </action>
       
   119                 </actions>
       
   120             </dynmenuitem>
       
   121         </styluspopup>
       
   122         <menubar id="hs_menubar">
       
   123             <!-- menu item grouping table is traversed through in run-time always when options menu is launched. -->
       
   124             <menuitemgrouping>
       
   125                 <!-- These items are shown when content is visible -->
       
   126                 <menuitemgroup id="Menu/NormalMode">
       
   127                     <property name="hs_edit_widgets"/>
       
   128                     <property name="hs_set_online"/>
       
   129                     <property name="hs_set_offline"/>
       
   130                     <property name="hs_add_view"/>
       
   131                     <property name="hs_remove_view"/>
       
   132                 </menuitemgroup>
       
   133                 <!-- These items are shown in edit mode, if not otherwise changed in the declaration -->
       
   134                 <menuitemgroup id="Menu/EditMode">
       
   135                     <property name="hs_widget_catalog"/>
       
   136                     <property name="hs_remove_widget"/>
       
   137                     <property name="hs_widget_settings"/>
       
   138                     <property name="hs_widget_general_1"/>
       
   139                     <property name="hs_widget_general_2"/>
       
   140                     <property name="hs_add_view"/>
       
   141                     <property name="hs_remove_view"/>
       
   142                     <property name="hs_change_wallpaper"/>
       
   143                 </menuitemgroup>
       
   144                 <!-- These items are always shown, if not otherwise changed in the declaration -->
       
   145                 <menuitemgroup id="Menu/AlwaysShown">
       
   146                     <property name="hs_show_help"/>
       
   147                 </menuitemgroup>
       
   148             </menuitemgrouping>
       
   149             <menu id="hs_options_menu">
       
   150                 <menuitem id="hs_widget_catalog" label="&qtn_hs_widget_catalog;">
       
   151                     <actions>
       
   152                         <action>
       
   153                             <trigger name="activate"/>
       
   154                             <event name="system/runaddwidgetquery"/>
       
   155                         </action>
       
   156                     </actions>
       
   157                 </menuitem>
       
   158                 <!-- menuitems controlled by widgets' <menuextension> element -->
       
   159                 <widgetmenuitem id="hs_widget_settings" source="hs_widget_menuitem_settings" label="&qtn_hs_widget_settings;"/>
       
   160                 <widgetmenuitem id="hs_widget_general_1" source="hs_widget_general_options_menu_1"/>
       
   161                 <widgetmenuitem id="hs_widget_general_2" source="hs_widget_general_options_menu_2"/>
       
   162                 <dynmenuitem id="hs_remove_widget" type="hs_remove_widget" label="&qtn_hs_remove_widget;">
       
   163                     <actions>
       
   164                         <action>
       
   165                             <trigger name="activate"/>
       
   166                             <event name="system/removefocusedwidget"/>
       
   167                         </action>
       
   168                     </actions>
       
   169                 </dynmenuitem>
       
   170                 <!--<widgetmenuitem id="hs_widget_refresh" source="hs_widget_menuitem_refresh" label="&qtn_hs_refresh_widget;" />-->
       
   171                 <menuitem id="hs_edit_widgets" label="&qtn_hs_edit_content;">
       
   172                     <actions>
       
   173                         <action>
       
   174                             <trigger name="activate"/>
       
   175                             <event name="system/reportentereditmode" effectid="1005"/>
       
   176                         </action>
       
   177                     </actions>
       
   178                 </menuitem>
       
   179                 <menuitem id="hs_change_wallpaper" label="&qtn_hs_change_wallpaper;">
       
   180                     <actions>
       
   181                         <action>
       
   182                             <trigger name="activate"/>
       
   183                             <!--Wallpaper-->
       
   184                             <event name="system/setwallpaper"/>
       
   185                         </action>
       
   186                     </actions>
       
   187                 </menuitem>
       
   188                 <dynmenuitem id="hs_add_view" type="hs_add_view" label="&qtn_hs_page_options_new;">
       
   189                     <actions>
       
   190                         <action>
       
   191                             <trigger name="activate"/>
       
   192                             <event name="system/addview" effectid="1009"/>
       
   193                         </action>
       
   194                     </actions>
       
   195                 </dynmenuitem>
       
   196                 <dynmenuitem id="hs_remove_view" type="hs_remove_view" label="&qtn_hs_page_options_delete;">
       
   197                     <actions>
       
   198                         <action>
       
   199                             <trigger name="activate"/>
       
   200                             <event name="system/removeview" effectid="1010"/>
       
   201                         </action>
       
   202                     </actions>
       
   203                 </dynmenuitem>
       
   204                 <dynmenuitem id="hs_set_online" type="hs_online" label="&qtn_hs_online;">
       
   205                     <actions>
       
   206                         <action>
       
   207                             <trigger name="activate"/>
       
   208                             <event name="EventHandler/SetOnline"/>
       
   209                         </action>
       
   210                     </actions>
       
   211                 </dynmenuitem>
       
   212                 <dynmenuitem id="hs_set_offline" type="hs_offline" label="&qtn_hs_offline;">
       
   213                     <actions>
       
   214                         <action>
       
   215                             <trigger name="activate"/>
       
   216                             <event name="EventHandler/SetOffline"/>
       
   217                         </action>
       
   218                     </actions>
       
   219                 </dynmenuitem>
       
   220                 <menuitem id="hs_show_help" label="&qtn_options_help;">
       
   221                     <actions>
       
   222                         <action>
       
   223                             <trigger name="activate"/>
       
   224                             <event name="EventHandler/ShowHelp"/>
       
   225                         </action>
       
   226                     </actions>
       
   227                 </menuitem>
       
   228             </menu>
       
   229             <softkey id="lsk" type="left" label="&qtn_hs_text_softkey_options;">
       
   230                 <actions>
       
   231                     <action>
       
   232                         <trigger name="activate"/>
       
   233                         <event name="system/trydisplayingmenu">
       
   234                             <property name="id" value="hs_options_menu"/>
       
   235                         </event>
       
   236                     </action>
       
   237                 </actions>
       
   238             </softkey>
       
   239             <softkey id="rsk" type="right" mode="mode_callinactive" label="#Menu">
       
   240             	<actions>
       
   241             		<action>
       
   242             			<trigger name="activate"/>
       
   243             			<event name="EventHandler/LaunchApp" uid="0x101F4CD2"/>
       
   244             		</action>
       
   245             	</actions>
       
   246             </softkey>
       
   247             <softkey id="rsk" type="right" mode="mode_callactive" label="#Menu">
       
   248             	<actions>
       
   249             		<action>
       
   250             			<trigger name="activate"/>            			
       
   251             			<event name="EventHandler/LaunchApp" uid="0x101F4CD2"/>
       
   252             		</action>
       
   253             	</actions>
       
   254             </softkey>
       
   255             <softkey id="rsk_done" type="right" mode="mode_edit" label="&qtn_hs_text_softkey_done;">
       
   256                 <actions>
       
   257                     <action>
       
   258                         <trigger name="activate"/>
       
   259                         <event name="system/reportexiteditmode" effectid="1006"/>
       
   260                     </action>
       
   261                 </actions>
       
   262             </softkey>
       
   263             <softkey id="msk_ltr" type="middle" label=""> <!--TODO: Remove label when MSK icon available-->
       
   264                 <actions>
       
   265                     <action>
       
   266                         <trigger name="activate"/>
       
   267                         <event name="system/activatenextview" effectid="1003"/>
       
   268                     </action>
       
   269                 </actions>
       
   270                 <!--image id="switcher_icon"/-->
       
   271             </softkey>
       
   272             <softkey id="msk_rtl" type="middle" label=""> <!--TODO: Remove label when MSK icon available-->
       
   273                 <actions>
       
   274                     <action>
       
   275                         <trigger name="activate"/>
       
   276                         <event name="system/activatepreviousview" effectid="1004"/>
       
   277                     </action>
       
   278                 </actions>
       
   279                 <!--image id="switcher_icon"/-->
       
   280             </softkey>
       
   281         </menubar>
       
   282     </view>
       
   283 </xmluiml>