~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
<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="actions">
      <span 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>
      </span> <!-- actions1 -->
      <span id="actions2">
        <form id="actions2_directory"
            target="upload_iframe"
            action="${fileservice_action}"
            enctype="multipart/form-data" method="post">
          <span style="display:none" id="uploadpanel">
            <label for="upload_file">Upload file:</label>
            <input type="hidden" value="putfiles" 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">Unzip</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>
        </form>
        <span 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>
        </span>
      </span> <!-- actions2 -->
    </div> <!-- actions -->
  </div>
  <!-- Body. The JavaScript places content here relevant to the path -->
  <div id="filesbody">
  </div>
  <!-- End body -->
</body>
</html>