mtwb.mvd

来自「embedded linux web browser」· MVD 代码 · 共 165 行

MVD
165
字号
<?xml version="1.0" encoding="UTF-8"?>
<MVDData version="1.2">
    <DesignDocument designVersion="MIDP-2" uidCounter="28">
        <DesignComponent id="$MobileDevice" typeid="MIDP:$MobileDevice" uid="0"/>
        <DesignComponent id="$StartPoint" typeid="MIDP:$StartPoint" uid="1">
            <Property name="targetDisplayable" value="MainMenu"/>
            <Property name="targetForwardDisplayable"/>
        </DesignComponent>
        <DesignComponent id="MainMenu" typeid="MIDP:javax.microedition.lcdui.Form" uid="2">
            <ContainerProperty name="commands">
                <ContainerPropertyItem value="$CommandAction1"/>
                <ContainerPropertyItem value="$CommandAction2"/>
            </ContainerProperty>
            <ContainerProperty name="items">
                <ContainerPropertyItem value="stringItem1"/>
                <ContainerPropertyItem value="spacer2"/>
                <ContainerPropertyItem value="TFaddress"/>
                <ContainerPropertyItem value="spacer1"/>
                <ContainerPropertyItem value="TFsearch"/>
                <ContainerPropertyItem value="spacer3"/>
                <ContainerPropertyItem value="status"/>
            </ContainerProperty>
        </DesignComponent>
        <DesignComponent id="stringItem1" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="3">
            <Property name="label" value="STRING:Mobile Text Web Browser"/>
            <Property name="text" value="STRING:"/>
            <ContainerProperty name="commands"/>
        </DesignComponent>
        <DesignComponent id="spacer2" typeid="MIDP-2:javax.microedition.lcdui.Spacer" uid="5">
            <Property name="minWidth" value="1000"/>
            <Property name="minHeight" value="1"/>
        </DesignComponent>
        <DesignComponent id="TFaddress" typeid="MIDP:javax.microedition.lcdui.TextField" uid="6">
            <Property name="label" value="STRING:Enter URL address:\n"/>
            <Property name="string" value="STRING:http://www.google.com"/>
            <Property name="maxSize" value="120"/>
            <Property name="constraints" value="4"/>
            <ContainerProperty name="commands">
                <ContainerPropertyItem value="$ItemCommandAction1"/>
            </ContainerProperty>
        </DesignComponent>
        <DesignComponent id="spacer1" typeid="MIDP-2:javax.microedition.lcdui.Spacer" uid="7">
            <Property name="minWidth" value="1000"/>
            <Property name="minHeight" value="1"/>
        </DesignComponent>
        <DesignComponent id="TFsearch" typeid="MIDP:javax.microedition.lcdui.TextField" uid="8">
            <Property name="label" value="STRING:Search on Google:\n"/>
            <Property name="maxSize" value="120"/>
            <ContainerProperty name="commands">
                <ContainerPropertyItem value="$ItemCommandAction2"/>
            </ContainerProperty>
        </DesignComponent>
        <DesignComponent id="exitCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="9">
            <Property name="label" value="STRING:Exit"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="EXIT"/>
        </DesignComponent>
        <DesignComponent id="$CommandAction1" typeid="MIDP:CommandAction" uid="10">
            <Property name="targetDisplayable" value="$MobileDevice"/>
            <Property name="targetForwardDisplayable"/>
            <Property name="actionSource" value="exitCommand1"/>
            <Property name="actionOrigin" value="MainMenu"/>
        </DesignComponent>
        <DesignComponent id="cmdGo" typeid="MIDP:javax.microedition.lcdui.Command" uid="11">
            <Property name="label" value="STRING:Go"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="ITEM"/>
        </DesignComponent>
        <DesignComponent id="$ItemCommandAction1" typeid="MIDP-2:ItemCommandAction" uid="12">
            <Property name="preUserCode"/>
            <Property name="postUserCode"/>
            <Property name="targetDisplayable" value="Browser"/>
            <Property name="targetForwardDisplayable" value="Browser"/>
            <Property name="actionSource" value="cmdGo"/>
            <Property name="actionOrigin" value="TFaddress"/>
        </DesignComponent>
        <DesignComponent id="Browser" typeid="MIDP:javax.microedition.lcdui.Form" uid="13">
            <ContainerProperty name="commands">
                <ContainerPropertyItem value="$CommandAction3"/>
            </ContainerProperty>
            <ContainerProperty name="items">
                <ContainerPropertyItem value="TFcontent"/>
                <ContainerPropertyItem value="spacer4"/>
            </ContainerProperty>
        </DesignComponent>
        <DesignComponent id="cmdSearch" typeid="MIDP:javax.microedition.lcdui.Command" uid="14">
            <Property name="label" value="STRING:Search"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="ITEM"/>
        </DesignComponent>
        <DesignComponent id="$ItemCommandAction2" typeid="MIDP-2:ItemCommandAction" uid="15">
            <Property name="preUserCode"/>
            <Property name="postUserCode"/>
            <Property name="targetDisplayable" value="Browser"/>
            <Property name="targetForwardDisplayable" value="Browser"/>
            <Property name="actionSource" value="cmdSearch"/>
            <Property name="actionOrigin" value="TFsearch"/>
        </DesignComponent>
        <DesignComponent id="exitCommand2" typeid="MIDP:javax.microedition.lcdui.Command" uid="16">
            <Property name="label" value="STRING:Exit"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="EXIT"/>
        </DesignComponent>
        <DesignComponent id="backCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="18">
            <Property name="label" value="STRING:Back"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="BACK"/>
        </DesignComponent>
        <DesignComponent id="$CommandAction3" typeid="MIDP:CommandAction" uid="19">
            <Property name="targetDisplayable" value="MainMenu"/>
            <Property name="targetForwardDisplayable" value="Browser"/>
            <Property name="actionSource" value="backCommand1"/>
            <Property name="actionOrigin" value="Browser"/>
        </DesignComponent>
        <DesignComponent id="TFcontent" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="20">
            <Property name="label" value="STRING:"/>
            <Property name="text" value="STRING:...\n"/>
            <ContainerProperty name="commands"/>
        </DesignComponent>
        <DesignComponent id="spacer3" typeid="MIDP-2:javax.microedition.lcdui.Spacer" uid="21">
            <Property name="minWidth" value="1000"/>
            <Property name="minHeight" value="1"/>
        </DesignComponent>
        <DesignComponent id="status" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="22">
            <Property name="label" value="STRING:Status"/>
            <Property name="text" value="STRING:Ready\n"/>
            <ContainerProperty name="commands"/>
        </DesignComponent>
        <DesignComponent id="spacer4" typeid="MIDP-2:javax.microedition.lcdui.Spacer" uid="23">
            <Property name="minWidth" value="1000"/>
            <Property name="minHeight" value="1"/>
        </DesignComponent>
        <DesignComponent id="helpCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="24">
            <Property name="label" value="STRING:Help"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="HELP"/>
        </DesignComponent>
        <DesignComponent id="$CommandAction2" typeid="MIDP:CommandAction" uid="25">
            <Property name="targetDisplayable" value="helpAlert"/>
            <Property name="targetForwardDisplayable" value="MainMenu"/>
            <Property name="actionSource" value="helpCommand1"/>
            <Property name="actionOrigin" value="MainMenu"/>
        </DesignComponent>
        <DesignComponent id="helpAlert" typeid="MIDP:javax.microedition.lcdui.Alert" uid="26">
            <Property name="title" value="STRING:Help"/>
            <ContainerProperty name="commands"/>
            <Property name="string" value="STRING:Welcome to MTWB. With this program you may open HTML pages. This can be done by entering the URL into the appropriate box. You may also perform Google search by using another text box."/>
            <Property name="timeout" value="-2"/>
            <Property name="type" value="INFO"/>
            <Property name="image"/>
        </DesignComponent>
    </DesignDocument>
    <FlowDocument version="1.1">
        <Node id="$MobileDevice" location="160,192" order=",$StartPoint,,,,,,,,,$ExitPoint,,,,,"/>
        <Node id="Browser" location="136,352" order=",$CommandAction3,,,,,,,,,$Default,,,,,"/>
        <Node id="helpAlert" location="528,360" order=",,,,$CommandAction2$Output,$CommandAction2$Input,,,,,$Default,,,,,"/>
        <Node id="MainMenu" location="416,192" order="$CommandAction1,$CommandAction2,,,,,,,,,$Default,,,,,"/>
        <Link id="$StartPoint$ActionLink" path="200,168,376,168"/>
        <Link id="$CommandAction1$ActionLink" path="456,184,505,184,505,112,47,112,47,168,120,168"/>
        <Link id="$CommandAction3$ActionLink" path="176,328,313,328,313,168,376,168"/>
        <Link id="$CommandAction2$ActionLink" path="456,168,536,168,536,288"/>
        <Link id="$CommandAction2$ForwardLink" path="552,288,552,228,313,228,313,168,376,168"/>
    </FlowDocument>
</MVDData>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?