Package org.gudy.azureus2.ui.swt.debug

Examples of org.gudy.azureus2.ui.swt.debug.ObfusticateImage


    }

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

  }
 
  // @see org.gudy.azureus2.ui.swt.debug.ObfusticateImage#obfusticatedImage(org.eclipse.swt.graphics.Image, org.eclipse.swt.graphics.Point)
  public Image obfusticatedImage(Image image) {
    if (view instanceof ObfusticateImage) {
      ObfusticateImage oi = (ObfusticateImage) view;
      return oi.obfusticatedImage(image);
    }
    return image;
  }
View Full Code Here

      Control childControl = swtChildren[i];
      TableOrTreeSWT tableOrTree = TableOrTreeUtils.getTableOrTreeSWT(childControl);
      TableView tv = tableOrTree == null ? null
          : (TableView) tableOrTree.getData("TableView");
      if (tv instanceof ObfusticateImage) {
        ObfusticateImage oi = (ObfusticateImage) tv;
        oi.obfusticatedImage(image);
        continue;
      }

      SWTSkinObject so = (SWTSkinObject) childControl.getData("SkinObject");
      if (so instanceof ObfusticateImage) {
        ObfusticateImage oi = (ObfusticateImage) so;
        oi.obfusticatedImage(image);
      } else if (so == null && (childControl instanceof Composite)) {
        obfusticatedImage((Composite) childControl, image);
      }
    }
View Full Code Here

      }
      TableOrTreeSWT tableOrTree = TableOrTreeUtils.getTableOrTreeSWT(childControl);
      TableView tv = tableOrTree == null ? null
          : (TableView) tableOrTree.getData("TableView");
      if (tv instanceof ObfusticateImage) {
        ObfusticateImage oi = (ObfusticateImage) tv;
        oi.obfusticatedImage(image);
        continue;
      }
      ObfusticateImage oi = (ObfusticateImage) childControl.getData("ObfusticateImage");
      if (oi != null) {
        oi.obfusticatedImage(image);
        continue;
      }
      if (childControl instanceof Composite) {
        obfusticatedImage((Composite) childControl, image);
      }
View Full Code Here

    final Text text = new Text(cArea, SWT.NONE);
    FormData filledFormData = Utils.getFilledFormData();
    text.setLayoutData(filledFormData);

    text.setData("ObfusticateImage", new ObfusticateImage() {
      public Image obfusticatedImage(Image image) {
        Point location = Utils.getLocationRelativeToShell(text);
        Point size = text.getSize();
        UIDebugGenerator.obfusticateArea(display, image, new Rectangle(
            location.x, location.y, size.x, size.y));
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.ui.swt.debug.ObfusticateImage

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.