~sword-devel/jsword/trunk

« back to all changes in this revision

Viewing changes to jsword/resource/config.xml

  • Committer: joe
  • Date: 2002-10-08 21:36:18 UTC
  • Revision ID: svn-v4:a88caf3b-7e0a-0410-8d0d-cecb45342206:trunk:80
big config and comment update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0"?>
 
2
 
2
3
<!DOCTYPE config [
3
4
<!ELEMENT config (option)+>
4
 
<!ELEMENT option (class, property, help?, data?, alternatives?)>
 
5
<!ELEMENT option (introspect?, help, map?, alternative*, custom?)>
5
6
<!ATTLIST option
6
 
  type CDATA #REQUIRED
7
7
  key CDATA #REQUIRED
 
8
  static (true|false) 'true'
8
9
  level (beginner|intermediate|advanced) 'beginner'
9
10
  priority NMTOKEN '5'
10
 
>
11
 
<!ELEMENT class (#PCDATA)>
12
 
<!ELEMENT property (#PCDATA)>
 
11
  type (string|boolean|int-options|string-options|file|path|directory|number|font|class|custom) #REQUIRED
 
12
  class CDATA #IMPLIED
 
13
>
 
14
<!ELEMENT introspect EMPTY>
 
15
<!ATTLIST introspect
 
16
  class CDATA #REQUIRED
 
17
  property CDATA #REQUIRED
 
18
>
13
19
<!ELEMENT help (#PCDATA)>
14
 
<!ELEMENT data (#PCDATA)>
15
 
<!ELEMENT alternatives (alternative)*>
 
20
 
 
21
<!ELEMENT map EMPTY>
 
22
<!ATTLIST map
 
23
  name CDATA #REQUIRED
 
24
>
 
25
<!ELEMENT custom EMPTY>
 
26
<!ATTLIST custom
 
27
  class CDATA #REQUIRED
 
28
>
16
29
<!ELEMENT alternative (#PCDATA)>
17
30
<!ATTLIST alternative
18
31
  number NMTOKEN #REQUIRED
21
34
]>
22
35
 
23
36
<config>
24
 
  <option type="static" key="Bibles.Default">
25
 
    <class>org.crosswire.jsword.book.Bibles</class>
26
 
    <property>DefaultName</property>
 
37
  <option key="Bibles.Default" type="string-options">
 
38
        <introspect class="org.crosswire.jsword.book.Bibles" property="DefaultName"/>
27
39
    <help>Which of the available Bibles is the default.</help>
28
 
    <data>biblenames</data>
 
40
                <map name="biblenames"/>
29
41
  </option>
30
42
 
31
 
  <option type="static" key="Bibles.Cache Versions">
32
 
    <class>org.crosswire.jsword.book.Bibles</class>
33
 
    <property>CacheingBibles</property>
 
43
  <option key="Bibles.Cache Versions" type="boolean">
 
44
        <introspect class="org.crosswire.jsword.book.Bibles" property="CacheingBibles"/>
34
45
    <help>Does the Bible manager cache bibles for speed, or reinitialize them to save memory.</help>
35
46
  </option>
36
47
 
37
 
  <option type="static" key="Bibles.Raw.Cache Data">
38
 
    <class>org.crosswire.jsword.book.raw.RawBibleDriver</class>
39
 
    <property>DefaultCacheData</property>
 
48
  <option key="Bibles.Raw.Cache Data" type="boolean">
 
49
        <introspect class="org.crosswire.jsword.book.raw.RawBibleDriver" property="DefaultCacheData"/>
40
50
    <help>Do new RawBibles cache the entire Bible in memory, or just the indexes.</help>
41
51
  </option>
42
52
 
43
 
  <option type="static" key="Bibles.Sword.Base Directory">
44
 
    <class>org.crosswire.jsword.book.sword.SwordBibleDriver</class>
45
 
    <property>SwordDir</property>
 
53
  <option key="Bibles.Sword.Base Directory" type="string">
 
54
        <introspect class="org.crosswire.jsword.book.sword.SwordBibleDriver" property="SwordDir"/>
46
55
    <help>Where is the SWORD Project base directory.</help>
47
56
  </option>
48
57
 
49
 
  <option type="static" key="Bibles.Display.Persistent Naming" level="advanced">
50
 
    <class>org.crosswire.jsword.passage.PassageUtil</class>
51
 
    <property>PersistentNaming</property>
 
58
  <option key="Bibles.Display.Persistent Naming" level="advanced" type="boolean">
 
59
        <introspect class="org.crosswire.jsword.passage.PassageUtil" property="PersistentNaming"/>
52
60
    <help>True if the passage editor re-writes the references to conform to its notation.</help>
53
61
  </option>
54
62
 
55
 
  <option type="static" key="Bibles.Display.Blurring Rules" level="advanced">
56
 
    <class>org.crosswire.jsword.passage.PassageUtil</class>
57
 
    <property>BlurRestriction</property>
 
63
  <option key="Bibles.Display.Blurring Rules" level="advanced" type="int-options">
 
64
        <introspect class="org.crosswire.jsword.passage.PassageUtil" property="BlurRestriction"/>
58
65
    <help>What is the default blurring - Blur across chapter boundaries or not.</help>
59
 
    <alternatives>
60
 
      <alternative number="0" name="None"/>
61
 
      <alternative number="1" name="Book"/>
62
 
      <alternative number="2" name="Chapter"/>
63
 
    </alternatives>
 
66
                <alternative number="0" name="None"/>
 
67
                <alternative number="1" name="Book"/>
 
68
                <alternative number="2" name="Chapter"/>
64
69
  </option>
65
70
 
66
 
  <option type="static" key="Bibles.Display.Book Case" level="advanced">
67
 
    <class>org.crosswire.jsword.passage.Books</class>
68
 
    <property>Case</property>
 
71
  <option key="Bibles.Display.Book Case" level="advanced" type="int-options">
 
72
        <introspect class="org.crosswire.jsword.passage.Books" property="Case"/>
69
73
    <help>What case should we use to display the references.</help>
70
 
    <alternatives>
71
 
      <alternative number="0" name="lower"/>
72
 
      <alternative number="1" name="Sentance"/>
73
 
      <alternative number="2" name="UPPER"/>
74
 
      <alternative number="3" name="mIXeD"/>
75
 
    </alternatives>
 
74
                <alternative number="0" name="lower"/>
 
75
                <alternative number="1" name="Sentance"/>
 
76
                <alternative number="2" name="UPPER"/>
 
77
                <alternative number="3" name="mIXeD"/>
76
78
  </option>
77
79
 
78
 
  <option type="static" key="Looks.Look and Feel">
79
 
    <class>org.crosswire.common.swing.LookAndFeelUtil</class>
80
 
    <property>LookAndFeel</property>
 
80
  <option key="Looks.Look and Feel" type="class">
 
81
        <introspect class="org.crosswire.common.swing.LookAndFeelUtil" property="LookAndFeel"/>
81
82
    <help>The look and feel of the application</help>
82
83
  </option>
83
84
 
84
 
  <option type="static" key="Reports.Exceptions to Dialog Box">
85
 
    <class>org.crosswire.common.swing.ExceptionPane</class>
86
 
    <property>HelpDeskListener</property>
 
85
  <option key="Reports.Exceptions to Dialog Box" type="boolean">
 
86
        <introspect class="org.crosswire.common.swing.ExceptionPane" property="HelpDeskListener"/>
87
87
    <help>Do we display Exceptions in a GUI window.</help>
88
88
  </option>
89
89
 
90
 
  <option type="static" key="Reports.Exceptions to Log Window">
91
 
    <class>org.crosswire.common.swing.ExceptionShelf</class>
92
 
    <property>HelpDeskListener</property>
 
90
  <option key="Reports.Exceptions to Log Window" type="boolean">
 
91
        <introspect class="org.crosswire.common.swing.ExceptionShelf" property="HelpDeskListener"/>
93
92
    <help>Do we display Exceptions in a the GUI shelf.</help>
94
93
  </option>
95
94
 
96
 
  <option type="static" key="Reports.Exceptions to System Logger" priority="8">
97
 
    <class>org.crosswire.common.util.event.LogCaptureListener</class>
98
 
    <property>HelpDeskListener</property>
 
95
  <option key="Reports.Exceptions to System Logger" priority="8" type="boolean">
 
96
        <introspect class="org.crosswire.common.util.event.LogCaptureListener" property="HelpDeskListener"/>
99
97
    <help>Do we log exceptions to the system logger.</help>
100
98
  </option>
101
99
 
102
 
  <option type="static" key="Advanced.Source Path" level="advanced">
103
 
    <class>org.crosswire.common.swing.DetailedExceptionPane</class>
104
 
    <property>SourcePath</property>
 
100
  <option key="Advanced.Source Path" level="advanced" type="path">
 
101
        <introspect class="org.crosswire.common.swing.DetailedExceptionPane" property="SourcePath"/>
105
102
    <help>The directories to search for source code in when investigating an exception.</help>
106
103
  </option>
107
104
 
108
 
  <option type="static" key="Advanced.User Level">
109
 
    <class>org.crosswire.common.util.UserLevel</class>
110
 
    <property>GlobalUserLevel</property>
111
 
    <help>How confident are you with this program, and how much do you want to be bothered with new features.</help>
 
105
  <option key="Advanced.User Level" type="custom" class="org.crosswire.common.util.UserLevel$UserLevelChoice">
 
106
    <help>How advanced is your knowledge of this program.</help>
112
107
  </option>
113
108
 
114
 
  <!--
115
 
  <option type="static" key="">
116
 
    <class></class>
117
 
    <property></property>
118
 
    <help></help>
119
 
  </option>
120
 
  -->
121
109
</config>