use of com.biglybt.pifimpl.local.ui.config.ActionParameterImpl in project BiglyBT by BiglySoftware.
the class ConfigSectionInterfaceStartSWT method build.
@Override
public void build() {
setDefaultUITypesForAdd(UIInstance.UIT_SWT);
// "Start" Sub-Section
// -------------------
add(new BooleanParameterImpl("ui.startfirst", "ConfigView.label.StartUIBeforeCore"), Parameter.MODE_ADVANCED);
add(new BooleanParameterImpl("Show Splash", "ConfigView.label.showsplash"));
// XXX is this really SWT only?
add(new BooleanParameterImpl("update.start", "ConfigView.label.checkonstart"));
// XXX is this really SWT only?
add(new BooleanParameterImpl("update.periodic", "ConfigView.label.periodiccheck"));
BooleanParameterImpl autoDownload = new BooleanParameterImpl("update.autodownload", "ConfigView.section.update.autodownload");
add(autoDownload);
BooleanParameterImpl openDialog = new BooleanParameterImpl("update.opendialog", "ConfigView.label.opendialog");
add(openDialog);
autoDownload.addDisabledOnSelection(openDialog);
// XXX is this really SWT only?
// no but can't think where else to put it
add(new BooleanParameterImpl("update.anonymous", "ConfigView.label.update.anonymous")).setMinimumRequiredUserMode(Parameter.MODE_ADVANCED);
add("ifs.gap1", new LabelParameterImpl(""));
add(new BooleanParameterImpl("Open Transfer Bar On Start", "ConfigView.label.open_transfer_bar_on_start"));
add(new BooleanParameterImpl("Start Minimized", "ConfigView.label.startminimized"));
if (Constants.isUnix) {
add(new BooleanParameterImpl("ui.useGTK2", "ConfigView.label.useGTK2"));
}
// UI switcher window.
ActionParameterImpl ui_switcher_button = new ActionParameterImpl("ConfigView.label.ui_switcher", "ConfigView.label.ui_switcher_button");
add(ui_switcher_button);
ui_switcher_button.addListener(param -> Utils.execSWTThread(() -> UISwitcherUtil.openSwitcherWindow()));
}
Aggregations