embedding/tests/wxEmbed/rc/browser.xrc
author Dave Camp <dcamp@mozilla.com>
Tue, 24 Feb 2009 23:12:12 -0800
changeset 25464 ef852f0a6ef396ab75417c6dbc2382da1d3c4587
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Bug 442584 - Prefetching stops working until Firefox is restarted. r=jduell, sr=jst

<?xml version="1.0" encoding="UTF-8"?>
<resource version="2.3.0.1">
  
    <!-- Browser context menus -->

    <object class="wxMenu" name="context_browser_document">
      <object class="wxMenuItem" name="browse_back">
        <label>_Back</label>
      </object>
      <object class="wxMenuItem" name="browse_fwd">
        <label>_Forward</label>
      </object>
      <object class="wxMenuItem" name="browse_reload">
        <label>Reload</label>
      </object>
      <object class="wxMenuItem" name="browse_stop">
        <label>Stop</label>
      </object>
      <object class="separator"/>
      <object class="wxMenuItem" name="menu_save">
        <label>Save _Page</label>
      </object>
      <object class="separator"/>
      <object class="wxMenuItem" name="menu_properties">
        <label>Page P_roperties</label>
      </object>
    </object>
    <object class="wxMenu" name="context_browser_link">
      <object class="wxMenuItem" name="browser_open_in_new_window">
        <label>Open Link In New Window</label>
      </object>
    </object>
    <object class="wxMenu" name="context_browser_image">
      <object class="wxMenuItem" name="dummy">
        <label>This space for rent image</label>
      </object>
    </object>
    <object class="wxMenu" name="context_browser_text">
      <object class="wxMenuItem" name="dummy">
        <label>This space for rent text</label>
      </object>
    </object>
    <object class="wxMenu" name="context_browser_input">
      <object class="wxMenuItem" name="dummy">
        <label>This space for rent input</label>
      </object>
    </object>  

  <object class="wxFrame" name="browser_frame">
    <title>wxEmbed Browser</title>
    <size>300,300</size>
    <style>wxCAPTION|wxSYSTEM_MENU|wxRESIZE_BORDER|wxRESIZE_BOX|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLIP_CHILDREN</style>
    <pos>-1,-1</pos>

    <!-- Browser menu -->
    <object class="wxMenuBar" name="mainmenu">
      <style>wxMB_DOCKABLE</style>
      
      <!-- File menu -->
      
      <object class="wxMenu" name="menu_file">
        <label>_File</label>
        <object class="wxMenuItem" name="menu_about">
          <label>_About...</label>
        </object>
        <object class="separator"/>
        <object class="wxMenuItem" name="menu_save">
          <label>Save _Page</label>
        </object>
        <object class="wxMenuItem" name="menu_print">
          <label>_Print Page</label>
        </object>
        <object class="separator"/>
        <object class="wxMenuItem" name="menu_quit">
          <label>E_xit\tAlt-Q</label>
        </object>
      </object>
      
      <!-- Edit menu -->
      
      <object class="wxMenu" name="menu_edit">
        <label>_Edit</label>
        <object class="wxMenuItem" name="edit_cut">
          <label>Cut</label>
        </object>
        <object class="wxMenuItem" name="edit_copy">
          <label>_Copy</label>
        </object>
        <object class="wxMenuItem" name="edit_paste">
          <label>_Paste</label>
        </object>
        <object class="wxMenuItem" name="edit_selectall">
          <label>Select _All</label>
        </object>
      </object>
      
      <!-- View menu -->
      
      <object class="wxMenu" name="menu_view">
        <label>_View</label>
         <object class="wxMenuItem" name="view_pagesource">
          <label>_View Page Source</label>
        </object>
      </object>
      
      <!-- Go menu -->
      
      <object class="wxMenu" name="menu_go">
        <label>_Go</label>
        <object class="wxMenuItem" name="browse_back">
          <label>_Back</label>
        </object>
        <object class="wxMenuItem" name="browse_fwd">
          <label>_Forward</label>
        </object>
        <object class="wxMenuItem" name="browse_reload">
          <label>Reload</label>
        </object>
        <object class="wxMenuItem" name="browse_stop">
          <label>Stop</label>
        </object>
      </object>
      
      <!-- Other apps menu -->
      
      <object class="wxMenu" name="menu_other_apps">
        <label>_Other Apps</label>
        <object class="wxMenuItem" name="menu_mail">
          <label>_Mail</label>
        </object>
        <object class="wxMenuItem" name="menu_chat">
          <label>_Chat</label>
        </object>
        <object class="wxMenuItem" name="menu_editor">
          <label>_Editor</label>
        </object>
      </object>
    </object>


    <!-- Browser tool bar -->
    <object class="wxToolBar" name="toolbar">
      <style>wxTB_FLAT|wxTB_DOCKABLE</style>
      <margins>2,2</margins>
      <bitmapsize>20,18</bitmapsize>
  
      <object class="tool" name="browse_back">
        <bitmap>back.gif</bitmap>
        <tooltip>Go back one page</tooltip>
      </object>
      <object class="tool" name="browse_fwd">
        <bitmap>forward.gif</bitmap>
        <tooltip>Go forward one page</tooltip>
      </object>
      <object class="separator"/>
      <object class="tool" name="browse_reload">
        <bitmap>reload.gif</bitmap>
        <tooltip>Reload current page</tooltip>
      </object>
      <object class="tool" name="browse_stop">
        <bitmap>stop.gif</bitmap>
        <tooltip>Stop loading this page</tooltip>
      </object>
      <object class="separator"/>
      <object class="tool" name="browse_home">
        <bitmap>home.gif</bitmap>
        <tooltip>Home</tooltip>
      </object>
    </object>


    <object class="wxFlexGridSizer">
      <cols>1</cols>
      <rows>2</rows>
      <vgap>0</vgap>
      <hgap>0</hgap>
      <growablecols>0</growablecols>
      <growablerows>1</growablerows>

      <!-- Address bar -->

      <object class="sizeritem">
        <flag>wxALIGN_LEFT|wxGROW|wxALL</flag>
        <object class="wxPanel">
          <style>wxCLIP_CHILDREN</style>
          <object class="wxFlexGridSizer">
            <cols>3</cols>
            <rows>1</rows>
            <vgap>0</vgap>
            <hgap>0</hgap>
            <growablecols>1</growablecols>
            <growablerows>0</growablerows>

            <orient>wxHORIZONTAL</orient>
            <object class="sizeritem">
              <flag>wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
              <object class="wxStaticText">
                <label>Address:</label>
              </object>
            </object>
            <object class="sizeritem">
              <flag>wxGROW|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
              <object class="wxTextCtrl" name="url">
                <style>wxTE_PROCESS_ENTER</style>
              </object>
            </object>
            <object class="sizeritem">
              <flag>wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL</flag>
              <object class="wxButton" name="browser_go">
                <label>Go!</label>
              </object>
            </object>
          </object>
        </object>
      </object>

      <!-- Gecko Window -->

      <object class="sizeritem">
        <flag>wxGROW|wxALL</flag>
        <object class="wxPanel" name="gecko" subclass="GeckoWindow">
          <style>wxCLIP_CHILDREN|wxSUNKEN_BORDER|wxTAB_TRAVERSAL</style>
          <size>500,280</size>
        </object>
      </object>
    </object>

  </object>
  
</resource>