Package org.gudy.azureus2.ui.swt.config

Examples of org.gudy.azureus2.ui.swt.config.BooleanParameter


    }

    /**
     * Old-style speed menus.
     */
    new BooleanParameter(cSection, "GUI_SWT_bOldSpeedMenu", LBLKEY_PREFIX
        + "use_old_speed_menus");

    BooleanParameter bpCustomTab = new BooleanParameter(cSection,
        "useCustomTab", "ConfigView.section.style.useCustomTabs");
    Control cFancyTab = new BooleanParameter(cSection, "GUI_SWT_bFancyTab",
        "ConfigView.section.style.useFancyTabs").getControl();

    Control[] controls = {
      cFancyTab
    };
    bpCustomTab.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(
        controls));

    return cSection;
  }
View Full Code Here


    // locale always prompt

    gridData = new GridData();
    gridData.horizontalSpan = 2;
    new BooleanParameter(cSection, "File.Decoder.Prompt",
        "ConfigView.section.file.decoder.prompt").setLayoutData(gridData);

    // show lax decodings

    gridData = new GridData();
    gridData.horizontalSpan = 2;
    new BooleanParameter(cSection, "File.Decoder.ShowLax",
        "ConfigView.section.file.decoder.showlax").setLayoutData(gridData);

    // show all decoders

    gridData = new GridData();
    gridData.horizontalSpan = 2;
    new BooleanParameter(cSection, "File.Decoder.ShowAll",
        "ConfigView.section.file.decoder.showall").setLayoutData(gridData);

    return cSection;
  }
View Full Code Here

    int userMode = COConfigurationManager.getIntParameter("User Mode");
    boolean isAZ3 = COConfigurationManager.getStringParameter("ui").equals("az3");

    if (userMode >= 2) {
      new BooleanParameter(cStart, "ui.startfirst", "ConfigView.label.StartUIBeforeCore");
    }
    new BooleanParameter(cStart, "Show Splash", "ConfigView.label.showsplash");
    new BooleanParameter(cStart, "update.start", "ConfigView.label.checkonstart");
    new BooleanParameter(cStart, "update.periodic", "ConfigView.label.periodiccheck");
    BooleanParameter autoDownload = new BooleanParameter(cStart, "update.autodownload", "ConfigView.section.update.autodownload");
    BooleanParameter openDialog = new BooleanParameter(cStart, "update.opendialog", "ConfigView.label.opendialog");
   
    autoDownload.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(
        new Control[] { openDialog.getControl() }, true ));
   
    new Label(cStart,SWT.NULL);
    new BooleanParameter(cStart, "Open Transfer Bar On Start", "ConfigView.label.open_transfer_bar_on_start");
    new BooleanParameter(cStart, "Start Minimized", "ConfigView.label.startminimized");
   
  // UI switcher window.
    Composite cUISwitcher = new Composite(cStart, SWT.NONE);
    layout = new GridLayout(2, false);
    layout.marginHeight = 0;
View Full Code Here

    }
  new IntListParameter(cIgnoreFP, "StartStopManager_iFirstPriority_ignoreSPRatio", 0,
              ignoreSPRatioLabels, ignoreSPRatioValues);

  //   Ignore 0 Peers
    new BooleanParameter(cIgnoreFP,
                         "StartStopManager_bFirstPriority_ignore0Peer",
                         "ConfigView.label.seeding.firstPriority.ignore0Peer");

    label = new Label(cIgnoreFP, SWT.NULL);
View Full Code Here

        "ConfigView.section.style.useFancyTabs").getControl();

    Control[] controls = {
      cFancyTab
    };
    bpCustomTab.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(
        controls));

    return cSection;
  }
View Full Code Here

    label = new Label(cSection, SWT.NULL);
    Messages.setLanguageText(label, LBLKEY_PREFIX + "password");

    gridData = new GridData();
    gridData.widthHint = 150;
    PasswordParameter pw1 = new PasswordParameter(cSection, "Password");
    pw1.setLayoutData(gridData);
    Text t1 = (Text) pw1.getControl();

    //password confirm

    label = new Label(cSection, SWT.NULL);
    Messages.setLanguageText(label, LBLKEY_PREFIX + "passwordconfirm");
    gridData = new GridData();
    gridData.widthHint = 150;
    PasswordParameter pw2 = new PasswordParameter(cSection, "Password Confirm");
    pw2.setLayoutData(gridData);
    Text t2 = (Text) pw2.getControl();

    // password activated

    label = new Label(cSection, SWT.NULL);
    Messages.setLanguageText(label, LBLKEY_PREFIX + "passwordmatch");
View Full Code Here

  }

  public static MenuItem addConfigWizardMenuItem(Menu menu) {
    return addMenuItem(menu, MENU_ID_CONFIGURE, new Listener() {
      public void handleEvent(Event e) {
        new ConfigureWizard(false,ConfigureWizard.WIZARD_MODE_FULL);
      }
    });
  }
View Full Code Here

              uiFunctions.dispose(true, false);
            }
            return noErr;
          }
          case kHICommandWizard:
            new ConfigureWizard(false,ConfigureWizard.WIZARD_MODE_FULL);
            return noErr;
          case kHICommandNatTest:
            new NatTestWindow();
            return noErr;
          case kHICommandSpeedTest:
View Full Code Here

      UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
      if (uiFunctions != null) {
        uiFunctions.dispose(true, false);
      }
    } else if (sel == sel_wizardMenuSelected_) {
      new ConfigureWizard(false,ConfigureWizard.WIZARD_MODE_FULL);
    } else if (sel == sel_natMenuSelected_) {
      new NatTestWindow();
    } else if (sel == sel_speedMenuSelected_) {
      new SpeedTestWizard();
    } else if (sel == sel_toolbarButtonClicked_) {
View Full Code Here

  public static MenuItem addExportMenuItem(Menu menuParent) {
    MenuItem file_export = addMenuItem(menuParent, MENU_ID_EXPORT,
        new Listener() {
          public void handleEvent(Event e) {
            new ExportTorrentWizard();
          }
        });
    return file_export;
  }
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.ui.swt.config.BooleanParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.