~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/xpfe/components/sidebar/resources/customize.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> <!-- -*- Mode: HTML; indent-tabs-mode: nil; -*- -->
 
2
<!--
 
3
 
 
4
  The contents of this file are subject to the Netscape Public License
 
5
  Version 1.1 (the "NPL"); you may not use this file except in
 
6
  compliance with the NPL.  You may obtain a copy of the NPL at
 
7
  http://www.mozilla.org/NPL/
 
8
 
 
9
  Software distributed under the NPL is distributed on an "AS IS" basis,
 
10
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
 
11
  for the specific language governing rights and limitations under the
 
12
  NPL.
 
13
 
 
14
  The Initial Developer of this code under the NPL is Netscape
 
15
  Communications Corporation.  Portions created by Netscape are
 
16
  Copyright (C) 1999 Netscape Communications Corporation.  All Rights
 
17
  Reserved.
 
18
 
 
19
-->
 
20
 
 
21
 
 
22
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
 
23
<?xml-stylesheet href="chrome://communicator/skin/sidebar/customize.css"
 
24
  type="text/css"?>
 
25
 
 
26
<!DOCTYPE dialog [
 
27
<!ENTITY % customizeDTD SYSTEM "chrome://communicator/locale/sidebar/customize.dtd" >
 
28
%customizeDTD;
 
29
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
 
30
%brandDTD;
 
31
]>
 
32
 
 
33
<dialog
 
34
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
35
  id="main-window"
 
36
  title="&sidebar.customize.title.label;"
 
37
  windowtype="sidebar:customize"
 
38
  height="400"
 
39
  persist="screenX screenY width height"
 
40
  ondialogaccept="return Save();">
 
41
 
 
42
  <script type="application/x-javascript"
 
43
    src="chrome://communicator/content/sidebar/customize.js"/>
 
44
 
 
45
  <hbox flex="1">
 
46
    <vbox flex="1">
 
47
      <label value="&sidebar.customize.additional.label;" crop="right"/>
 
48
 
 
49
      <tree id="other-panels" flex="1"
 
50
        datasources="rdf:null" hidecolumnpicker="true"
 
51
        containment="http://home.netscape.com/NC-rdf#panel-list"
 
52
        onselect="SelectChangeForOtherPanels(event, event.target.parentNode.parentNode);"
 
53
        onclick="if (event.detail == 2) { AddPanel(); } ClickOnOtherPanels(event);">
 
54
 
 
55
        <template>
 
56
          <rule>
 
57
            <conditions>
 
58
              <content uri="?uri"/>
 
59
              <triple subject="?uri" object="?panel-list"
 
60
                predicate="http://home.netscape.com/NC-rdf#panel-list"/>
 
61
              <member container="?panel-list" child="?panel"/>
 
62
            </conditions>
 
63
            
 
64
            <bindings>
 
65
              <binding subject="?panel" object="?title" 
 
66
                predicate="http://home.netscape.com/NC-rdf#title"/>
 
67
              <binding subject="?panel" object="?link" 
 
68
                predicate="http://home.netscape.com/NC-rdf#link"/>
 
69
            </bindings>
 
70
            
 
71
            <action>
 
72
              <treechildren>
 
73
                <treeitem uri="?panel" link="?link">
 
74
                  <treerow>
 
75
                    <treecell label="?title"/>
 
76
                  </treerow>
 
77
                </treeitem>
 
78
              </treechildren>
 
79
            </action>
 
80
          </rule>
 
81
        </template>
 
82
        
 
83
        <treecols>
 
84
          <treecol id="AvailNameCol" flex="1" primary="true" hideheader="true"/>
 
85
        </treecols>
 
86
      </tree>
 
87
 
 
88
      <!-- xxxslamm Need to add descriptive panel text here -->
 
89
      <hbox class="button-group">
 
90
        <button id="add_button" oncommand="AddPanel()"
 
91
          label="&sidebar.customize.add.label;"
 
92
          disabled="true"/>
 
93
 
 
94
        <button id="preview_button" oncommand="PreviewPanel()"
 
95
          label="&sidebar.customize.preview.label;"
 
96
          disabled="true"/>
 
97
      </hbox>
 
98
    </vbox> 
 
99
    
 
100
    <separator orient="vertical"/>    
 
101
 
 
102
    <!-- The panels that the user currently has chosen -->
 
103
    <vbox flex="1">
 
104
      <label value="&sidebar.customize.current.label;"
 
105
        crop="right"/>
 
106
      <tree id="current-panels" flex="1" hidecolumnpicker="true"
 
107
            onselect="SelectChangeForCurrentPanels();">
 
108
        <treecols>
 
109
          <treecol id="CurrentNameCol" flex="1" hideheader="true"/>
 
110
        </treecols>
 
111
 
 
112
        <treechildren/>
 
113
      </tree>
 
114
      
 
115
      <hbox class="button-group">
 
116
        <button id="customize-button" oncommand="CustomizePanel();"
 
117
          label="&sidebar.customize.customize.label;" disabled="true"/>
 
118
        <button id="remove-button" oncommand="RemovePanel()"
 
119
          label="&sidebar.customize.remove.label;" disabled="true"/>
 
120
      </hbox>      
 
121
    </vbox>
 
122
 
 
123
    <separator orient="vertical" class="thin"/>
 
124
 
 
125
    <!-- The 'reorder' buttons -->
 
126
    <vbox id="reorder">
 
127
      <spacer flex="1"/>
 
128
      <button oncommand="MoveUp();" id="up" disabled="true"
 
129
        label="&sidebar.customize.up.label;"/>
 
130
      <button oncommand="MoveDown();" id="down" disabled="true"
 
131
        label="&sidebar.customize.down.label;"/>
 
132
      <spacer flex="1"/>
 
133
    </vbox> 
 
134
 
 
135
  </hbox>
 
136
 
 
137
  <separator/>
 
138
  
 
139
  <hbox>
 
140
    <button id="more-panels-link" label="&sidebar.more.label;" oncommand="BrowseMorePanels()"/>
 
141
    <spacer flex="1"/>
 
142
    <button dlgtype="accept"/>
 
143
    <button dlgtype="cancel"/>
 
144
  </hbox>
 
145
 
 
146
</dialog>
 
147