Examples of PreferencesDialogBaseResources


Examples of org.rstudio.core.client.prefs.PreferencesDialogBaseResources

      return false;
   }
  
   private void addHeader(String caption)
   {
      PreferencesDialogBaseResources baseRes =
                              PreferencesDialogBaseResources.INSTANCE;
      Label pdfCompilationLabel = new Label(caption);
      pdfCompilationLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(pdfCompilationLabel);
      add(pdfCompilationLabel);
   }
View Full Code Here

Examples of org.rstudio.core.client.prefs.PreferencesDialogBaseResources

                                  Session session,
                                  final DefaultCRANMirror defaultCRANMirror)
   {
      res_ = res;
      globalDisplay_ = globalDisplay;
      PreferencesDialogBaseResources baseRes = PreferencesDialogBaseResources.INSTANCE;

      Label installationLabel = new Label("Package management");
      installationLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(installationLabel);
      add(installationLabel);
     
      cranMirrorTextBox_ = new TextBoxWithButton(
            "CRAN mirror:",
            "Change...",
            new ClickHandler()
            {
               public void onClick(ClickEvent event)
               {
                  defaultCRANMirror.choose(new OperationWithInput<CRANMirror>(){
                     @Override
                     public void execute(CRANMirror cranMirror)
                     {
                        cranMirror_ = cranMirror;
                        cranMirrorTextBox_.setText(cranMirror_.getDisplay());
                     }    
                  });
                
               }
            });
      nudgeRight(cranMirrorTextBox_);
      textBoxWithChooser(cranMirrorTextBox_);
      cranMirrorTextBox_.setText("");
      if (session.getSessionInfo().getAllowCRANReposEdit())
      {
         lessSpaced(cranMirrorTextBox_);
         add(cranMirrorTextBox_);
      }
     
      CheckBox chkEnablePackages = checkboxPref("Enable packages pane",
            uiPrefs.packagesPaneEnabled());
      chkEnablePackages.addValueChangeHandler(new ValueChangeHandler<Boolean>(){
         @Override
         public void onValueChange(ValueChangeEvent<Boolean> event)
         {
            reloadRequired_ = true;
         }
      });
      if (!session.getSessionInfo().getDisablePackages())
         add(chkEnablePackages);

     
      useInternet2_ = new CheckBox(
                        "Use Internet Explorer library/proxy for HTTP",
                        true);
      if (BrowseCap.isWindowsDesktop())
      {    
         lessSpaced(chkEnablePackages);
         spaced(useInternet2_);
         add(useInternet2_);
      }
      else
      {
         spaced(chkEnablePackages);
         chkEnablePackages.getElement().getStyle().setMarginBottom(12, Unit.PX);
      }
     
      Label developmentLabel = new Label("Package development");
      developmentLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(developmentLabel);
      add(developmentLabel);
     
      useDevtools_ = new CheckBox("Use devtools package functions if available");
      lessSpaced(useDevtools_);
View Full Code Here

Examples of org.rstudio.core.client.prefs.PreferencesDialogBaseResources

   public CompilePdfPreferencesPane(UIPrefs prefs,
                                    PreferencesDialogResources res)
   {
      prefs_ = prefs;
      res_ = res;
      PreferencesDialogBaseResources baseRes = PreferencesDialogBaseResources.INSTANCE;

      Label programDefaultsLabel = new Label(
                           "Program defaults (when not in a project)");
      programDefaultsLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(programDefaultsLabel);
      add(programDefaultsLabel);
           
      defaultSweaveEngine_ = new RnwWeaveSelectWidget();
      defaultSweaveEngine_.setValue(
                              prefs.defaultSweaveEngine().getGlobalValue());
      add(defaultSweaveEngine_);
     
      defaultLatexProgram_ = new LatexProgramSelectWidget();
      defaultLatexProgram_.setValue(
                              prefs.defaultLatexProgram().getGlobalValue());
      add(defaultLatexProgram_);
     
      Label perProjectLabel = new Label(
            "NOTE: The Rnw weave and LaTeX compilation options are also set on a " +
            "per-project (and optionally per-file) basis. Click the help " +
            "icons above for more details.");
          
      perProjectLabel.addStyleName(baseRes.styles().infoLabel());
      nudgeRight(perProjectLabel);
      spaced(perProjectLabel);
      add(perProjectLabel);
      
      Label compilationOptionsLabel = new Label("LaTeX editing and compilation");
      compilationOptionsLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(compilationOptionsLabel);
      add(compilationOptionsLabel);
      chkCleanTexi2DviOutput_ = new CheckBox(
                                     "Clean auxiliary output after compile");
      spaced(chkCleanTexi2DviOutput_);
      add(chkCleanTexi2DviOutput_);
     
      chkEnableShellEscape_ = new CheckBox("Enable shell escape commands");
      spaced(chkEnableShellEscape_);
      add(chkEnableShellEscape_);
     
      CheckBox chkNumberedSections = checkboxPref(
                                  "Insert numbered sections and subsections",
                                  prefs_.insertNumberedLatexSections());
      spaced(chkNumberedSections);
      add(chkNumberedSections);
           
      Label previwingOptionsLabel = new Label("PDF preview");
      previwingOptionsLabel.addStyleName(baseRes.styles().headerLabel());
      previwingOptionsLabel.getElement().getStyle().setMarginTop(8, Unit.PX);
      nudgeRight(previwingOptionsLabel);
      add(previwingOptionsLabel);
    
      pdfPreview_ = new PdfPreviewSelectWidget();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.