summaryrefslogtreecommitdiffstats
path: root/comm/suite/chatzilla/xul/content/config-add.xul
blob: 84834ca5a70a419a4bdf3c67faaa26f1b8828879 (plain)
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
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE dialog SYSTEM "chrome://chatzilla/locale/config.dtd">

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="config.css" type="text/css"?>

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:html="http://www.w3.org/1999/xhtml"
    windowtype="irc:chatzilla:config:add"
    buttons="accept,cancel"
    ondialogaccept="onOK();"
    ondialogcancel="onCancel();"
    onload="onLoad();"
    title="&config.add.title;">
  
  <script src="config-add.js"/>
  
  <vbox>
    <hbox align="center">
      <label value="&config.type.label;" accesskey="&config.type.accesskey;" 
          tooltiptext="&config.type.hint;" control="prefType"/>
      <!-- Beware the hacks, number 264: add |value| attribute to make .value 
           work when the dialog loads (|selected| selects an item, but doesn't
           set .value). -->
      <radiogroup orient="horizontal" id="prefType" value="chan" 
          onselect="changeType();">
        <radio value="net"  label="&network;"/>
        <radio value="chan" label="&channel;" selected="true"/>
        <radio value="user" label="&user;"/>
      </radiogroup>
    </hbox>
    <separator class="groove"/>
    <grid>
      <columns><column/><column flex="1"/></columns>
      <rows>
        <row align="center">
          <label value="&config.network.label;" control="prefName1" 
            tooltiptext="&config.network.hint;" 
            accesskey="&config.network.accesskey;"/>
          <textbox id="prefName1"/>
        </row>
        <row align="center">
          <label value="&config.target.label;" control="prefName2" 
            tooltiptext="&config.target.hint;" 
            accesskey="&config.target.accesskey;"/>
          <textbox id="prefName2"/>
        </row>
      </rows>
    </grid>
  </vbox>
</dialog>