Browse Source

Changes all relevant Prefs settings to use the new FileBrowser component

Fixes issue 3754

Change-Id: I3b880c8c69d1629c38dea6c38a33e831ec961189
Reviewed-on: http://gerrit.dmdirc.com/968
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.4
Simon Mott 14 years ago
parent
commit
83d8f88669

+ 1
- 1
src/com/dmdirc/addons/dcc/DCCPlugin.java View File

@@ -594,7 +594,7 @@ public final class DCCPlugin extends Plugin implements ActionListener {
594 594
         firewall.addSetting(new PreferencesSetting(PreferencesType.INTEGER,
595 595
                 getDomain(), "firewall.ports.endPort", "End Port",
596 596
                 "Port to try to listen on last"));
597
-        receiving.addSetting(new PreferencesSetting(PreferencesType.TEXT,
597
+        receiving.addSetting(new PreferencesSetting(PreferencesType.DIRECTORY,
598 598
                 getDomain(), "receive.savelocation", "Default save location",
599 599
                 "Where the save as window defaults to?"));
600 600
         sending.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,

+ 1
- 1
src/com/dmdirc/addons/freedesktop_notifications/FreeDesktopNotificationsPlugin.java View File

@@ -197,7 +197,7 @@ public final class FreeDesktopNotificationsPlugin extends Plugin implements
197 197
         final PreferencesCategory general = new PluginPreferencesCategory(getPluginInfo(), "FreeDesktop Notifications", "General configuration for FreeDesktop Notifications plugin.");
198 198
         
199 199
         general.addSetting(new PreferencesSetting(PreferencesType.INTEGER, getDomain(), "general.timeout", "Timeout", "Length of time in seconds before the notification popup closes."));
200
-        general.addSetting(new PreferencesSetting(PreferencesType.TEXT, getDomain(), "general.icon", "icon", "Path to icon to use on the notification."));
200
+        general.addSetting(new PreferencesSetting(PreferencesType.FILE, getDomain(), "general.icon", "icon", "Path to icon to use on the notification."));
201 201
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN, getDomain(), "advanced.escapehtml", "Escape HTML", "Some Implementations randomly parse HTML, escape it before showing?"));
202 202
 	general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN, getDomain(), "advanced.strictescape", "Strict Escape HTML", "Strictly escape HTML or just the basic characters? (&, < and >)"));
203 203
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN, getDomain(), "advanced.stripcodes", "Strip Control Codes", "Strip IRC Control codes from messages?"));

+ 1
- 1
src/com/dmdirc/addons/logging/LoggingPlugin.java View File

@@ -243,7 +243,7 @@ public class LoggingPlugin extends Plugin implements ActionListener,
243 243
         final PreferencesCategory advanced = new PluginPreferencesCategory(
244 244
                 getPluginInfo(), "Advanced", "Advanced configuration for Logging plugin. You shouldn't need to edit this unless you know what you are doing.");
245 245
 
246
-        general.addSetting(new PreferencesSetting(PreferencesType.TEXT, getDomain(), "general.directory", "Directory", "Directory for log files"));
246
+        general.addSetting(new PreferencesSetting(PreferencesType.DIRECTORY, getDomain(), "general.directory", "Directory", "Directory for log files"));
247 247
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN, getDomain(), "general.networkfolders", "Separate logs by network", "Should the files be stored in a sub-dir with the networks name?"));
248 248
         general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN, getDomain(), "general.addtime", "Timestamp logs", "Should a timestamp be added to the log files?"));
249 249
         general.addSetting(new PreferencesSetting(PreferencesType.TEXT, getDomain(), "general.timestamp", "Timestamp format", "The String to pass to 'SimpleDateFormat' to format the timestamp"));

Loading…
Cancel
Save