⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configsectionfiletorrentsdecoding.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ConfigSectionFileTorrentsDecoding.java

package org.gudy.azureus2.ui.swt.views.configsections;

import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.gudy.azureus2.core3.config.COConfigurationManager;
import org.gudy.azureus2.core3.internat.*;
import org.gudy.azureus2.ui.swt.Messages;
import org.gudy.azureus2.ui.swt.config.BooleanParameter;
import org.gudy.azureus2.ui.swt.config.StringListParameter;
import org.gudy.azureus2.ui.swt.plugins.UISWTConfigSection;

public class ConfigSectionFileTorrentsDecoding
	implements UISWTConfigSection
{

	private final int REQUIRED_MODE = 2;

	public ConfigSectionFileTorrentsDecoding()
	{
	}

	public String configSectionGetParentSection()
	{
		return "torrents";
	}

	public int maxUserMode()
	{
		return 2;
	}

	public String configSectionGetName()
	{
		return "torrent.decoding";
	}

	public void configSectionSave()
	{
	}

	public void configSectionDelete()
	{
	}

	public Composite configSectionCreate(Composite parent)
	{
		Composite cSection = new Composite(parent, 0);
		GridData gridData = new GridData(272);
		cSection.setLayoutData(gridData);
		GridLayout layout = new GridLayout();
		layout.numColumns = 2;
		cSection.setLayout(layout);
		int userMode = COConfigurationManager.getIntParameter("User Mode");
		Label label;
		if (userMode < 2)
		{
			label = new Label(cSection, 64);
			gridData = new GridData();
			label.setLayoutData(gridData);
			String modeKeys[] = {
				"ConfigView.section.mode.beginner", "ConfigView.section.mode.intermediate", "ConfigView.section.mode.advanced"
			};
			String param1;
			if (2 < modeKeys.length)
				param1 = MessageText.getString(modeKeys[2]);
			else
				param1 = String.valueOf(2);
			String param2;
			if (userMode < modeKeys.length)
				param2 = MessageText.getString(modeKeys[userMode]);
			else
				param2 = String.valueOf(userMode);
			label.setText(MessageText.getString("ConfigView.notAvailableForMode", new String[] {
				param1, param2
			}));
			return cSection;
		}
		label = new Label(cSection, 0);
		Messages.setLanguageText(label, "ConfigView.section.file.decoder.label");
		LocaleUtilDecoder decoders[] = LocaleUtil.getSingleton().getDecoders();
		String decoderLabels[] = new String[decoders.length + 1];
		String decoderValues[] = new String[decoders.length + 1];
		decoderLabels[0] = MessageText.getString("ConfigView.section.file.decoder.nodecoder");
		decoderValues[0] = "";
		for (int i = 1; i <= decoders.length; i++)
			decoderLabels[i] = decoderValues[i] = decoders[i - 1].getName();

		new StringListParameter(cSection, "File.Decoder.Default", "", decoderLabels, decoderValues);
		gridData = new GridData();
		gridData.horizontalSpan = 2;
		(new BooleanParameter(cSection, "File.Decoder.Prompt", "ConfigView.section.file.decoder.prompt")).setLayoutData(gridData);
		gridData = new GridData();
		gridData.horizontalSpan = 2;
		(new BooleanParameter(cSection, "File.Decoder.ShowLax", "ConfigView.section.file.decoder.showlax")).setLayoutData(gridData);
		gridData = new GridData();
		gridData.horizontalSpan = 2;
		(new BooleanParameter(cSection, "File.Decoder.ShowAll", "ConfigView.section.file.decoder.showall")).setLayoutData(gridData);
		return cSection;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -