/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.restrict; import eric.GUI.palette.PaletteManager; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import eric.JEricPanel; import javax.swing.JSeparator; import rene.gui.Global; /** * * @author erichake */ public class RestrictPanel extends JEricPanel{ private static int W=400,H=1200,MARGINH=20,SMALLMARGINH=10; private ArrayList iconslines=new ArrayList(); private RestrictNonPalettePreference menu,macr,hist,help,lib_macros; public RestrictPanel(){ setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setBorder(BorderFactory.createEmptyBorder()); setOpaque(false); PaletteManager.fixsize(this, W,H ); add(marginH(MARGINH)); add(new RestrictPanelActiveLine(this, Global.Loc("restrict.activate"))); add(marginH(MARGINH)); add(new RestrictSeparator(SMALLMARGINH)); add(new RestrictPanelComment()); init_Disk_zone(); init_Edit_zone(); init_Construction_zone(); init_Func_zone(); init_Test_zone(); init_Control_zone(); init_Aspect_zone(); init_Grid_zone(); init_History_zone(); init_Back_zone(); init_Size_zone(); init_Prec_zone(); add(marginH(MARGINH)); add(new RestrictSeparator(SMALLMARGINH)); add(marginH(MARGINH)); add(menu=new RestrictNonPalettePreference(RestrictItems.MENU,Global.Loc("restrict.menubar"))); add(marginH(MARGINH)); add(macr=new RestrictNonPalettePreference(RestrictItems.MCRP,Global.Loc("restrict.macropanel"))); add(marginH(MARGINH)); add(hist=new RestrictNonPalettePreference(RestrictItems.HISTP,Global.Loc("restrict.historypanel"))); add(marginH(MARGINH)); add(help=new RestrictNonPalettePreference(RestrictItems.HLPP,Global.Loc("restrict.helppanel"))); add(marginH(MARGINH)); add(lib_macros=new RestrictNonPalettePreference(RestrictItems.LMCR, Global.Loc("restrict.librarymacros"))); } public static int getPanelWidth(){ return W; } public void setSelectAll(boolean b){ for (int i=0;i