Package org.gudy.azureus2.ui.swt.mainwindow

Examples of org.gudy.azureus2.ui.swt.mainwindow.HSLColor


    }

    /**
     * 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


        "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

  public static MenuItem addImportMenuItem(Menu menuParent) {
    MenuItem file_import = addMenuItem(menuParent, MENU_ID_IMPORT,
        new Listener() {
          public void handleEvent(Event e) {
            new ImportTorrentWizard();
          }
        });
    return file_import;
  }
View Full Code Here

          }
        });

    if (colorLine == null) {
      colorLine = tv.getComposite().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND);
      HSLColor hslColor = new HSLColor();
      hslColor.initHSLbyRGB(colorLine.getRed(), colorLine.getGreen(),
          colorLine.getBlue());
 
      int lum = hslColor.getLuminence();
      if (lum > 127)
        lum -= 25;
      else
        lum += 40;
      hslColor.setLuminence(lum);
     
      colorLine = new Color(tv.getComposite().getDisplay(), hslColor.getRed(), hslColor.getGreen(), hslColor.getBlue());
    }

    /* Background image badly slows down tree drawing
    int itemHeight = table.getItemHeight() + 1;
    int height = 1920;
View Full Code Here

   
    Device device = canvas.getDisplay();
   
    colours = new Color[16];
   
    HSLColor hsl = new HSLColor();
   
    hsl.initHSLbyRGB( 130,240,240 );
   
    int  step = 128 / colours.length;
   
    int  hue = colours.length * step;
   
    for (int i=0;i<colours.length;i++){
     
      hsl.setHue( hue );
     
      hue -= step;
     
      colours[i] = new Color( device, hsl.getRed(), hsl.getGreen(), hsl.getBlue());
    }
  }
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.ui.swt.mainwindow.HSLColor

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.