Browse Source

Add preferences meta-data.

This is a conversion of all the current swing pref settings to
a new meta-data format. The plan is for the core/plugin system
to be able to parse this and generate the necessary model for
the prefs system.

Change-Id: Iea6e96db79af747c325d66a7d621b4d43b9af177
Reviewed-on: http://gerrit.dmdirc.com/3321
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
changes/21/3321/3
Chris Smith 10 years ago
parent
commit
e118b28101
1 changed files with 145 additions and 0 deletions
  1. 145
    0
      src/com/dmdirc/addons/ui_swing/META-INF/preferences.yml

+ 145
- 0
src/com/dmdirc/addons/ui_swing/META-INF/preferences.yml View File

@@ -0,0 +1,145 @@
1
+---
2
+categories:
3
+  - name: &General Swing UI
4
+    description: These config options apply only to the swing UI.
5
+    parent: GUI
6
+    icon: category-gui
7
+    domain: ui
8
+    items:
9
+
10
+      - type: multichoice
11
+        key: lookandfeel
12
+        title: Look and feel
13
+        help: The Java look and feel to use
14
+        source: com.dmdirc.addons.ui_swing.config.LookAndFeelProvider
15
+        restart: true
16
+
17
+      - type: multichoice
18
+        key: framemanager
19
+        title: Window manager
20
+        help: Which window manager should be used?
21
+        source: com.dmdirc.addons.ui_swing.config.FrameManagerProvider
22
+        restart: true
23
+
24
+      - type: multichoice
25
+        key: framemanagerPosition
26
+        title: Window manager position
27
+        help: Where should the window manager be positioned?
28
+        values:
29
+          top: Top
30
+          bottom: Bottom
31
+          left: Left
32
+          right: Right
33
+        restart: true
34
+
35
+      - type: font
36
+        key: textPaneFontName
37
+        title: Textpane font
38
+        help: Font for the textpane
39
+        restart: true
40
+
41
+      - type: integer
42
+        key: textPaneFontSize
43
+        title: Textpane font size
44
+        help: Font size for the textpane
45
+        restart: true
46
+
47
+      - type: boolean
48
+        key: sortrootwindows
49
+        title: Sort root windows
50
+        help: Sort root windows in the frame managers?
51
+
52
+      - type: boolean
53
+        key: sortchildwindows
54
+        title: Sort child windows
55
+        help: Sort child windows in the frame managers?
56
+
57
+  - name: Nicklist
58
+    icon: nicklist
59
+    parent: *General
60
+    items:
61
+
62
+      - type: optional colour
63
+        domain: ui
64
+        key: nicklistbackgroundcolour
65
+        title: Nicklist background colour
66
+        help: Background colour to use for the nicklist
67
+
68
+      - type: optional colour
69
+        domain: ui
70
+        key: nicklistforegroundcolour
71
+        title: Nicklist foreground colour
72
+        help: Foreground colour to use for the nicklist
73
+
74
+      - type: optional colour
75
+        domain: ui
76
+        key: nicklistAltBackgroundColour
77
+        title: Alternate background colour
78
+        help: Background colour to use for every other nicklist entry
79
+
80
+      - type: boolean
81
+        domain: nicklist
82
+        key: sortByMode
83
+        title: Sort nicklist by user mode
84
+        help: Sort nicknames by the modes they have?
85
+
86
+      - type: boolean
87
+        domain: nicklist
88
+        key: sortByCase
89
+        title: Sort nicklist by case
90
+        help: Sort nicknames in a case-sensitive manner?
91
+
92
+  - name: Advanced
93
+    parent: *General
94
+    domain: $plugin
95
+    items:
96
+
97
+      - type: optional integer
98
+        domain: ui
99
+        key: frameBufferSize
100
+        title: Window buffer size
101
+        help: The maximum number of lines in a window buffer
102
+        validator:
103
+          type: numerical
104
+          min: 10
105
+
106
+      - type: boolean
107
+        key: mdiBarVisibility
108
+        title: MDI Bar Visibility
109
+        help: Controls the visibility of the MDI bar
110
+
111
+      - type: boolean
112
+        domain: ui
113
+        key: useOneTouchExpandable
114
+        title: Use one touch expandable split panes?
115
+        help: Use one touch expandable arrows for collapsing/expanding the split panes
116
+
117
+      - type: integer
118
+        key: windowMenuItems
119
+        title: Window menu item count
120
+        help: Number of items to show in the window menu
121
+
122
+      - type: integer
123
+        key: windowMenuScrollInterval
124
+        title: Window menu scroll interval
125
+        help: Number of milliseconds to pause when autoscrolling in the window menu
126
+
127
+      - type: boolean
128
+        key: shownicklist
129
+        title: Show nicklist?
130
+        help: Do you want the nicklist visible
131
+
132
+      - type: boolean
133
+        key: showfulltopic
134
+        title: Show full topic in topic bar?
135
+        help: Do you want to show the full topic in the topic bar or just first line?
136
+
137
+      - type: boolean
138
+        key: hideEmptyTopicBar
139
+        title: Hide empty topic bar?
140
+        help: Do you want to hide the topic bar when there is no topic
141
+
142
+      - type: boolean
143
+        key: textpanelinenotifications
144
+        title: New line notification
145
+        help: Do you want to be notified about new lines whilst scrolled up?

Loading…
Cancel
Save