use of com.biglybt.core.config.impl.ConfigurationDefaults in project BiglyBT by BiglySoftware.
the class UIConfigDefaultsSWT method initialize.
/**
*/
public static void initialize() {
ConfigurationDefaults def = ConfigurationDefaults.getInstance();
def.addParameter("useCustomTab", true);
def.addParameter("GUI Refresh", 500);
def.addParameter("Graphics Update", 4);
def.addParameter("ReOrder Delay", 4);
def.addParameter("Refresh When Inactive", 2);
def.addParameter("Send Version Info", true);
def.addParameter("Show Download Basket", false);
def.addParameter("config.style.refreshMT", 0);
def.addParameter("Open Details", false);
def.addParameter("Open Seeding Details", false);
def.addParameter("IconBar.enabled", true);
def.addParameter("IconBar.visible.play", true);
def.addParameter("IconBar.visible.run", true);
def.addParameter("IconBar.visible.top", true);
def.addParameter("IconBar.visible.up", true);
def.addParameter("IconBar.visible.down", true);
def.addParameter("IconBar.visible.bottom", true);
def.addParameter("IconBar.start.stop.separate", false);
def.addParameter("DefaultDir.BestGuess", false);
def.addParameter("DefaultDir.AutoUpdate", true);
def.addParameter("DefaultDir.AutoSave.AutoRename", true);
def.addParameter("GUI_SWT_bFancyTab", true);
def.addParameter("Colors.progressBar.override", false);
def.addParameter("GUI_SWT_DisableAlertSliding", false);
def.addParameter("NameColumn.showProgramIcon", !Constants.isWindowsVista);
def.addParameter("RankColumn.showUpDownIcon.big", true);
def.addParameter("RankColumn.showUpDownIcon.small", false);
def.addParameter("SeedsColumn.showNetworkIcon", true);
def.addParameter("PeersColumn.showNetworkIcon", true);
def.addParameter("DND Always In Incomplete", false);
def.addParameter("Message Popup Autoclose in Seconds", 15);
// def.addParameter("Add URL Silently", false); not used 11/30/2015 - see "Activate Window On External Download"
def.addParameter("Reduce Auto Activate Window", false);
def.addParameter("MyTorrents.SplitAt", 30);
def.addParameter("Wizard Completed", false);
def.addParameter("SpeedTest Completed", false);
def.addParameter("Color Scheme.red", 0);
def.addParameter("Color Scheme.green", 128);
def.addParameter("Color Scheme.blue", 255);
def.addParameter("Show Splash", true);
def.addParameter("window.maximized", true);
def.addParameter("window.rectangle", "");
def.addParameter("Start Minimized", false);
def.addParameter("Open Transfer Bar On Start", false);
def.addParameter("Transfer Bar Show Icon Area", true);
def.addParameter("Stats Graph Dividers", false);
def.addParameter("Open Bar Incomplete", false);
def.addParameter("Open Bar Complete", false);
def.addParameter("Close To Tray", true);
def.addParameter("Minimize To Tray", false);
def.addParameter("Status Area Show SR", true);
def.addParameter("Status Area Show NAT", true);
def.addParameter("Status Area Show DDB", true);
def.addParameter("Status Area Show IPF", true);
def.addParameter("Status Area Show RIP", true);
def.addParameter("status.rategraphs", Utils.getUserMode() > 0);
def.addParameter("GUI_SWT_share_count_at_close", 0);
def.addParameter("GUI_SWT_bOldSpeedMenu", false);
def.addParameter("ui.toolbar.uiswitcher", false);
def.addParameter("ui.systray.tooltip.enable", false);
def.addParameter("ui.systray.tooltip.next.eta.enable", false);
def.addParameter("Remember transfer bar location", true);
if (COConfigurationManager.getBooleanParameter("Open Bar")) {
COConfigurationManager.setParameter("Open Bar Incomplete", true);
COConfigurationManager.setParameter("Open Bar Complete", true);
COConfigurationManager.setParameter("Open Bar", false);
}
def.addParameter("suppress_file_download_dialog", false);
def.addParameter("Suppress Sharing Dialog", false);
def.addParameter("auto_remove_inactive_items", false);
def.addParameter("show_torrents_menu", true);
def.addParameter("mainwindow.search.history.enabled", true);
def.addParameter("MyTorrentsView.table.style", 0);
def.addParameter("v3.topbar.height", 60);
def.addParameter("v3.topbar.show.plugin", false);
def.addParameter("pluginbar.visible", false);
def.addParameter("ui.toolbar.uiswitcher", false);
def.addParameter("Table.extendedErase", false);
def.addParameter("Table.useTree", false);
def.addParameter("Table.tooltip.disable", false);
if ("az2".equalsIgnoreCase(COConfigurationManager.getStringParameter("ui", "az3"))) {
def.addParameter("v3.Show Welcome", false);
def.addParameter("list.dm.dblclick", "1");
def.addParameter(MultipleDocumentInterface.SIDEBAR_SECTION_LIBRARY + ".viewmode", 1);
def.addParameter(MultipleDocumentInterface.SIDEBAR_SECTION_LIBRARY_DL + "DL.viewmode", 1);
def.addParameter(MultipleDocumentInterface.SIDEBAR_SECTION_LIBRARY_CD + ".viewmode", 1);
}
def.addParameter("list.dm.dblclick", "-1");
def.addParameter("browser.external.id", "system");
def.addParameter("browser.internal.disable", false);
def.addParameter("browser.internal.proxy.id", "none");
def.addParameter("Bar Transparency", 0);
def.addParameter("Low Resource Silent Update Restart Enabled", true);
def.addParameter("Library.ShowCatButtons", true);
def.addParameter("Library.ShowTagButtons", false);
def.addParameter("Library.ShowTagButtons.CompOnly", false);
def.addParameter("open.torrent.window.rename.on.tlf.change", true);
def.addParameter("Library.LaunchWebsiteInBrowser", true);
def.addParameter("Library.LaunchWebsiteInBrowserAnon", false);
def.addParameter("Library.LaunchWebsiteInBrowserDirList", false);
def.addParameter("ui.scaled.graphics.binary.based", false);
def.addParameter("Search Subs Row Height", 20);
def.addParameter("Search View Is Web View", true);
def.addParameter("Search View Switch Hidden", false);
def.addParameter("tag.add.customize.default.checked", true);
def.addParameter("PeersView.status.prioritysort", true);
}
use of com.biglybt.core.config.impl.ConfigurationDefaults in project BiglyBT by BiglySoftware.
the class ParameterRepository method addPlugin.
public void addPlugin(Parameter[] parameters, String displayName) {
params.put(displayName, parameters);
// set the defaults
ConfigurationDefaults def = ConfigurationDefaults.getInstance();
if (def == null)
return;
for (int i = 0; i < parameters.length; i++) {
Parameter parameter = parameters[i];
if (!(parameter instanceof ParameterImpl))
continue;
String sKey = ((ParameterImpl) parameter).getKey();
if (parameter instanceof StringParameterImpl) {
def.addParameter(sKey, ((StringParameterImpl) parameter).getDefaultValue());
} else if (parameter instanceof IntParameterImpl) {
def.addParameter(sKey, ((IntParameterImpl) parameter).getDefaultValue());
} else if (parameter instanceof BooleanParameterImpl) {
def.addParameter(sKey, ((BooleanParameterImpl) parameter).getDefaultValue());
} else if (parameter instanceof FileParameter) {
def.addParameter(sKey, ((FileParameter) parameter).getDefaultValue());
} else if (parameter instanceof DirectoryParameterImpl) {
def.addParameter(sKey, ((DirectoryParameterImpl) parameter).getDefaultValue());
} else if (parameter instanceof IntsParameter) {
def.addParameter(sKey, ((IntsParameter) parameter).getDefaultValue());
} else if (parameter instanceof StringListParameterImpl) {
def.addParameter(sKey, ((StringListParameterImpl) parameter).getDefaultValue());
} else if (parameter instanceof ColorParameter) {
def.addParameter(sKey + ".red", ((ColorParameter) parameter).getDefaultRed());
def.addParameter(sKey + ".green", ((ColorParameter) parameter).getDefaultGreen());
def.addParameter(sKey + ".blue", ((ColorParameter) parameter).getDefaultBlue());
}
}
}
Aggregations