~azzar1/unity/add-show-desktop-key

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/">
<!-- Top bar section -->
<head>
  <title>${title}</title>
</head>
<body>
  <div id="topbar">
    <div id="path">
      <span>
        <py:for each="segment in paths">/<a href="${segment['href_path']}" title="Navigate to ${segment['nav_path']}">${segment['path']}</a></py:for><py:if test="isdir">/</py:if><py:if test="revno is not None"> (revision ${revno})</py:if>
      </span>
    </div>
    <div id="actions1">
      <a id="act_open" class="disabled">Open</a> :
      <a id="act_serve"
          title="View this file on the web, running your code if this is a CGI file"
          class="disabled" target="_blank">Serve</a> :
      <a id="act_run" title="Run the selected Python file in the console"
          class="disabled">Run</a> :
      <a id="act_download" class="choice">Download</a> :
      <a title="Refresh the current page" onclick="refresh()"
          class="choice">Refresh</a>
      <span id="moreactions_area"> :
        <select id="moreactions" onchange="handle_moreactions()"
            onblur="handle_moreactions()">
          <option class="moreactions" value="top"
              selected="selected">More actions...</option>
          <py:for each="(name, disablement, group) in moreactions">

            <optgroup label="${name}">

              <py:choose test="disablement">

                <py:when test="True">
                  <py:for each="(id, bits) in group">
                    <option id="act_${id}" class="disabled" disabled="disabled"
                        title="${bits[1]}" value="${id}">${bits[0]}</option>
                  </py:for>
                </py:when>

                <py:otherwise>
                  <py:for each="(id, bits) in group">
                    <option id="act_${id}" title="${bits[1]}" 
                        value="${id}">${bits[0]}</option>
                  </py:for>                
                </py:otherwise>

              </py:choose>

            </optgroup>
          </py:for>
        </select>
      </span>
    </div>
    <div id="actions2">
      <form id="actions2_directory"
          target="upload_iframe"
          action="${fileservice_action}"
          enctype="multipart/form-data" method="post">
        <p>
          <span id="selectallpanel">
          Select:
            <a onclick="action_selectall(true)"
                title="Select all files in this directory">All</a> :
            <a onclick="action_selectall(false)"
                title="Deselect all files in this directory">None</a>
          </span>

          <span style="display:none" id="uploadpanel">|
            <label for="upload_file">Upload file:</label>
            <input type="hidden" value="putfile" name="action" />
            <input type="hidden" value="" name="path" />
            <input type="file" name="data" id="upload_file" />
            <input type="checkbox" checked="checked" value="true" name="unpack" id="unpack" />
            <label title="Extract files and directories from a ZIP file if one is uploaded" for="unpack">Unpack ZIP</label>
            <input type="button" onclick="show_uploadpanel(false)" value="Cancel" />
            <input type="submit" value="Upload" />
          </span>
          <!-- This iframe is for making a call to upload the file without
               refreshing the page. (It will refresh the listing). -->
          <iframe onload="upload_callback()" style="display: none;"
              name="upload_iframe" id="upload_iframe"></iframe>
        </p>
      </form>
      <p id="actions2_file">
        <input type="button" id="save_button" value="Save" onclick="save_file('${filename}')" />
        <input type="button" id="saveas_button" value="Save As..." onclick="save_file_as('${filename}')" />
        <select id="highlighting_select" onchange="highlighting_changed(this)">
          <option value="text">Text</option>
          <option value="python">Python</option>
          <option value="html">HTML</option>
          <option value="javascript">JavaScript</option>
          <option value="css">CSS</option>
        </select>
      </p>
    </div>
  </div>
  <!-- Body. The JavaScript places content here relevant to the path -->
  <div id="filesbody">
  </div>
  <!-- End body -->
</body>
</html>