home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin9x_nt.exe / OCIpan.___ (.txt) < prev    next >
Encoding:
Java Class File  |  2001-10-19  |  17.6 KB  |  1,064 lines

  1. import java.awt.Color;
  2. import java.awt.Component;
  3. import java.awt.Container;
  4. import java.awt.Dimension;
  5. import java.awt.Event;
  6. import java.awt.Font;
  7. import java.awt.FontMetrics;
  8. import java.awt.Graphics;
  9. import java.awt.Image;
  10. import java.awt.LayoutManager;
  11. import java.awt.Panel;
  12. import java.awt.Window;
  13. import java.util.Vector;
  14.  
  15. public class OCIpan extends Panel {
  16.    // $FF: renamed from: d java.awt.Dimension
  17.    Dimension field_0 = new Dimension(0, 0);
  18.    // $FF: renamed from: fm java.awt.FontMetrics
  19.    FontMetrics field_1;
  20.    Font font = new Font("Helvetica", 0, 10);
  21.    int downy = 0;
  22.    int downx = 0;
  23.    int design_id = 0;
  24.    boolean reSizeDesignGrid = false;
  25.    private boolean ready_resize;
  26.    private boolean paint_called;
  27.    private boolean first_run = true;
  28.    private boolean first_paint = true;
  29.    private Color bgColor;
  30.    Window reslide;
  31.    OCAgrid defgrid;
  32.    OCAgrid specgrid;
  33.    ACRecd specnav;
  34.    OCstatus statArea;
  35.    private Image off;
  36.    private Graphics g_off;
  37.    private OCdgvtis dgrid_id0;
  38.    private OCdgTextOne dgrid_id1;
  39.    private OCdgImg dgrid_id2;
  40.    private OCdgTextmlh dgrid_id3;
  41.    private OCdgTextTP dgrid_id4;
  42.    private OCdgBill dgrid_id5;
  43.    private OCdgImgSub dgrid_id6;
  44.    private OCdgImgNav dgrid_id7;
  45.    private OCdgSlideM dgrid_id8;
  46.    private OCdgst dgrid_id9;
  47.    private OCdgvtis dgrid_id10;
  48.    ACIntf iface;
  49.    private int dgx;
  50.    private int dgy;
  51.    private int dgw;
  52.    private int dgh;
  53.    private int sgx;
  54.    private int sgy;
  55.    private int sgw;
  56.    private int sgh;
  57.    private int snx;
  58.    private int sny;
  59.    private int snw;
  60.    private int snh;
  61.    // $FF: renamed from: sx int
  62.    private int field_2;
  63.    // $FF: renamed from: sy int
  64.    private int field_3;
  65.    // $FF: renamed from: sw int
  66.    private int field_4;
  67.    // $FF: renamed from: sh int
  68.    private int field_5;
  69.    // $FF: renamed from: vx int
  70.    private int field_6;
  71.    // $FF: renamed from: vy int
  72.    private int field_7;
  73.    // $FF: renamed from: vw int
  74.    private int field_8;
  75.    // $FF: renamed from: vh int
  76.    private int field_9;
  77.  
  78.    public boolean mouseEnter(Event var1, int var2, int var3) {
  79.       return true;
  80.    }
  81.  
  82.    public void addStatus() {
  83.       this.statArea = new OCstatus();
  84.       this.figureStatus();
  85.       ((Container)this).add(this.statArea);
  86.    }
  87.  
  88.    public void figureDesign() {
  89.       if (ACutilb.hArranged) {
  90.          this.field_6 = 2;
  91.          this.field_7 = 2;
  92.          this.field_8 = this.field_0.width - 4;
  93.          this.field_9 = this.field_0.height - ACutilb.dsgh - 48;
  94.       } else {
  95.          this.field_6 = 2;
  96.          this.field_7 = 2;
  97.          this.field_8 = this.dgx - 14;
  98.          this.field_9 = this.field_0.height - 26;
  99.       }
  100.  
  101.       if (this.design_id == 0) {
  102.          this.dgrid_id0.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  103.       } else if (this.design_id == 1) {
  104.          this.dgrid_id1.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  105.       } else if (this.design_id == 2) {
  106.          this.dgrid_id2.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  107.       } else if (this.design_id == 3) {
  108.          this.dgrid_id3.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  109.       } else if (this.design_id == 4) {
  110.          this.dgrid_id4.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  111.       } else if (this.design_id == 5) {
  112.          this.dgrid_id5.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  113.       } else if (this.design_id == 6) {
  114.          this.dgrid_id6.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  115.       } else if (this.design_id == 7) {
  116.          this.dgrid_id7.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  117.       } else if (this.design_id == 8) {
  118.          this.dgrid_id8.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  119.       } else if (this.design_id == 9) {
  120.          this.dgrid_id9.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  121.       } else {
  122.          if (this.design_id == 10) {
  123.             this.dgrid_id10.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  124.          }
  125.  
  126.       }
  127.    }
  128.  
  129.    private void checkForUpDate() {
  130.       if (this.iface.dgrid_id == 10 || this.iface.dgrid_id == 1 || this.iface.dgrid_id == 0 || this.iface.dgrid_id == 2 || this.iface.dgrid_id == 3 || this.iface.dgrid_id == 4 || this.iface.dgrid_id == 5 || this.iface.dgrid_id == 6 || this.iface.dgrid_id == 7) {
  131.          this.updateDesign();
  132.       }
  133.  
  134.    }
  135.  
  136.    public void updateDGScrollBars() {
  137.       int var1 = this.design_id;
  138.       if (var1 == 2) {
  139.          this.dgrid_id2.updateScrollBarsForSubs();
  140.       }
  141.  
  142.    }
  143.  
  144.    public void figureDefGrid() {
  145.       if (ACutilb.hArranged) {
  146.          this.dgx = 2;
  147.          this.dgy = this.field_0.height - ACutilb.dsgh - 24;
  148.          this.dgw = this.field_0.width / 2 - 4;
  149.          this.dgh = ACutilb.dsgh;
  150.       } else if (this.iface.primeclass.equals("dvs")) {
  151.          this.dgx = this.field_0.width - ACutilb.dsgw - 2;
  152.          this.dgy = 16;
  153.          this.dgw = ACutilb.dsgw;
  154.          this.dgh = (this.field_0.height - 58) / 2 + 10;
  155.       } else {
  156.          this.dgx = this.field_0.width - ACutilb.dsgw - 2;
  157.          this.dgy = 16;
  158.          this.dgw = ACutilb.dsgw;
  159.          this.dgh = (int)((double)(this.field_0.height - 58) / 1.333);
  160.       }
  161.  
  162.       this.defgrid.reshape(this.dgx, this.dgy, this.dgw, this.dgh);
  163.    }
  164.  
  165.    public void figureSpecGrid() {
  166.       if (ACutilb.hArranged) {
  167.          this.sgx = this.field_0.width - (this.field_0.width / 2 - 3);
  168.          this.sgy = this.field_0.height - ACutilb.dsgh - 24;
  169.          this.sgw = this.field_0.width / 2 - 5;
  170.          this.sgh = ACutilb.dsgh;
  171.       } else if (this.iface.primeclass.equals("dvs")) {
  172.          this.sgh = (this.field_0.height - 58) / 2 - 10;
  173.          this.sgx = this.field_0.width - ACutilb.dsgw - 2;
  174.          this.sgy = this.field_0.height - this.sgh - 24;
  175.          this.sgw = ACutilb.dsgw;
  176.       } else {
  177.          this.sgh = (this.field_0.height - 58) / 4;
  178.          this.sgx = this.field_0.width - ACutilb.dsgw - 2;
  179.          this.sgy = this.field_0.height - this.sgh - 24;
  180.          this.sgw = ACutilb.dsgw;
  181.       }
  182.  
  183.       this.specgrid.reshape(this.sgx, this.sgy, this.sgw, this.sgh);
  184.    }
  185.  
  186.    public void addSpecNav() {
  187.       this.specnav = new ACRecd();
  188.       this.figureSpecNav();
  189.       ((Container)this).add(this.specnav);
  190.       this.specnav.setRecInfo(this.iface.appinfo.cur_spec_index + 1, this.iface.appinfo.maxindex + 1);
  191.    }
  192.  
  193.    public void figureStatus() {
  194.       if (ACutilb.hArranged) {
  195.          this.field_2 = 1;
  196.          this.field_3 = this.field_0.height - 17;
  197.          this.field_4 = this.field_0.width / 2 - 2;
  198.          this.field_5 = 16;
  199.       } else {
  200.          this.field_2 = 1;
  201.          this.field_3 = this.field_0.height - 17;
  202.          this.field_4 = this.field_0.width - ACutilb.dsgw - 7;
  203.          this.field_5 = 16;
  204.       }
  205.  
  206.       this.statArea.reshape(this.field_2, this.field_3, this.field_4, this.field_5);
  207.    }
  208.  
  209.    public void updateDesignOnly(boolean var1) {
  210.       int var2 = this.design_id;
  211.       if (var2 != 0) {
  212.          if (var2 == 1) {
  213.             this.dgrid_id1.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  214.             this.dgrid_id1.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  215.             this.dgrid_id1.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  216.             this.dgrid_id1.updateDisplay(this.iface.appinfo.cur_spec_index);
  217.             return;
  218.          }
  219.  
  220.          if (var2 == 2) {
  221.             this.dgrid_id2.updateDisplay(this.iface.appinfo.cur_spec_index);
  222.             this.dgrid_id2.updateScrollBarsForSubs();
  223.          }
  224.       }
  225.  
  226.    }
  227.  
  228.    public void figureSpecNav() {
  229.       if (ACutilb.hArranged) {
  230.          this.snx = this.field_0.width - (this.field_0.width / 2 - 2) + 2;
  231.          this.sny = this.field_0.height - 19;
  232.          this.snw = this.field_0.width / 2 - 2;
  233.          this.snh = 17;
  234.       } else {
  235.          this.snx = this.field_0.width - ACutilb.dsgw - 2;
  236.          this.sny = this.field_0.height - 19;
  237.          this.snw = ACutilb.dsgw - 2;
  238.          this.snh = 17;
  239.       }
  240.  
  241.       this.specnav.reshape(this.snx, this.sny, this.snw, this.snh);
  242.    }
  243.  
  244.    public void reshape(int var1, int var2, int var3, int var4) {
  245.       if (var3 * var4 > 0) {
  246.          this.field_0 = new Dimension(var3, var4);
  247.          this.addInterfaceComps();
  248.          this.reFigureAll();
  249.          this.iface.windowChanged();
  250.          super.reshape(var1, var2, var3, var4);
  251.       }
  252.    }
  253.  
  254.    public boolean mouseExit(Event var1, int var2, int var3) {
  255.       if (!this.reSizeDesignGrid && this.iface.getCursorType() != 0) {
  256.          this.iface.setCursor(0);
  257.       }
  258.  
  259.       return true;
  260.    }
  261.  
  262.    public void addDefGrid() {
  263.       this.figureDefGrid();
  264.       ((Container)this).add(this.defgrid);
  265.    }
  266.  
  267.    public void addSpecGrid() {
  268.       this.figureSpecGrid();
  269.       ((Container)this).add(this.specgrid);
  270.    }
  271.  
  272.    OCIpan(ACIntf var1, int var2) {
  273.       this.bgColor = Color.lightGray;
  274.       this.iface = var1;
  275.       this.design_id = var2;
  276.       ((Container)this).setLayout((LayoutManager)null);
  277.       this.defgrid = new OCAgrid();
  278.       this.specgrid = new OCAgrid();
  279.    }
  280.  
  281.    public void paint(Graphics var1) {
  282.       this.paint_called = true;
  283.       this.paintIt();
  284.    }
  285.  
  286.    public boolean mouseUp(Event var1, int var2, int var3) {
  287.       if (this.iface.getCursorType() != 0) {
  288.          this.iface.setCursor(0);
  289.       }
  290.  
  291.       if (this.reSizeDesignGrid) {
  292.          int var4 = 0;
  293.          int var5 = 0;
  294.          byte var6 = 40;
  295.          int var7 = 0;
  296.          int var8 = 0;
  297.          byte var9 = 0;
  298.          int var10 = 0;
  299.          if (ACutilb.hArranged) {
  300.             var4 = var3 - this.downy;
  301.             var5 = this.field_0.height - 64;
  302.             var6 = 40;
  303.             var7 = this.field_7 + this.field_9;
  304.             if (var3 > var5) {
  305.                var4 = var5 - var7;
  306.             }
  307.  
  308.             if (var3 < var6) {
  309.                var4 = var6 - var7;
  310.             }
  311.  
  312.             this.field_9 += var4;
  313.          } else {
  314.             var4 = var2 - this.downx;
  315.             var8 = this.field_0.width - 150;
  316.             var9 = 40;
  317.             var10 = this.field_6 + this.field_8;
  318.             if (var2 > var8) {
  319.                var4 = var8 - var10;
  320.             }
  321.  
  322.             if (var2 < var9) {
  323.                var4 = var9 - var10;
  324.             }
  325.  
  326.             this.field_8 += var4;
  327.          }
  328.  
  329.          if (this.design_id == 0) {
  330.             this.dgrid_id0.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  331.          } else if (this.design_id == 1) {
  332.             this.dgrid_id1.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  333.          } else if (this.design_id == 2) {
  334.             this.dgrid_id2.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  335.          } else if (this.design_id == 3) {
  336.             this.dgrid_id3.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  337.          } else if (this.design_id == 4) {
  338.             this.dgrid_id4.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  339.          } else if (this.design_id == 5) {
  340.             this.dgrid_id5.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  341.          } else if (this.design_id == 6) {
  342.             this.dgrid_id6.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  343.          } else if (this.design_id == 7) {
  344.             this.dgrid_id7.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  345.          } else if (this.design_id == 8) {
  346.             this.dgrid_id8.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  347.          } else if (this.design_id == 9) {
  348.             this.dgrid_id9.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  349.          } else if (this.design_id == 10) {
  350.             this.dgrid_id10.reshape(this.field_6, this.field_7, this.field_8, this.field_9);
  351.          }
  352.  
  353.          if (ACutilb.hArranged) {
  354.             this.dgy += var4;
  355.             this.dgh = this.field_0.height - this.dgy - 24;
  356.             this.sgy += var4;
  357.             this.sgh = this.field_0.height - this.sgy - 24;
  358.             ACutilb.dsgh = this.dgh;
  359.          } else {
  360.             this.dgx += var4;
  361.             this.dgw = this.field_0.width - this.dgx - 2;
  362.             this.sgx = this.dgx;
  363.             this.sgw = this.dgw;
  364.             ACutilb.dsgw = this.dgw;
  365.          }
  366.  
  367.          this.defgrid.reshape(this.dgx, this.dgy, this.dgw, this.dgh);
  368.          this.specgrid.reshape(this.sgx, this.sgy, this.sgw, this.sgh);
  369.          this.drawArea();
  370.          this.paintIt();
  371.          this.reSizeDesignGrid = false;
  372.       }
  373.  
  374.       return true;
  375.    }
  376.  
  377.    public void addInterfaceComps() {
  378.       if (this.first_run) {
  379.          this.addSpecNav();
  380.          this.addDefGrid();
  381.          this.addSpecGrid();
  382.          this.addStatus();
  383.          this.addDesign();
  384.          this.updateDesign();
  385.          this.first_run = false;
  386.       }
  387.  
  388.    }
  389.  
  390.    public int getDGLevelIndexInfo() {
  391.       int var1 = 0;
  392.       int var2 = 0;
  393.       if (this.iface.dgrid_id == 2) {
  394.          var1 = this.dgrid_id2.eventsubid;
  395.          var2 = this.dgrid_id2.subs[var1].realHL;
  396.       }
  397.  
  398.       return var2;
  399.    }
  400.  
  401.    private synchronized void paintIt() {
  402.       Graphics var1 = ((Component)this).getGraphics();
  403.       if (this.first_paint) {
  404.          this.drawArea();
  405.          var1.drawImage(this.off, 0, 0, this);
  406.          this.first_paint = false;
  407.       } else {
  408.          var1.drawImage(this.off, 0, 0, this);
  409.       }
  410.    }
  411.  
  412.    public void resize(Dimension var1) {
  413.       if (var1.width * var1.height > 0) {
  414.          this.addInterfaceComps();
  415.          this.reFigureAll();
  416.          this.iface.windowChanged();
  417.          super.resize(var1);
  418.       }
  419.    }
  420.  
  421.    public void resize(int var1, int var2) {
  422.       if (var1 * var2 > 0) {
  423.          this.field_0 = new Dimension(var1, var2);
  424.          this.addInterfaceComps();
  425.          this.reFigureAll();
  426.          this.iface.windowChanged();
  427.          super.resize(var1, var2);
  428.       }
  429.    }
  430.  
  431.    public void addDesign() {
  432.       int var1 = this.design_id;
  433.       if (var1 == 0) {
  434.          this.dgrid_id0 = new OCdgvtis();
  435.          this.figureDesign();
  436.          ((Container)this).add(this.dgrid_id0);
  437.       } else if (var1 == 1) {
  438.          this.dgrid_id1 = new OCdgTextOne();
  439.          this.figureDesign();
  440.          ((Container)this).add(this.dgrid_id1);
  441.       } else if (var1 == 2) {
  442.          this.dgrid_id2 = new OCdgImg(this.iface.appinfo);
  443.          this.figureDesign();
  444.          ((Container)this).add(this.dgrid_id2);
  445.       } else if (var1 == 3) {
  446.          this.dgrid_id3 = new OCdgTextmlh();
  447.          this.figureDesign();
  448.          ((Container)this).add(this.dgrid_id3);
  449.       } else if (var1 == 4) {
  450.          this.dgrid_id4 = new OCdgTextTP();
  451.          this.figureDesign();
  452.          ((Container)this).add(this.dgrid_id4);
  453.       } else if (var1 == 5) {
  454.          this.dgrid_id5 = new OCdgBill();
  455.          this.figureDesign();
  456.          ((Container)this).add(this.dgrid_id5);
  457.       } else if (var1 == 6) {
  458.          this.dgrid_id6 = new OCdgImgSub(this.iface.appinfo);
  459.          this.figureDesign();
  460.          ((Container)this).add(this.dgrid_id6);
  461.       } else if (var1 == 7) {
  462.          this.dgrid_id7 = new OCdgImgNav(this.iface.appinfo);
  463.          this.figureDesign();
  464.          ((Container)this).add(this.dgrid_id7);
  465.       } else if (var1 == 8) {
  466.          this.dgrid_id8 = new OCdgSlideM();
  467.          this.figureDesign();
  468.          ((Container)this).add(this.dgrid_id8);
  469.       } else if (var1 == 9) {
  470.          this.dgrid_id9 = new OCdgst();
  471.          this.figureDesign();
  472.          ((Container)this).add(this.dgrid_id9);
  473.       } else {
  474.          if (var1 == 10) {
  475.             this.dgrid_id10 = new OCdgvtis();
  476.             this.figureDesign();
  477.             ((Container)this).add(this.dgrid_id10);
  478.          }
  479.  
  480.       }
  481.    }
  482.  
  483.    public OCdg getDesignArea() {
  484.       int var1 = this.design_id;
  485.       if (var1 == 0) {
  486.          return this.dgrid_id0;
  487.       } else {
  488.          return var1 == 2 ? this.dgrid_id2 : null;
  489.       }
  490.    }
  491.  
  492.    public void updateDesign() {
  493.       int var1 = this.design_id;
  494.       if (var1 == 0) {
  495.          this.dgrid_id0.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  496.          this.dgrid_id0.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  497.          Vector var8 = this.iface.appinfo.getIconValues();
  498.          if (var8.size() > 0) {
  499.             String[] var11 = new String[var8.size()];
  500.             String[] var14 = new String[var8.size()];
  501.  
  502.             for(int var15 = 0; var15 < var8.size(); ++var15) {
  503.                var11[var15] = ((String[])var8.elementAt(var15))[0];
  504.                var14[var15] = ((String[])var8.elementAt(var15))[1];
  505.             }
  506.  
  507.             this.dgrid_id0.initIcon(var11, var14);
  508.          }
  509.  
  510.          this.dgrid_id0.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  511.          this.dgrid_id0.setPointer(this.iface.appinfo.cur_spec_index);
  512.       } else if (var1 == 1) {
  513.          this.dgrid_id1.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  514.          this.dgrid_id1.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  515.          this.dgrid_id1.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  516.          this.dgrid_id1.updateDisplay(this.iface.appinfo.cur_spec_index);
  517.       } else if (var1 == 2) {
  518.          this.dgrid_id2.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  519.          this.dgrid_id2.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  520.          this.dgrid_id2.setAppDimensions(1, 1);
  521.          this.dgrid_id2.updateDisplay(this.iface.appinfo.cur_spec_index);
  522.       } else if (var1 == 3) {
  523.          this.dgrid_id3.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  524.          this.dgrid_id3.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  525.          this.dgrid_id3.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  526.          this.dgrid_id3.setPointer(this.iface.appinfo.cur_spec_index);
  527.       } else if (var1 == 4) {
  528.          this.dgrid_id4.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  529.          this.dgrid_id4.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  530.          this.dgrid_id4.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  531.          this.dgrid_id4.updateDisplay(this.iface.appinfo.cur_spec_index);
  532.       } else if (var1 == 5) {
  533.          this.dgrid_id5.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  534.          this.dgrid_id5.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  535.          this.dgrid_id5.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  536.          this.dgrid_id5.updateDisplay(this.iface.appinfo.cur_spec_index);
  537.       } else if (var1 == 6) {
  538.          this.dgrid_id6.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  539.          this.dgrid_id6.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  540.          this.dgrid_id6.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  541.          this.dgrid_id6.updateDisplay(this.iface.appinfo.cur_spec_index);
  542.       } else if (var1 == 7) {
  543.          this.dgrid_id7.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  544.          this.dgrid_id7.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  545.          this.dgrid_id7.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  546.          this.dgrid_id7.updateDisplay(this.iface.appinfo.cur_spec_index);
  547.       } else if (var1 == 8) {
  548.          this.dgrid_id8.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  549.          this.dgrid_id8.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues(), this.iface.appinfo.getSpecParamNames());
  550.          Vector var7 = this.iface.appinfo.getIconValues();
  551.          if (var7.size() > 0) {
  552.             String[] var10 = new String[var7.size()];
  553.  
  554.             for(int var13 = 0; var13 < var7.size(); ++var13) {
  555.                var10[var13] = ((String[])var7.elementAt(var13))[0];
  556.             }
  557.  
  558.             this.dgrid_id8.initIcon(var10);
  559.          }
  560.  
  561.          this.dgrid_id8.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  562.       } else if (var1 == 9) {
  563.          this.dgrid_id9.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  564.          this.dgrid_id9.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues(), this.iface.appinfo.getSpecParamNames());
  565.          Vector var6 = this.iface.appinfo.getIconValues();
  566.          if (var6.size() > 0) {
  567.             String[] var9 = new String[var6.size()];
  568.  
  569.             for(int var12 = 0; var12 < var6.size(); ++var12) {
  570.                var9[var12] = ((String[])var6.elementAt(var12))[0];
  571.             }
  572.  
  573.             this.dgrid_id9.initIcon(var9);
  574.          }
  575.  
  576.          this.dgrid_id9.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  577.       } else {
  578.          if (var1 == 10) {
  579.             this.dgrid_id10.addDefaults(this.iface.appinfo.getDefParamDescs(), this.iface.appinfo.getDefValues());
  580.             this.dgrid_id10.addSpecifics(this.iface.appinfo.getSpecParamDescs(), this.iface.appinfo.getSpecValues());
  581.             Vector var2 = this.iface.appinfo.getIconValues();
  582.             if (var2.size() > 0) {
  583.                String[] var3 = new String[var2.size()];
  584.                String[] var4 = new String[var2.size()];
  585.  
  586.                for(int var5 = 0; var5 < var2.size(); ++var5) {
  587.                   var3[var5] = ((String[])var2.elementAt(var5))[0];
  588.                   var4[var5] = ((String[])var2.elementAt(var5))[1];
  589.                }
  590.  
  591.                this.dgrid_id10.initIcon(var3, var4);
  592.             }
  593.  
  594.             this.dgrid_id10.setAppDimensions(new Integer(this.iface.appinfo.getDefValues()[0]), new Integer(this.iface.appinfo.getDefValues()[1]));
  595.             this.dgrid_id10.setPointer(this.iface.appinfo.cur_spec_index);
  596.          }
  597.  
  598.       }
  599.    }
  600.  
  601.    public void reFigureAll() {
  602.       if (!this.first_run) {
  603.          this.figureDefGrid();
  604.          this.figureSpecGrid();
  605.          this.figureSpecNav();
  606.          this.figureStatus();
  607.          this.figureDesign();
  608.       }
  609.  
  610.       this.first_run = false;
  611.       if (!this.first_paint) {
  612.          this.first_paint = true;
  613.       }
  614.  
  615.    }
  616.  
  617.    public OCdgvtis getOCdgvtis() {
  618.       return this.dgrid_id0;
  619.    }
  620.  
  621.    public boolean mouseDown(Event var1, int var2, int var3) {
  622.       if (this.iface.getCursorType() == 9 || this.iface.getCursorType() == 10) {
  623.          this.downy = var3;
  624.          this.downx = var2;
  625.          this.reSizeDesignGrid = true;
  626.       }
  627.  
  628.       return true;
  629.    }
  630.  
  631.    public void drawArea() {
  632.       int var1 = 0;
  633.       int var2 = 0;
  634.       this.off = ((Component)this).createImage(this.field_0.width, this.field_0.height);
  635.       this.g_off = this.off.getGraphics();
  636.       this.g_off.setFont(this.font);
  637.       this.field_1 = ((Component)this).getFontMetrics(this.font);
  638.       if (ACutilb.hArranged) {
  639.          this.field_9 += 5;
  640.       } else {
  641.          this.field_8 += 5;
  642.       }
  643.  
  644.       this.g_off.setColor(Color.black);
  645.       this.g_off.drawRect(this.field_6 - 1, this.field_7 - 1, this.field_8 + 1, this.field_9 + 1);
  646.       this.g_off.drawRect(this.dgx - 1, this.dgy - 1, this.dgw + 1, this.dgh + 1);
  647.       this.g_off.drawRect(this.sgx - 1, this.sgy - 1, this.sgw + 1, this.sgh + 1);
  648.       var1 = this.field_1.stringWidth("Specific Properties");
  649.       var2 = this.sgx + 8;
  650.       this.g_off.drawString("Specific Properties", var2 - 1, this.sgy - this.field_1.getDescent() - 2);
  651.       var1 = this.field_1.stringWidth("Global / Default Properties");
  652.       var2 = this.dgx - 1 + 8;
  653.       this.g_off.drawString("Global / Default Properties", var2, this.dgy - this.field_1.getDescent() - 2);
  654.       ACutil var4 = new ACutil();
  655.       Image var3;
  656.       if ((var3 = var4.getImage("acimg/gold_arrow.gif")) != null) {
  657.          this.g_off.drawImage(var3, this.dgx, this.dgy - 12, this);
  658.          this.g_off.drawImage(var3, this.sgx, this.sgy - 12, this);
  659.       } else {
  660.          this.g_off.setColor(new Color(51, 51, 51));
  661.          this.g_off.fillRect(this.dgx, this.dgy - 12, 7, 7);
  662.          this.g_off.fillRect(this.sgx, this.sgy - 12, 7, 7);
  663.       }
  664.  
  665.       this.g_off.setColor(Color.gray);
  666.       this.g_off.drawRect(this.field_6 - 2, this.field_7 - 2, this.field_8 + 3, this.field_9 + 3);
  667.       this.g_off.drawRect(this.dgx - 2, this.dgy - 2, this.dgw + 2, this.dgh + 2);
  668.       this.g_off.drawRect(this.sgx - 2, this.sgy - 2, this.sgw + 2, this.sgh + 2);
  669.       this.g_off.drawRect(this.field_2 - 1, this.field_3 - 1, this.field_4 + 1, this.field_5 + 1);
  670.       this.g_off.setColor(Color.lightGray);
  671.       this.g_off.drawLine(this.field_6, this.field_7 + this.field_9, this.field_6 + this.field_8, this.field_7 + this.field_9);
  672.       this.g_off.drawLine(this.field_6 + this.field_8, this.field_7, this.field_6 + this.field_8, this.field_7 + this.field_9);
  673.       this.g_off.drawLine(this.dgx, this.dgy + this.dgh, this.dgx + this.dgw, this.dgy + this.dgh);
  674.       this.g_off.drawLine(this.dgx + this.dgw, this.dgy, this.dgx + this.dgw, this.dgy + this.dgh);
  675.       this.g_off.drawLine(this.sgx, this.sgy + this.sgh, this.sgx + this.sgw, this.sgy + this.sgh);
  676.       this.g_off.drawLine(this.sgx + this.sgw, this.sgy, this.sgx + this.sgw, this.sgy + this.sgh);
  677.       this.g_off.setColor(Color.white);
  678.       this.g_off.drawLine(this.field_6 - 1, this.field_7 + this.field_9 + 1, this.field_6 + this.field_8 + 1, this.field_7 + this.field_9 + 1);
  679.       this.g_off.drawLine(this.field_6 + this.field_8 + 1, this.field_7 - 1, this.field_6 + this.field_8 + 1, this.field_7 + this.field_9 + 1);
  680.       this.g_off.drawLine(this.dgx - 1, this.dgy + this.dgh + 1, this.dgx + this.dgw + 1, this.dgy + this.dgh + 1);
  681.       this.g_off.drawLine(this.dgx + this.dgw + 1, this.dgy - 1, this.dgx + this.dgw + 1, this.dgy + this.dgh + 1);
  682.       this.g_off.drawLine(this.sgx - 1, this.sgy + this.sgh + 1, this.sgx + this.sgw + 1, this.sgy + this.sgh + 1);
  683.       this.g_off.drawLine(this.sgx + this.sgw + 1, this.sgy - 1, this.sgx + this.sgw + 1, this.sgy + this.sgh + 1);
  684.       this.g_off.drawLine(this.field_2 - 1, this.field_3 + this.field_5, this.field_2 + this.field_4, this.field_3 + this.field_5);
  685.       this.g_off.drawLine(this.field_2 + this.field_4, this.field_3 - 1, this.field_2 + this.field_4, this.field_3 + this.field_5);
  686.       if (ACutilb.hArranged) {
  687.          this.g_off.setColor(Color.lightGray);
  688.          this.g_off.drawLine(this.field_6, this.field_7 + this.field_9 - 5, this.field_6 + this.field_8, this.field_7 + this.field_9 - 5);
  689.          this.g_off.setColor(Color.white);
  690.          this.g_off.drawLine(this.field_6, this.field_7 + this.field_9 - 4, this.field_6 + this.field_8, this.field_7 + this.field_9 - 4);
  691.          this.g_off.setColor(Color.gray);
  692.          this.g_off.drawLine(this.field_6, this.field_7 + this.field_9 - 1, this.field_6 + this.field_8, this.field_7 + this.field_9 - 1);
  693.          this.g_off.setColor(Color.black);
  694.          this.g_off.drawLine(this.field_6, this.field_7 + this.field_9, this.field_6 + this.field_8, this.field_7 + this.field_9);
  695.          this.field_9 -= 5;
  696.       } else {
  697.          this.field_8 -= 5;
  698.          this.g_off.setColor(Color.lightGray);
  699.          this.g_off.drawLine(this.field_6 + this.field_8, this.field_7, this.field_6 + this.field_8, this.field_7 + this.field_9);
  700.          this.g_off.setColor(Color.white);
  701.          this.g_off.drawLine(this.field_6 + this.field_8 + 1, this.field_7, this.field_6 + this.field_8 + 1, this.field_7 + this.field_9);
  702.          this.g_off.setColor(Color.gray);
  703.          this.g_off.drawLine(this.field_6 + this.field_8 + 4, this.field_7, this.field_6 + this.field_8 + 4, this.field_7 + this.field_9);
  704.          this.g_off.setColor(Color.black);
  705.          this.g_off.drawLine(this.field_6 + this.field_8 + 5, this.field_7, this.field_6 + this.field_8 + 5, this.field_7 + this.field_9);
  706.       }
  707.    }
  708.  
  709.    public Dimension getMinimumSize() {
  710.       return new Dimension(50, 50);
  711.    }
  712.  
  713.    public Dimension getPreferredSize() {
  714.       return new Dimension(50, 50);
  715.    }
  716.  
  717.    private void navJobs() {
  718.       this.specnav.setRecInfo(this.iface.appinfo.cur_spec_index + 1, this.iface.appinfo.maxindex + 1);
  719.       if (this.iface.subDialog != null) {
  720.          if (this.iface.subDialog.isAlive) {
  721.             this.iface.subDialog.imlpan.goToNewSpecRecord();
  722.          }
  723.  
  724.       }
  725.    }
  726.  
  727.    public boolean handleEvent(Event var1) {
  728.       if (var1.id == 951) {
  729.          int var11 = Integer.parseInt((String)var1.arg);
  730.          int var13 = 0;
  731.          if (var11 == 0) {
  732.             var13 = this.iface.appinfo.deleteSpecParam();
  733.             this.iface.loadSpecFields(var13);
  734.             this.navJobs();
  735.             this.updateDesign();
  736.             return true;
  737.          } else if (var11 == 1) {
  738.             this.iface.updateSpecFields();
  739.             var13 = this.iface.appinfo.insertSpecParam();
  740.             this.iface.loadSpecFields(var13);
  741.             this.updateDesign();
  742.             this.navJobs();
  743.             return true;
  744.          } else if (var11 == 2) {
  745.             this.iface.updateSpecFields();
  746.             var13 = this.iface.appinfo.goToNewSpecParam();
  747.             this.iface.loadSpecFields(var13);
  748.             this.updateDesign();
  749.             this.navJobs();
  750.             return true;
  751.          } else if (var11 == 3) {
  752.             if (this.iface.appinfo.cur_spec_index == 0) {
  753.                return true;
  754.             } else {
  755.                this.iface.updateSpecFields();
  756.                var13 = this.iface.appinfo.goToFirstSpecParam();
  757.                this.iface.loadSpecFields(var13);
  758.                this.checkForUpDate();
  759.                this.navJobs();
  760.                return true;
  761.             }
  762.          } else if (var11 == 4) {
  763.             if (this.iface.appinfo.cur_spec_index == 0) {
  764.                return true;
  765.             } else {
  766.                this.iface.updateSpecFields();
  767.                var13 = this.iface.appinfo.goToPrevSpecParam();
  768.                this.iface.loadSpecFields(var13);
  769.                this.checkForUpDate();
  770.                this.navJobs();
  771.                return true;
  772.             }
  773.          } else if (var11 == 5) {
  774.             if (this.iface.appinfo.cur_spec_index == this.iface.appinfo.maxindex) {
  775.                return true;
  776.             } else {
  777.                this.iface.updateSpecFields();
  778.                var13 = this.iface.appinfo.goToNextSpecParam();
  779.                this.iface.loadSpecFields(var13);
  780.                this.checkForUpDate();
  781.                this.navJobs();
  782.                return true;
  783.             }
  784.          } else if (var11 == 6) {
  785.             if (this.iface.appinfo.cur_spec_index == this.iface.appinfo.maxindex) {
  786.                return true;
  787.             } else {
  788.                this.iface.updateSpecFields();
  789.                var13 = this.iface.appinfo.goToLastSpecParam();
  790.                this.iface.loadSpecFields(var13);
  791.                this.checkForUpDate();
  792.                this.navJobs();
  793.                return true;
  794.             }
  795.          } else {
  796.             return true;
  797.          }
  798.       } else {
  799.          if (var1.id == 1001) {
  800.             String var2 = (String)var1.arg;
  801.             int var3 = 0;
  802.             if (var2.equals("Add Rollover Image")) {
  803.                if (this.design_id == 2 && this.dgrid_id2.simg_status[this.iface.appinfo.cur_spec_index]) {
  804.                   this.iface.updateSpecFields();
  805.                   var3 = this.iface.appinfo.goToNewSpecParam();
  806.                   this.iface.loadSpecFields(var3);
  807.                   this.updateDesign();
  808.                   this.navJobs();
  809.                }
  810.  
  811.                this.specgrid.activateButton(0, 0);
  812.                return true;
  813.             }
  814.  
  815.             if (var2.equals("Change Rollover Image")) {
  816.                this.specgrid.activateButton(0, 0);
  817.                return true;
  818.             }
  819.  
  820.             if (var2.equals("Change Map Image")) {
  821.                this.defgrid.activateButton(0, 0);
  822.                return true;
  823.             }
  824.  
  825.             if (var2.equals("Add / Edit Sub Menus")) {
  826.                if (this.iface.subDialog != null && this.iface.subDialog.isAlive) {
  827.                   this.iface.subDialog.requestFocus();
  828.                } else {
  829.                   this.specgrid.activateButton(4, 4);
  830.                }
  831.  
  832.                return true;
  833.             }
  834.  
  835.             if (var2.equals("Text Color")) {
  836.                this.specgrid.activateButton(4, 4);
  837.                return true;
  838.             }
  839.  
  840.             if (var2.equals("Font")) {
  841.                this.specgrid.activateButton(7, 7);
  842.                return true;
  843.             }
  844.  
  845.             if (var2.equals("Scroll BG Color")) {
  846.                this.defgrid.activateButton(2, 2);
  847.                return true;
  848.             }
  849.  
  850.             if (var2.equals("Page BG Color")) {
  851.                new OCColor(this.iface, this.getDesignArea());
  852.                return true;
  853.             }
  854.  
  855.             if (var2.equals("Edit Text")) {
  856.                if (this.iface.primeclass.equals("dvs")) {
  857.                   this.iface.ipan.specgrid.activateButton(0, 0);
  858.                } else if (this.iface.primeclass.equals("dnm") && this.iface.dgrid_id == 2) {
  859.                   int var24 = this.dgrid_id2.eventsubid;
  860.                   String var26 = this.dgrid_id2.subs[var24].branchid;
  861.                   int var28 = this.dgrid_id2.clickedIndex;
  862.                   if (this.iface.subDialog == null || !this.iface.subDialog.isAlive) {
  863.                      String[] var29 = this.iface.appinfo.getSpecMLValues().valueAt(var26 + "-" + var28);
  864.                      OCRunWindow var8 = new OCRunWindow();
  865.                      var8.setupOCTZoom1(var29[0], this.iface.appinfo, 2, 0, var26 + "-" + var28);
  866.                      var8.launchOCTZoom1();
  867.                      return true;
  868.                   }
  869.  
  870.                   this.iface.subDialog.imlpan.goToNewSpecificFromDesignGrid(var24 + 1, var26, var28);
  871.                   this.iface.subDialog.specmlgrid.activateButton(0, 0);
  872.                }
  873.  
  874.                return true;
  875.             }
  876.  
  877.             if (var2.equals("Edit / Add Icon")) {
  878.                if (this.iface.primeclass.equals("dvs")) {
  879.                   this.iface.ipan.specgrid.activateButton(1, 1);
  880.                } else if (this.iface.primeclass.equals("dnm") && this.iface.dgrid_id == 2) {
  881.                   int var23 = this.dgrid_id2.eventsubid;
  882.                   String var25 = this.dgrid_id2.subs[var23].branchid;
  883.                   int var27 = this.dgrid_id2.clickedIndex;
  884.                   if (this.iface.subDialog == null || !this.iface.subDialog.isAlive) {
  885.                      this.iface.appinfo.getSpecMLValues().valueAt(var25 + "-" + var27);
  886.                      if (this.iface.icopick != null) {
  887.                         this.iface.icopick.dispose();
  888.                      }
  889.  
  890.                      this.iface.icopick = new OCicop(this.iface.appinfo, -2, false, 151, 1, var25 + "-" + var27);
  891.                      this.iface.icopick.show();
  892.                      return true;
  893.                   }
  894.  
  895.                   this.iface.subDialog.imlpan.goToNewSpecificFromDesignGrid(var23 + 1, var25, var27);
  896.                   this.iface.subDialog.specmlgrid.activateButton(1, 1);
  897.                }
  898.  
  899.                return true;
  900.             }
  901.  
  902.             if (var2.equals("Edit Sub Menu")) {
  903.                int var4 = this.dgrid_id2.eventsubid;
  904.                String var5 = this.dgrid_id2.subs[var4].branchid;
  905.                Event var6 = new Event(this, 960, this);
  906.                var6.id = 9940;
  907.                String[] var7 = new String[]{(new Integer(var4 + 1)).toString(), var5};
  908.                var6.arg = var7;
  909.                super.postEvent(var6);
  910.             } else if (var2.equals("Background Color")) {
  911.                new OCColor(this.iface, this.getDesignArea());
  912.             } else if (var2.equals("Add Item")) {
  913.                if (this.iface.primeclass.equals("dvs")) {
  914.                   Event var21 = new Event(this, 900, this);
  915.                   var21.id = 951;
  916.                   var21.arg = (new Integer(2)).toString();
  917.                   this.handleEvent(var21);
  918.                } else if (this.iface.primeclass.equals("dnm") && this.iface.dgrid_id == 2) {
  919.                   this.editMLSFromDesignGrid(0);
  920.                   return true;
  921.                }
  922.             } else if (var2.equals("Insert Item")) {
  923.                if (this.iface.primeclass.equals("dvs")) {
  924.                   Event var22 = new Event(this, 900, this);
  925.                   var22.id = 951;
  926.                   var22.arg = (new Integer(1)).toString();
  927.                   this.handleEvent(var22);
  928.                } else if (this.iface.primeclass.equals("dnm") && this.iface.dgrid_id == 2) {
  929.                   this.editMLSFromDesignGrid(2);
  930.                   return true;
  931.                }
  932.             } else if (var2.equals("Add Sub Menu") && this.iface.dgrid_id == 2) {
  933.                this.editMLSFromDesignGrid(1);
  934.                return true;
  935.             }
  936.          }
  937.  
  938.          if (var1.id == 9202) {
  939.             int var9 = 0;
  940.             this.iface.updateSpecFields();
  941.             var9 = this.iface.appinfo.goToSpecParam(new Integer(var1.arg.toString()));
  942.             this.iface.loadSpecFields(var9);
  943.             if (this.iface.dgrid_id == 1) {
  944.                this.updateDesign();
  945.             }
  946.  
  947.             if (this.iface.dgrid_id == 3) {
  948.                this.dgrid_id3.setPointer(var9);
  949.             }
  950.  
  951.             if (this.iface.dgrid_id == 0) {
  952.                this.dgrid_id0.setPointer(var9);
  953.             }
  954.  
  955.             if (this.iface.dgrid_id == 10) {
  956.                this.dgrid_id10.setPointer(var9);
  957.             }
  958.  
  959.             this.navJobs();
  960.             return true;
  961.          } else {
  962.             return super.handleEvent(var1);
  963.          }
  964.       }
  965.    }
  966.  
  967.    private void editMLSFromDesignGrid(int var1) {
  968.       int var2 = 0;
  969.       int var3 = this.dgrid_id2.eventsubid;
  970.       String var4 = this.dgrid_id2.subs[var3].branchid;
  971.       int var5 = this.dgrid_id2.clickedIndex;
  972.       if (this.iface.subDialog != null && this.iface.subDialog.isAlive) {
  973.          this.iface.subDialog.imlpan.goToNewSpecificFromDesignGrid(var3 + 1, var4, var5);
  974.          if (var1 == 0 || var1 == 2) {
  975.             if (var1 == 0) {
  976.                var2 = this.iface.appinfo.goToNewSpecMLParam();
  977.             } else if (var1 == 2) {
  978.                var2 = this.iface.appinfo.insertSpecMLParam();
  979.             }
  980.  
  981.             this.iface.subDialog.loadSpecMLFields();
  982.             this.iface.subDialog.imlpan.updateDesign();
  983.             this.iface.subDialog.imlpan.specmlnav.setRecInfo(var2 + 1, this.iface.appinfo.max_tree_index + 1);
  984.             this.iface.subDialog.imlpan.updateDesignPointer(var2);
  985.             this.iface.subDialog.specmlgrid.activateButton(0, 0);
  986.             ACutila.iface.ipan.updateDesignOnly(true);
  987.             return;
  988.          }
  989.  
  990.          if (var1 == 1) {
  991.             this.iface.appinfo.goToNextSpecMLLevel();
  992.             this.iface.appinfo.goToBranch();
  993.             this.iface.appinfo.checkLevel();
  994.             this.iface.subDialog.loadSpecMLFields();
  995.             this.iface.subDialog.loadBranchFields();
  996.             this.iface.subDialog.imlpan.updateDesign();
  997.             this.iface.subDialog.imlpan.specmlnav.setRecInfo(this.iface.appinfo.cur_tree_index + 1, this.iface.appinfo.max_tree_index + 1);
  998.             this.iface.subDialog.imlpan.levnav.setRecInfo(this.iface.appinfo.cur_tree_level, this.iface.appinfo.max_tree_level);
  999.             this.iface.subDialog.imlpan.updateDesignPointer(this.iface.appinfo.cur_tree_index);
  1000.             ACutila.iface.ipan.updateDesignOnly(false);
  1001.             if (this.iface.dgrid_id == 2) {
  1002.                this.iface.ipan.dgrid_id2.subs[var3].curHL = var5;
  1003.                this.iface.ipan.dgrid_id2.checkClicked_SubItem(var3, true);
  1004.             }
  1005.  
  1006.             this.updateDGScrollBars();
  1007.             return;
  1008.          }
  1009.       } else {
  1010.          this.iface.appinfo.goToSpecMLLevel(var3 + 1, var4, var5);
  1011.          if (var1 == 0 || var1 == 2) {
  1012.             if (var1 == 0) {
  1013.                var2 = this.iface.appinfo.goToNewSpecMLParam();
  1014.             } else if (var1 == 2) {
  1015.                var2 = this.iface.appinfo.insertSpecMLParam();
  1016.             }
  1017.  
  1018.             String[] var6 = this.iface.appinfo.getSpecMLValues().valueAt(var4 + "-" + var2);
  1019.             ACutila.iface.ipan.updateDesignOnly(true);
  1020.             OCRunWindow var7 = new OCRunWindow();
  1021.             var7.setupOCTZoom1(var6[0], this.iface.appinfo, 2, 0, var4 + "-" + var2);
  1022.             var7.launchOCTZoom1();
  1023.             return;
  1024.          }
  1025.  
  1026.          if (var1 == 1) {
  1027.             this.iface.appinfo.goToNextSpecMLLevel();
  1028.             this.iface.appinfo.goToBranch();
  1029.             this.iface.appinfo.checkLevel();
  1030.             if (this.iface.dgrid_id == 2) {
  1031.                this.updateDesignOnly(false);
  1032.                this.dgrid_id2.subs[var3].curHL = var5;
  1033.                this.dgrid_id2.checkClicked_SubItem(var3, true);
  1034.                this.updateDGScrollBars();
  1035.                return;
  1036.             }
  1037.  
  1038.             this.updateDesignOnly(true);
  1039.          }
  1040.       }
  1041.  
  1042.    }
  1043.  
  1044.    public boolean mouseDrag(Event var1, int var2, int var3) {
  1045.       return true;
  1046.    }
  1047.  
  1048.    public boolean mouseMove(Event var1, int var2, int var3) {
  1049.       if (ACutilb.hArranged) {
  1050.          if (var3 > this.field_7 + this.field_9 && var3 < this.field_7 + this.field_9 + 7) {
  1051.             this.iface.setCursor(9);
  1052.          } else {
  1053.             this.iface.setCursor(0);
  1054.          }
  1055.       } else if (var2 > this.field_6 + this.field_8 && var2 < this.field_6 + this.field_8 + 7) {
  1056.          this.iface.setCursor(10);
  1057.       } else {
  1058.          this.iface.setCursor(0);
  1059.       }
  1060.  
  1061.       return true;
  1062.    }
  1063. }
  1064.