Przeglądaj źródła

cleanup of some legacy bullcrap

LH 10 lat temu
rodzic
commit
85cfcb473e
29 zmienionych plików z 1 dodań i 2426 usunięć
  1. 0 14
      DefaultUiFile/build.gradle
  2. 0 28
      DefaultUiFile/src/main/java/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.java
  3. 0 69
      DefaultUiFile/src/main/java/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.yml
  4. 0 64
      DefaultUiFile/src/main/resources/UIFile.yml
  5. BIN
      DefaultUiFile/src/main/resources/rsrc/FontPage1.png
  6. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-FIle_TabWritten.png
  7. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-BTN-Blue.png
  8. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-BTN-Red.png
  9. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-Main.png
  10. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-SLDR.png
  11. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-FullTrans.png
  12. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-OVL-TxA.png
  13. BIN
      DefaultUiFile/src/main/resources/rsrc/GUI-File-mainMEnue.png
  14. BIN
      DefaultUiFile/src/main/resources/rsrc/icon.png
  15. 0 1
      IZSetup/src/main/java/de/nplusc/izc/InstallPak/CreateSampleFile.java
  16. 0 3
      IZSetup/src/main/java/de/nplusc/izc/InstallPak/makedist/MakeDist.java
  17. 0 3
      ToolKit/build.gradle
  18. 0 399
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/ExtendedJPanel.java
  19. 0 113
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/FontEngine.java
  20. 0 56
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/GUISwitch.java
  21. 0 98
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/GuiFileManager.java
  22. 0 67
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/TGUI.java
  23. 0 59
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/TextShowing.form
  24. 0 86
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/TextShowing.java
  25. 0 38
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/cmdGUI.form
  26. 0 1222
      ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/cmdGUI.java
  27. 0 102
      ToolKit/src/main/java/de/nplusc/izc/tools/baseTools/Tools.java
  28. 0 3
      WPCMGr/src/main/java/de/nplusc/izc/Utilities/WPCMgr/WPCUtils.java
  29. 1 1
      settings.gradle

+ 0 - 14
DefaultUiFile/build.gradle

@@ -1,14 +0,0 @@
-defaultTasks 'distZip'
-
-apply plugin: 'java'
-
-
-task distZip(dependsOn: 'jar') {
-	//NO-OPtask als redirect
-}
-
-distZip.inputs.file file(tasks.jar.archivePath)
-distZip.outputs.file file(tasks.jar.archivePath)
-repositories{
-	jcenter()
-}

+ 0 - 28
DefaultUiFile/src/main/java/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.java

@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package de.nplusc.izc.tools.UIToolz.rsrc;
-/**
- *
- * @author LH
- */
-public class UIFile
-{
-    private UIFile()
-    {
-        //used to get it as a library
-    }
-}

+ 0 - 69
DefaultUiFile/src/main/java/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.yml

@@ -1,69 +0,0 @@
-#/*
-# * Copyright (C) 2015 iZc
-# *
-# * This program is free software: you can redistribute it and/or modify
-# * it under the terms of the GNU General Public License as published by
-# * the Free Software Foundation, either version 3 of the License, or
-# * (at your option) any later version.
-# *
-# * This program is distributed in the hope that it will be useful,
-# * but WITHOUT ANY WARRANTY; without even the implied warranty of
-# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# * GNU General Public License for more details.
-# *
-# * You should have received a copy of the GNU General Public License
-# * along with this program.  If not, see <http://www.gnu.org/licenses/>.
-# */
-
-
-
-FontColor: 
-  R: I|170
-  G: I|220
-  B: I|240
-  A: I|200
-Font:
-  FontName: S|Lucida Console
-  Bold: B|Yes
-  Size: I|15
-tabBar:
-  Gfx: U|rsrc/GUI-FIle_TabWritten.png
-  BarBasePoint: P|0|0
-  BarWidth: I|1000
-  BarHeight: I|20
-  TabWidth: I|200
-  TabHeight: I|20
-  TabBasePoint: P|50|0
-MainCfg:
-  WindowBasePoint: P|200|120
-  LinesBasePoint: P|5|25
-  LineWidth: I|930
-  LineHeight: I|14
-  LineCount: I|25
-  ScrollBarHeight: Remark|Determined by LineCount*LineSize
-  ScrollBarWidth: I|15
-  ScrollBarBasePoint: P|935|25
-  InputLineHeight: I|17
-  InputLineWidth: I|860 
-  InputLineBasePoint: P|54|412
-  ICO: U|rsrc/icon.png
-  GFX: U|rsrc/GUI-File-CMD-IP-Main.png
-  FullTrans: U|rsrc/GUI-File-FullTrans.png
-  WindowSizeX: I|960
-  WindowSizeY: I|480
-okButton:
-  BP1: P|27|16
-  BP2: P|73|16
-  BP3: P|85|1
-  BP4: P|152|1
-  BP5: P|155|8
-  BP6: P|209|7
-  BP7: P|229|27
-  BP8: P|168|47
-  BP9: P|12|47
-  BP10: P|6|36
-  ButtonGlowGFX: U|rsrc/GUI-File-CMD-IP-BTN-Red.png
-  ButtonDfltGFX: U|rsrc/GUI-File-CMD-IP-BTN-Blue.png
-  ButtonAreaHeight: I|48
-  ButtonAreaWidth: I|233
-  ButtonAreaBasePoint: P|630|432

+ 0 - 64
DefaultUiFile/src/main/resources/UIFile.yml

@@ -1,64 +0,0 @@
-#/*
-# * Copyright (C) 2015 iZc
-# *
-# * This program is free software: you can redistribute it and/or modify
-# * it under the terms of the GNU General Public License as published by
-# * the Free Software Foundation, either version 3 of the License, or
-# * (at your option) any later version.
-# *
-# * This program is distributed in the hope that it will be useful,
-# * but WITHOUT ANY WARRANTY; without even the implied warranty of
-# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# * GNU General Public License for more details.
-# *
-# * You should have received a copy of the GNU General Public License
-# * along with this program.  If not, see <http://www.gnu.org/licenses/>.
-# */
-
-FontColor: 
-  R: I|170
-  G: I|220
-  B: I|240
-  A: I|200
-Font:
-  FontName: S|Lucida Console
-  Bold: B|Yes
-  Size: I|15
-tabBar:
-  Gfx: U|rsrc/GUI-FIle_TabWritten.png
-  BarBasePoint: 'P|0|0'
-  BarWidth: I|1000
-  BarHeight: I|20
-  TabWidth: I|200
-  TabHeight: I|20
-  TabBasePoint: P|50|0
-MainCfg:
-  WindowBasePoint: P|200|120
-  LinesBasePoint: P|5|25
-  LineWidth: I|930
-  LineHeight: I|14
-  LineCount: I|25
-  ScrollBarHeight: Remark|Determined by LineCount*LineSize
-  ScrollBarWidth: I|15
-  ScrollBarBasePoint: P|935|25
-  InputLineHeight: I|17
-  InputLineWidth: I|860 
-  InputLineBasePoint: P|54|412#
-  ICO: U|rsrc/icon.png
-  GFX: U|rsrc/GUI-File-CMD-IP-Main.png
-okButton:
-  BP1: P|27|16
-  BP2: P|73|16
-  BP3: P|85|1
-  BP4: P|152|1
-  BP5: P|155|8
-  BP6: P|209|7
-  BP7: P|229|27
-  BP8: P|168|47
-  BP9: P|12|47
-  BP10: P|6|36
-  ButtonGlowGFX: U|rsrc/GUI-File-CMD-IP-BTN-Red.png,
-  ButtonDfltGFX: U|rsrc/GUI-File-CMD-IP-BTN-Blue.png
-  ButtonAreaHeight: I|48
-  ButtonAreaWidth: I|233
-  ButtonAreaPos: P|630|432

BIN
DefaultUiFile/src/main/resources/rsrc/FontPage1.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-FIle_TabWritten.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-BTN-Blue.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-BTN-Red.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-Main.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-CMD-IP-SLDR.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-FullTrans.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-OVL-TxA.png


BIN
DefaultUiFile/src/main/resources/rsrc/GUI-File-mainMEnue.png


BIN
DefaultUiFile/src/main/resources/rsrc/icon.png


+ 0 - 1
IZSetup/src/main/java/de/nplusc/izc/InstallPak/CreateSampleFile.java

@@ -17,7 +17,6 @@
 package de.nplusc.izc.InstallPak;
 
 import de.nplusc.izc.tools.IOtools.FileTK;
-import java.io.FileInputStream;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.util.ArrayList;

+ 0 - 3
IZSetup/src/main/java/de/nplusc/izc/InstallPak/makedist/MakeDist.java

@@ -18,12 +18,9 @@
 package de.nplusc.izc.InstallPak.makedist;
 
 import de.nplusc.izc.tools.IOtools.FileTK;
-import de.nplusc.izc.tools.IOtools.ZipFileHandler;
 import de.nplusc.izc.tools.IOtools.ZipUtils;
 import de.nplusc.izc.tools.IOtools.iZformats.IZpackage;
 import java.io.File;
-import java.io.IOException;
-import org.apache.commons.io.FileUtils;
 
 /**
  *

+ 0 - 3
ToolKit/build.gradle

@@ -31,8 +31,5 @@ dependencies{
 	compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.1'
 	compile group: 'org.apache.logging.log4j', name: 'log4j-iostreams', version: '2.1'
 	compile 'mysql:mysql-connector-java:5.1.6'
-		compile(project(':DefaultUIFile')) {
-        transitive = false
-    }
 
 }

+ 0 - 399
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/ExtendedJPanel.java

@@ -1,399 +0,0 @@
-package de.nplusc.izc.tools.UiToolz;
-
-
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-import java.awt.AlphaComposite;
-import java.awt.Graphics;
-import java.awt.Graphics2D;
-import java.awt.Image;
-import java.awt.image.BufferedImage;
-import java.io.File;
-import java.io.IOException;
-import javax.imageio.ImageIO;
-import javax.swing.ImageIcon;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-
-
-/**
- *
- * @author LH
- */
-public class ExtendedJPanel extends javax.swing.JPanel
-{
-    private static final Logger l = LogManager.getLogger();
-    
-    //UIFile.class.getResource("rsrc/
-    public Graphics2D Overlay = null;
-    public BufferedImage iOVL = null;
-    private boolean ctrAreaEnab=false;
-    private int addModeSel;
-    public static final int MODE_GUI=0;
-    public static final int MODE_CMD=1;
-    private boolean overridelowerGFX = false;
-    public boolean firstDraw = true;
-    public TGUI gui;
-    private UIFileAccess guifile;
-    private boolean useUIF = false;
-    public ExtendedJPanel()
-    {
-        guifile=null;
-        gui=null;
-        addModeSel=0;
-    }
-    public ExtendedJPanel(TGUI g)
-    {
-        guifile=null;
-        gui = g;
-        addModeSel=0;
-    }
-    public ExtendedJPanel(int addMode)
-    {
-        guifile=null;
-        gui=null;
-        addModeSel=addMode;
-    }
-    public ExtendedJPanel(UIFileAccess u)
-    {
-        guifile=u;
-        gui=null;
-        addModeSel=0;
-        useUIF = true;
-    }
-    public ExtendedJPanel(TGUI g,UIFileAccess u)
-    {
-        guifile=u;
-        gui = g;
-        addModeSel=0;
-        useUIF = true;
-    }
-    public ExtendedJPanel(int addMode,UIFileAccess u)
-    {
-        guifile=u;
-        gui=null;
-        addModeSel=addMode;
-        useUIF = true;
-    }
-    /*
-     * @SuppressWarnings("CallToThreadDumpStack")
-    public void initOVL()
-    {
-        initOVL(null);
-    }Ü*/
-    /**
-     * initializes the overlay to write on with bitmap-fonts
-     */
-    
-    @SuppressWarnings("CallToThreadDumpStack")
-    public void initOVL()
-    {
-        if(!useUIF)
-        {
-            try
-            {
-                iOVL = ImageIO.read(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-FullTrans.png"));
-                if(ctrAreaEnab)
-                {
-                    iOVL = ImageIO.read(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-OVL-TxA.png"));
-                }
-
-                //ctne = true;
-            }
-            catch (IOException ex)
-            {
-                l.trace("LickMe");
-                ex.printStackTrace();
-            }
-            if(addModeSel==0)
-            {
-                gui.initTexts(/*false*/);//boolean egal da teil von Hack//voided
-            }    //static acces hack//VOID
-        }
-        else
-        {
-            if(guifile.zipBased)
-            {
-                try
-                {
-                    String s = guifile.ResourceURLs.get("FullTrans");
-                    iOVL = ImageIO.read(guifile.loadFileFromZip(s));
-                    if(ctrAreaEnab)
-                    {
-                        throw new UnsupportedOperationException("not implemented yet");
-                        //iOVL = ImageIO.read(UIFile.class.getResource("rsrc/GUI-File-OVL-TxA.png"));
-                    }
-
-                    //ctne = true;
-                }
-                catch (IOException ex)
-                {
-                    l.trace("LickMe");
-                    ex.printStackTrace();
-                }
-                if(addModeSel==0)
-                {
-                    gui.initTexts(/*false*/);//boolean egal da teil von Hack//voided
-                }    //static acces hack//VOID
-            }
-            else
-            {
-                try
-                {
-                    iOVL = ImageIO.read(new File(guifile.ResourceURLs.get("FullTrans")));
-                    if(ctrAreaEnab)
-                    {
-                        throw new UnsupportedOperationException("not implemented yet");
-                        //iOVL = ImageIO.read(UIFile.class.getResource("rsrc/GUI-File-OVL-TxA.png"));
-                    }
-
-                    //ctne = true;
-                }
-                catch (IOException ex)
-                {
-                    l.trace("LickMe");
-                    ex.printStackTrace();
-                }
-                if(addModeSel==0)
-                {
-                    gui.initTexts(/*false*/);//boolean egal da teil von Hack//voided
-                }    //static acces hack//VOID
-            }
-        }
-    }
-    
-    /**
-     * Handles the glow of the button in the cmdGUI
-     * @param state Glow or not
-     */
-    
-    public void cmdButtonGlow(boolean state)
-    {
-        if(!useUIF)
-        {
-            if(addModeSel==2)
-            {
-                try
-                {
-                    iOVL = ImageIO.read(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-CMD-IP-BTN-Blue.png"));
-                if(state)
-                    {
-                        iOVL = ImageIO.read(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-CMD-IP-BTN-Red.png"));
-                    }
-                overridelowerGFX=true;
-                //ctne = true;
-                }
-                catch(Exception e)
-                {
-                    e.printStackTrace();
-                }
-            }
-        }
-        else
-        {
-            if(guifile.zipBased)
-            {
-                if(addModeSel==2)
-                {
-                    try
-                    {
-                        iOVL = ImageIO.read(guifile.loadFileFromZip(guifile.ResourceURLs.get("ButtonNormal")));
-                    if(state)
-                        {
-                            iOVL = ImageIO.read(guifile.loadFileFromZip(guifile.ResourceURLs.get("ButtonHovered")));
-                        }
-                    overridelowerGFX=true;
-                    //ctne = true;
-                    }
-                    catch(Exception e)
-                    {
-                        e.printStackTrace();
-                    }
-                }
-            }
-            else
-            {
-                if(addModeSel==2)
-                {
-                    try
-                    {
-                        iOVL = ImageIO.read(new File(guifile.ResourceURLs.get("ButtonDefault")));
-                    if(state)
-                        {
-                            iOVL = ImageIO.read(new File(guifile.ResourceURLs.get("ButtonHovered")));
-                        }
-                    overridelowerGFX=true;
-                    //ctne = true;
-                    }
-                    catch(Exception e)
-                    {
-                        e.printStackTrace();
-                    }
-                }
-            }
-        }
-    }
-    
-    public void highlightButton(int bid)
-    {
-        //TODO make different button variants for ExtendedDesktopMenue
-    }
-    
-    /**
-     * Enables/Disables the field in the middle of the MEnue
-     * @param isEnabled <<
-     */
-    public void setCenterArea(boolean isEnabled)
-    {
-        ctrAreaEnab=isEnabled;
-    }
-
-    /**
-     * Draws a bitmap-font-letter
-     * @param font Which font @see FontEngine.FONT_***
-     * @param letter Number of Letter
-     * @param posX Where
-     * @param posY Where
-     */
-    @SuppressWarnings("static-access")
-    public void setLetter(int[] font,int letter,int posX,int posY)
-    {
-        boolean ctne = false;
-        BufferedImage bI = null;
-        
-        if(iOVL!=null)
-        {
-            Overlay = (Graphics2D) iOVL.getGraphics();
-            writeLetter(Overlay,font,letter,posX,posY);
-           // iOVL = bI;
-        }
-    }
-    
-    @Override
-    @SuppressWarnings("CallToThreadDumpStack")
-    protected synchronized void paintComponent(Graphics g)
-    {
-        try
-        {
-        // GUI.class.getDeclaredMethods()[0].invoke(g, args)//war nen Test//notUSed
-            ((Graphics2D)g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC));
-            //if(!(addModeSel==3))
-            //{ 
-            super.paintComponent(g);
-            //}
-            Image imgi = null;
-            Graphics2D g2d = (Graphics2D) g;
-            if(!useUIF)
-            {
-                imgi = new ImageIcon(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-mainMEnue.png")).getImage();//GUI-MasterFile.png").getImage();  
-                if(addModeSel==1)
-                {
-                    imgi = new ImageIcon(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-CMD-IP-Main.png")).getImage();
-                }
-                if(addModeSel==2)
-                {
-                    imgi = new ImageIcon(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-File-CMD-IP-BTN-Blue.png")).getImage();
-                }
-                if(addModeSel==3)
-                {
-                    imgi = new ImageIcon(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/GUI-FIle_TabWritten.png")).getImage();//GUI-File-FullTrans.png").getImage();
-                }
-            }
-            else
-            {
-
-                if(guifile.zipBased)
-                {
-                    if(addModeSel==1)
-                    {
-                        String s = guifile.ResourceURLs.get("MainWdw");
-                        imgi = ImageIO.read(guifile.loadFileFromZip(s));
-                    }
-                    if(addModeSel==2)
-                    {
-                        imgi = ImageIO.read(guifile.loadFileFromZip(guifile.ResourceURLs.get("ButtonNormal")));
-                    }
-                    if(addModeSel==3)
-                    {
-                        imgi = ImageIO.read(guifile.loadFileFromZip(guifile.ResourceURLs.get("tabbar")));//GUI-File-FullTrans.png").getImage();
-                    }
-                }
-                else
-                {
-                    if(addModeSel==1)
-                    {
-                        imgi = ImageIO.read(new File(guifile.ResourceURLs.get("MainWdw")));
-                    }
-                    if(addModeSel==2)
-                    {
-                        imgi = ImageIO.read(new File(guifile.ResourceURLs.get("ButtonNormal")));
-                    }
-                    if(addModeSel==3)
-                    {
-                        imgi = ImageIO.read(new File(guifile.ResourceURLs.get("tabbar")));
-                    }
-                }
-            }
-            if(firstDraw)
-            {
-
-                //g2d.setPaint(p);
-                //g2d.fillRect(0, 0, getWidth(), getHeight());
-                //imgi.
-                TGUI.Background = imgi;
-
-                g2d.drawImage(imgi, 0, 0, null);
-                if(addModeSel==1)
-                {
-                    //((Graphics2D)g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP));
-                    //g2d.drawImage(imgi, 0, 0, null);
-                    //g2d.drawImage(imgi, 0, 0, null);
-                }
-
-                firstDraw=false;
-            }
-            else
-            {
-                if(!overridelowerGFX)
-                {
-                g2d.drawImage(imgi, 0, 0, null);
-                ((Graphics2D)g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER));
-                }
-                g2d.drawImage(iOVL, 0, 0, null);
-            }
-        }
-        catch(Exception ex)
-        {
-            ex.printStackTrace();
-        }
-    }
-    /**
-     * paints the letter on the OVL
-     * @param g Graphics-Obj
-     * @param font which Font
-     * @param letter which letter
-     * @param posX where-X
-     * @param posY  where-y
-     */
-    
-    private void writeLetter(Graphics g,int[] font,int letter,int posX,int posY)
-    {
-            Image i = FontEngine.getLetter(font,letter);
-            g.drawImage(i,posX,posY,null);
-    }
-}

+ 0 - 113
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/FontEngine.java

@@ -1,113 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package de.nplusc.izc.tools.UiToolz;
-
-
-/**
- *
- * @author LH
- */
-import java.awt.Image;
-import java.awt.image.BufferedImage;
-import java.io.IOException;
-import javax.imageio.ImageIO;
-//dimport javax.swing.ImageIcon;
-public class FontEngine
-{
-    public static final int[] FONT_LAUNCHPAD = new int[]{0,1,1};
-    public static final int[] FONT_SEVENSINS = new int[]{1,1,1};
-    public static final int[] FONT_TIE_WING = new int[]{2,1,1};
-    public static final int[] FONT_TF = new int[]{3,1,1};
-    public static final int[] FONT_TRON = new int[]{4,2,2};
-    public static final int[] FONT_TYPEWRITER = new int[]{6,1,1};
-    public static final int[] FONT_28_DAYS_LATER = new int[]{7,1,1};
-    public static final int[] FONT_ALIEN_ENCOUNTER = new int[]{8,1,1};
-    public static final int[] FONT_AR_DESTINE = new int[]{9,1,1};
-    public static final int[] FONT_SW_GLYPHS = new int[]{10,2,1};
-    public static final int[] FONT_BATMAN_FOREVER = new int[]{12,1,1};
-    public static final int[] FONT_BATTLESTAR = new int[]{13,1,1};
-    public static final int[] FONT_BLADERUNNER = new int[]{14,1,1};
-    public static final int[] FONT_DECEPTICON_GRAFFITTI = new int[]{15,1,1};
-    public static final int[] FONT_DIGITAL_7SEG = new int[]{16,1,1};
-    public static final int[] FONT_ENGLI_BESH = new int[]{17,1,1};
-    public static final int[] FONT_GALACTIC_MINI = new int[]{18,2,1};
-    public static final int[] FONT_INVDUCTION = new int[]{19,2,1};
-    public static final int[] FONT_INVISIBLE_KILLER = new int[]{20,1,1};
-    public static int LETTER_A=1;
-    public static int LETTER_B=2;
-    public static int LETTER_C=3;
-    public static int LETTER_D=4;
-    public static int LETTER_E=5;
-    public static int LETTER_F=6;
-    public static int LETTER_G=7;
-    public static int LETTER_H=8;
-    public static int LETTER_I=9;
-    public static int LETTER_J=10;
-    public static int LETTER_K=11;
-    public static int LETTER_L=12;
-    public static int LETTER_M=13;
-    public static int LETTER_N=14;
-    public static int LETTER_O=15;
-    public static int LETTER_P=16;
-    public static int LETTER_Q=17;
-    public static int LETTER_R=18;
-    public static int LETTER_S=19;
-    public static int LETTER_T=20;
-    public static int LETTER_U=21;
-    public static int LETTER_V=22;
-    public static int LETTER_W=23;
-    public static int LETTER_X=24;
-    public static int LETTER_Y=25;
-    public static int LETTER_Z=26;
-    
-    protected FontEngine()
-    {
-        
-    }
-    
-    
-    //font:{offset,kacheln-x,kacheln-y}//normal={?,1,1}
-    @SuppressWarnings("CallToThreadDumpStack")
-     public static Image getLetter(int[]font,int letter)
-     {
-         boolean load = false;
-         BufferedImage bI = null;
-        try
-        {
-            
-            bI = ImageIO.read(de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class.getResource("rsrc/FontPage1.png"));//new File("C:/users/LH/Desktop/jp/Fontpage1.png"));
-            load=true;
-            //BufferedImage i=new BufferedImage(1366,768, BufferedImage.TYPE_4BYTE_ABGR);
-        }
-        catch (IOException ex)
-        {
-            ex.printStackTrace();
-        }
-        if(load)
-        {
-                                      //HACK da Konstanten ale um eins zu hoch
-            int letterBaseX = letter*40-40;//Grundraster:2Kacheln breit
-            int letterBaseY=(font[0])*20;
-            int sizeX=font[1]*20;
-            int sizeY=font[2]*20;
-            return bI.getSubimage(letterBaseX, letterBaseY, sizeX, sizeY);
-        }
-        return null;
-     }
-
-}

+ 0 - 56
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/GUISwitch.java

@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package de.nplusc.izc.tools.UiToolz;
-
-
-import com.sun.awt.AWTUtilities;
-import java.awt.Container;
-import javax.swing.JFrame;
-
-
-
-/**
- *
- * @author LH
- */
-public class GUISwitch extends JFrame
-{
-    public GUISwitch()
-    {
-        buildGUI();
-        this.setUndecorated(true);
-        AWTUtilities.setWindowOpaque(this, false);
-        this.setVisible(true);
-    }
-    
-    private void buildGUI()
-    {
-        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-        setMinimumSize(new java.awt.Dimension(500, 500));
-        setPreferredSize(new java.awt.Dimension(500,500));
-        Container cp = getContentPane();
-        cp.setLayout(null);
-        
-        
-        
-        
-    }
-    
-    
-    
-}

+ 0 - 98
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/GuiFileManager.java

@@ -1,98 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package de.nplusc.izc.tools.UiToolz;
-
-
-import de.nplusc.izc.tools.IOtools.FileTK;
-import java.io.File;
-import java.net.URISyntaxException;
-import java.util.ArrayList;
-
-/**
- *
- * @author LH
- */
-public class GuiFileManager
-{
-    public final GuiFileManager GFM = new GuiFileManager();
-    private String basePath;
-    private String[] guifiles = new String[]{""};
-    
-    protected GuiFileManager()
-    {
-        try
-        {
-            basePath = cmdGUI.class.getResource("cmdGUI.class").toURI().toString().split("!")[0];
-        }
-        catch (URISyntaxException ex)
-        {
-            ex.printStackTrace();
-            if(true)
-            {
-                throw new UnsupportedOperationException("Base-Path defect");
-            }
-        }
-    }
-    
-    public String[] getGUIFiles()
-    {
-        return guifiles;
-    }
-    
-    
-    
-    public void initManager()
-    {
-        String[] temp = FileTK.walkDirectoryRecursively(basePath+"\\UIFiles");
-        ArrayList<String> t2= new ArrayList<>();
-        for (String fileetr : temp)
-        {
-            if( FileTK.getFileExt(fileetr).equalsIgnoreCase("GUIFile"))
-            {
-                t2.add(fileetr);
-            }
-        }
-        guifiles = t2.toArray(guifiles);
-    }
-    
-    public boolean installGUIFile(String SrcPath)
-    {
-        //TODO: UIFile laden als Test;
-        
-        
-        String data = "";
-        String[] DataA = FileTK.fileload(SrcPath);
-        for (String string : DataA)
-        {
-            data+=string;
-        }
-        
-        String fname = SrcPath.split("\\\\")[SrcPath.split("\\\\").length-1];
-        File tir = new File(basePath+"\\UIFiles");
-        if(tir.exists()&&tir.isDirectory())
-        {
-            FileTK.writeFile(data, tir.toString()+"\\"+fname);
-        }
-        
-        
-        
-        
-        
-        return false;
-    }
-}

+ 0 - 67
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/TGUI.java

@@ -1,67 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package de.nplusc.izc.tools.UiToolz;
-
-import java.awt.*;
-//import javax.swing.ImageIcon;
-
-    /**
- *
- * @author LH
- *
- *
- */
-public abstract class TGUI extends javax.swing.JFrame
-{
-    private static Graphics2D g2dp = null;
-    //public boolean[] tp = new boolean[3];
-    public static TGUI gui;
-    public static Image Background = null;
-    public static Graphics2D cleanEdit = null;
-    private boolean inConst = true;
-    /**
-     * Creates new form GUI
-     */
-    Polygon[] polygons= new Polygon[21];
-    public TGUI(){
-    }
-/*
-    public void initTexts(boolean nullified)//Hack um interne Methode zu schützen//obsolet
-    {
-        initTexts();
-    }*/
-    public abstract void initTexts();
-    /**
-     * This method is called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-    
-
-
-  // public abstract boolean hxdPaint(Graphics g,javax.swing.JPanel pn);
-   // public abstract void writeLetter(Graphics g,int[] font,int letter,int posX,int posY,int lmaa);
-    /*public static void writeLetter(Graphics g,int[] font,int letter,int posX,int posY)
-    {
-    }*/
-    // Variables declaration - do not modify//GEN-BEGIN:variables
-    private javax.swing.JPanel Surface;
-    private javax.swing.JButton jButton1;
-    // End of variables declaration//GEN-END:variables
-}

+ 0 - 59
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/TextShowing.form

@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
-  <Properties>
-    <Property name="defaultCloseOperation" type="int" value="2"/>
-  </Properties>
-  <SyntheticProperties>
-    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
-    <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
-  </SyntheticProperties>
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-  </AuxValues>
-
-  <Layout>
-    <DimensionLayout dim="0">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <Group type="102" alignment="0" attributes="0">
-              <Component id="jScrollPane1" pref="414" max="32767" attributes="0"/>
-              <EmptySpace max="-2" attributes="0"/>
-              <Component id="jScrollBar1" min="-2" pref="19" max="-2" attributes="0"/>
-          </Group>
-      </Group>
-    </DimensionLayout>
-    <DimensionLayout dim="1">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <Component id="jScrollPane1" pref="300" max="32767" attributes="0"/>
-          <Component id="jScrollBar1" alignment="0" max="32767" attributes="0"/>
-      </Group>
-    </DimensionLayout>
-  </Layout>
-  <SubComponents>
-    <Container class="javax.swing.JScrollPane" name="jScrollPane1">
-      <AuxValues>
-        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
-      </AuxValues>
-
-      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
-      <SubComponents>
-        <Component class="javax.swing.JTextArea" name="txaContent">
-          <Properties>
-            <Property name="columns" type="int" value="20"/>
-            <Property name="rows" type="int" value="5"/>
-          </Properties>
-        </Component>
-      </SubComponents>
-    </Container>
-    <Component class="javax.swing.JScrollBar" name="jScrollBar1">
-    </Component>
-  </SubComponents>
-</Form>

+ 0 - 86
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/TextShowing.java

@@ -1,86 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package de.nplusc.izc.tools.UiToolz;
-
-/**
- *
- * @author LH
- */
-public class TextShowing extends javax.swing.JDialog
-{
-
-    /**
-     * Creates new form TextShowing
-     */
-    public TextShowing(java.awt.Frame parent, boolean modal)
-    {
-        super(parent, modal);
-        initComponents();
-    }
-
-    /**
-     * This method is called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-    @SuppressWarnings("unchecked")
-    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-    private void initComponents()
-    {
-
-        jScrollPane1 = new javax.swing.JScrollPane();
-        txaContent = new javax.swing.JTextArea();
-        jScrollBar1 = new javax.swing.JScrollBar();
-
-        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
-
-        txaContent.setColumns(20);
-        txaContent.setRows(5);
-        jScrollPane1.setViewportView(txaContent);
-
-        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
-        getContentPane().setLayout(layout);
-        layout.setHorizontalGroup(
-            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-            .addGroup(layout.createSequentialGroup()
-                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 414, Short.MAX_VALUE)
-                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                .addComponent(jScrollBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
-        );
-        layout.setVerticalGroup(
-            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
-            .addComponent(jScrollBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
-        );
-
-        pack();
-    }// </editor-fold>//GEN-END:initComponents
-
-    public void setText(String txt)
-    {
-        txaContent.setText(txt);
-    }
-    
-    
-    // Variables declaration - do not modify//GEN-BEGIN:variables
-    private javax.swing.JScrollBar jScrollBar1;
-    private javax.swing.JScrollPane jScrollPane1;
-    private javax.swing.JTextArea txaContent;
-    // End of variables declaration//GEN-END:variables
-}

+ 0 - 38
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/cmdGUI.form

@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
-  <Properties>
-    <Property name="defaultCloseOperation" type="int" value="3"/>
-    <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
-      <Dimension value="[960, 480]"/>
-    </Property>
-  </Properties>
-  <SyntheticProperties>
-    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
-    <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
-  </SyntheticProperties>
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-  </AuxValues>
-
-  <Layout>
-    <DimensionLayout dim="0">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <EmptySpace min="0" pref="964" max="32767" attributes="0"/>
-      </Group>
-    </DimensionLayout>
-    <DimensionLayout dim="1">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <EmptySpace min="0" pref="516" max="32767" attributes="0"/>
-      </Group>
-    </DimensionLayout>
-  </Layout>
-</Form>

+ 0 - 1222
ToolKit/src/main/java/de/nplusc/izc/tools/UiToolz/cmdGUI.java

@@ -1,1222 +0,0 @@
-/*
- * Copyright (C) 2015 iZc
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package de.nplusc.izc.tools.UiToolz;
-
-import com.sun.awt.AWTUtilities;
-import de.nplusc.izc.tools.baseTools.RingBuffer;
-import de.nplusc.izc.tools.baseTools.Tools;
-import java.awt.*;
-import java.awt.event.KeyEvent;
-import java.awt.event.MouseMotionAdapter;
-import java.io.*;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import javax.imageio.ImageIO;
-import javax.swing.*;
-import org.apache.commons.exec.*;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-
-
-/**
- *
- * @author LH
- */
-public class cmdGUI extends javax.swing.JFrame
-{
-    
-    private static final Logger l = LogManager.getLogger();
-    //51,0:tab1
-    //availSize=840:20
-    
-    /**
-     * the definition of the Terminal-font
-     */
-    public static final Font term = new Font("Lucida Console",Font.BOLD,15);//Terminal
-    /**
-     * the color of the font
-     */
-    public static final Color FontColor = new Color(170,220,240,200);//Color(255, 0, 0, 128);
-    /**
-     * a constant color for transparent bgs
-     */
-    public static final Color TransBgColor = new Color(0, 0, 0, 0);
-    /**
-     * where the button is
-     */
-    public static final Polygon buttonPos = new Polygon(new int[]{27,73,85,152,155,209,229,168,12,6},new int[]{16,16,1,1,8,7,27,47,47,36},10);
-    /**
-     * instance-id
-     */
-    public final String id;
-    /**
-     * number ofTabs
-     */
-    public static final int tabCount = 4;
-    /**
-     * position of tabs
-     */
-    public static final Rectangle[]  tabs = new Rectangle[]
-    {
-        new Rectangle(50, 0, 200, 20), //0
-        new Rectangle(250, 0, 200, 20),//1
-        new Rectangle(450, 0, 200, 20),//2
-        new Rectangle(650, 0, 200, 20) //3
-    };
-    /**
-     * Instances of the GUI are stored here
-     * its part of a hack
-     */
-    public static HashMap<String,cmdGUI> gac= new HashMap<>();//Part of a haxx
-    //public static cmdGUI cgui=null;
-    
-    //public static boolean sa;
-    //public static DefaultExecutor ex;
-    //public static boolean bsfin = false;
-    //##################################################################################################
-
-    private ArrayList<RingBuffer<String>> screenBuf= new ArrayList<>();
-    // /\ new RingBuffer<>(String.class,5000,"")
-    // ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
-    // \/ new RingBuffer<>(String.class,5000,"noCmd")
-    private ArrayList<RingBuffer<String>> cmdBuf=new ArrayList<>() ;//noCmd Detektor für leere Zeile
-    private boolean[] sil = new boolean[4];
-    private boolean[] tp = new boolean[3];
-    private boolean[] isInCmd = new boolean[4];
-    private String[] cmdForSend = new String[4];
-    private String[] cmdInLine = new String[4];
-    private int tabSelected=0;
-    
-    private int[] currLin = new int[]{0,0,0,0};
-
-    private int[] uptypes=new int[]{0,0,0,0};
-    private int[] upmax = new int[]{0,0,0,0};
-    private boolean[] ud = new boolean[]{false,false,false,false};
-    private boolean[] ud1 = new boolean[]{true,true,true,true};
-    private JSlider js;
-    private JLabel[] line;
-    private JTextField ipline;
-    private ExtendedJPanel Surface,ButtonArea,tabBar;
-    private UIFileAccess guifile;//replace with loader and selection
-    //private static String[] RingBuffer = new String[5000];#
-    private boolean standalone = true;
-    //private static int[] RingBufferCfg = new int[2];//null=pointer;1=previousElement
-    
-
-        // <editor-fold defaultstate="collapsed" desc="pflichcode">
-    public String getCmdForSend(int targetTab)
-    {
-        return cmdForSend[targetTab];
-    }
-    public void setCmdForSend(String cmd,int targetTab)
-    {
-        this.cmdForSend[targetTab] = cmd;
-    }
-    public void setIsInCmd(boolean isInCmd,int targetTab)
-    {
-        this.isInCmd[targetTab] = isInCmd;
-    }
-    public boolean isStandalone()
-    {
-        return standalone;
-    }
-
-    public void setStandalone(boolean standalone)
-    {
-        this.standalone = standalone;
-    }
-        // </editor-fold>
-    
-    
-    //baseOffs=200|120
-    //size=960*480
-    @SuppressWarnings("CallToThreadDumpStack")
-    public cmdGUI(UIFileAccess g) 
-    {
-        super();//HAX;tst.needd
-        guifile=g;
-        try 
-        {
-            if(guifile.zipBased)
-            {
-            setIconImage(ImageIO.read(guifile.loadFileFromZip(guifile.ResourceURLs.get("icon"))));
-            }
-            else
-            {
-                setIconImage(ImageIO.read(new File(guifile.ResourceURLs.get("icon"))));
-            }
-        } catch (IOException e1) {
-            e1.printStackTrace();
-        }
-        for(int i=0;i<tabCount;i++)
-        {
-            RingBuffer<String>rb = new RingBuffer<>(String.class,5000,"");
-            screenBuf.add(rb);
-            rb = new RingBuffer<>(String.class,5000,"noCmd");
-            cmdBuf.add(rb);
-        }
-        id= this.toString();
-        System.err.println(id);
-       l.trace(id);
-        this.setUndecorated(true);
-        //initComponents();
-        buildGUI();
-        tp[1] = AWTUtilities.isTranslucencySupported(AWTUtilities.Translucency.PERPIXEL_TRANSLUCENT);
-        //cgui=this;//hack
-        gac.put(id,this);
-        if(tp[1])
-        {
-            AWTUtilities.setWindowOpaque(this, false);
-            //AWTUtilities.
-        }
-        //Point p = this.getLocation();//
-        //p.setLocation();     //Setzt Fenster an Zielkkordinaten
-        this.setLocation(guifile.windowBasePoint);    
-        //ButtonArea.setLocation(630, 432);
-  
-        //this.revalidate();
-        //630;432==Button
-    }
-
-    
-    /**
-     * the Form initializer
-     */
-    private void buildGUI()
-    {
-        int[] wincfg = guifile.windowSize;
-        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-        setMinimumSize(new java.awt.Dimension(wincfg[0], wincfg[1]));
-        setPreferredSize(new java.awt.Dimension(wincfg[0], wincfg[1]));
-        Container cp = getContentPane();
-        cp.setLayout(null);
-        
-        Surface = new ExtendedJPanel(1,guifile);
-        Surface.setBounds(0,0,wincfg[0], wincfg[1]);
-        Surface.setLayout(null);
-        cp.add(Surface);
-        /*addToSurface*/
-      //{
-        /*
-         MysteryError.
-         There was no Constructor-CAll anywhere
-          a
-           cmdGUI[frame0,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,title=,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,0,0x0,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@106def2,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
-        ???
-        Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: Constructor must call super() or this() before return in method FontEngine.<init>()V at offset 0
-	at cmdGUI.buildGUI(cmdGUI.java:178)
-	at cmdGUI.<init>(cmdGUI.java:139)
-	at cmdGUI$9$1.run(cmdGUI.java:1047)
-	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
-	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
-	at java.awt.EventQueue.access$000(EventQueue.java:101)
-	at java.awt.EventQueue$3.run(EventQueue.java:666)
-	at java.awt.EventQueue$3.run(EventQueue.java:664)
-	at java.security.AccessController.doPrivileged(Native Method)
-	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
-	at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
-	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
-	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
-	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
-	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
-	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
-	at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
-         */
-        
-            int[]tbc = guifile.tabBarPos;
-            tabBar = new ExtendedJPanel(3,guifile);
-            tabBar.setBounds(tbc[0],tbc[1],tbc[2],tbc[3]);
-            tabBar.initOVL();
-            updateTabBarMessages(0);
-            
-            Surface.add(tabBar);
-            int[] lcf = guifile.lineCfg;
-        
-        
-            js = new JSlider(0, 5000-lcf[3]);//H@XX
-            js.setInverted(true);
-            js.setOrientation(SwingConstants.VERTICAL);
-            js.setUI(new HoloSliderUi(js));
-            js.setOpaque(false);
-            int[] scfg = guifile.ScrollBar;
-            js.setBounds(scfg[0],scfg[1],scfg[2],scfg[3]);
-            Surface.add(js);
-        
-            ButtonArea = new ExtendedJPanel(2,guifile);//ExtebdeedJPanel(2);
-            //ButtonArea.setLocation(630, 432);
-            int[] bacfg = guifile.buttonPanel;
-            ButtonArea.setBounds(bacfg[0],bacfg[1],bacfg[2],bacfg[3]);
-           // ButtonArea.setBounds(630,432,233,48);
-            Surface.add(ButtonArea);
-            
-            int[] ipc = guifile.ipLineArea;
-            ipline = new JTextField();
-            ipline.setBounds(ipc[0],ipc[1],ipc[2],ipc[3]);
-            ipline.setBorder(null);
-            ipline.setOpaque(false);
-            ipline.setFont(term);
-            ipline.setForeground(FontColor);
-            ipline.setBackground(TransBgColor);
-            Surface.add(ipline);
-            
-            int lmx = guifile.lineCount;
-            line = new JLabel[lmx];
-            // <editor-fold defaultstate="collapsed" desc="Altlast">
-            /*
-            * Disabled old variant
-            * JLabel line2 = new JLabel();
-            * JLabel line3 = new JLabel();
-            * JLabel line4 = new JLabel();
-            * JLabel line5 = new JLabel();
-            * JLabel line6 = new JLabel();
-            * JLabel line7 = new JLabel();
-            * JLabel line8 = new JLabel();
-            * JLabel line9 = new JLabel();
-            * JLabel line10 = new JLabel();
-            * JLabel line11 = new JLabel();
-            * JLabel line12 = new JLabel();
-            * JLabel line13 = new JLabel();
-            * JLabel line14 = new JLabel();
-            * JLabel line15 = new JLabel();
-            */
-            //</editor-fold>
-            //for( int i=0,i<tabCount,i++)
-            //{
-                for (int i=0;i<lmx;i++)
-                {
-                    JLabel linel = line[i];
-                    linel = new JLabel();
-                    linel.setFont(term);
-                    //line1.setOpaque(true);//Fliegenklatsche
-
-                    linel.setForeground(FontColor);
-                    //linel.setText("test.lm("+i+")");
-                    if(i==13)
-                    {
-                        //linel.setText("llll.lm("+i+")");
-                    }
-                    linel.setBounds(lcf[0], lcf[1]+i*lcf[3], lcf[2], lcf[3]);
-                   // if(k==0)//KEin I hier!!!!!!!!!
-                   // {
-                        Surface.add(linel);
-                        //Surface.remove()
-                    //}
-                    line[i]=linel;
-                }
-          //}
-
-      //}
-       // MouseMotionAdapter MMA = ;
-        ButtonArea.addMouseMotionListener(new MouseMotionAdapter() {
-            @Override
-            public void mouseMoved(java.awt.event.MouseEvent evt) {
-                ButtonAreaHover(evt,false);
-            }
-        });
-        ipline.addKeyListener(new java.awt.event.KeyAdapter()
-        {
-
-            @Override
-            public void keyPressed(java.awt.event.KeyEvent evt)
-            {
-                keyPressAtIpLine(evt);
-                
-            }
-        });
-        ButtonArea.addMouseListener(new java.awt.event.MouseAdapter() {
-            @Override
-            public void mouseClicked(java.awt.event.MouseEvent evt) {
-                ButtonAreaClicked(evt);
-            }
-            @Override
-            public void mouseEntered(java.awt.event.MouseEvent evt) {
-                ButtonAreaHover(evt,true);
-            }
-            
-            @Override
-            public void mouseExited(java.awt.event.MouseEvent evt)
-            {
-                ButtonAreaHover(evt,true);
-            }
-            
-        });
-                js.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
-            @Override
-            public void mouseDragged(java.awt.event.MouseEvent evt) {
-                refreshLines(evt,tabSelected);
-            }
-        });
-        tabBar.addMouseListener(new java.awt.event.MouseAdapter() {
-            @Override
-            public void mouseClicked(java.awt.event.MouseEvent evt) {
-                TabBarClicked(evt);
-            }/*
-            @Override
-            public void mouseEntered(java.awt.event.MouseEvent evt) {
-                ButtonAreaHover(evt,true);
-            }
-
-            @Override
-            public void mouseExited(java.awt.event.MouseEvent evt)
-            {
-                ButtonAreaHover(evt,true);
-            }*/
-            
-        });
-        //js.
-        //54,412:Po:Sizs
-        //860*17
-        Surface.repaint();
-        cp.repaint();
-        cp.revalidate();
-
-    }
-    
-    /**
-     * Handeles the Glow
-     * @param evt mouse pos
-     * @param forceX1t override
-     */
-    private void ButtonAreaHover(java.awt.event.MouseEvent evt,boolean forceX1t)
-    {
-        if(buttonPos.contains(evt.getPoint())&&!forceX1t)
-        {
-            ButtonArea.cmdButtonGlow(true);
-        }
-        else
-        {
-            ButtonArea.cmdButtonGlow(false);
-        }
-        ButtonArea.repaint(/*null*/);//niemals nullen
-    }
-    /**
-     * @see ButtonAreaClicked(evt,entered)
-     * @param evt 
-     */
-    private void ButtonAreaClicked(java.awt.event.MouseEvent evt)
-    {
-        ButtonAreaClicked(evt,false);
-    }
-    
-    
-    /**
-     * the Tab-Bar event handler
-     * @param evt ClickEvent
-     */
-    private void TabBarClicked(java.awt.event.MouseEvent evt)
-    {
-        cmdInLine[tabSelected] = ipline.getText();
-        for (int i = 0; i < tabs.length; i++)
-        {
-            Rectangle r = tabs[i];
-            if(r.contains(evt.getPoint()))
-            {
-                tabSelected=i;
-            }
-        }
-        refreshLines(evt, tabSelected);
-        refreshCmd();
-        updateTabBarMessages(tabSelected);
-        Surface.repaint();
-    }
-    /**
-     * Handles the addit features of IpLine;
-     * @param evt keypress
-     */
-    public void keyPressAtIpLine(java.awt.event.KeyEvent evt)
-    {
-        int kc = evt.getKeyCode();
-        if(kc==KeyEvent.VK_ENTER)
-        {
-            //Tools.dlg(true,"Enter","...");
-            ButtonAreaClicked(new java.awt.event.MouseEvent(Surface, kc, kc, 0, kc, kc, 0, true),true);
-            //^No NPX here^\\
-            
-        }
-        if(kc==KeyEvent.VK_UP)
-        {
-            if(!ud[tabSelected]&&!ud1[tabSelected])
-            {
-                uptypes[tabSelected]++;
-            }
-            ud1[tabSelected]=false;
-            ud[tabSelected]=true;
-            int get = upmax[tabSelected]-(uptypes[tabSelected]+1);
-            //System.err.println("uptypes|"+uptypes);
-            if(get>=0&&!(uptypes[tabSelected]>upmax[tabSelected]))
-            {
-                String ldcmd = cmdBuf.get(tabSelected).getContentAt(get);
-                l.trace("get|"+get);
-                if(!ldcmd.equals("noCmd"))
-                {
-                    uptypes[tabSelected]++;
-                    ipline.setText(ldcmd);
-                }
-            }
-
-        }
-        if(kc==KeyEvent.VK_DOWN)
-        {
-            /*
-            if(uptypes>0)
-            {
-                uptypes--;
-            }
-            if(uptypes>=0)
-            {
-                            int get = upmax-(uptypes+1);
-            if(!(get<0))
-            {
-                get=0;
-            }
-            String ldcmd = cmdBuf.getContentAt(get);
-                ipline.setText(ldcmd);
-            }
-            else
-            {
-                ipline.setText(ipline.getText());
-            }*/
-            if(ud[tabSelected])
-            {
-                uptypes[tabSelected]--;
-            }
-            ud[tabSelected]=false;
-            uptypes[tabSelected]--;
-            if(uptypes[tabSelected]<0)
-            {
-                uptypes[tabSelected]++;
-            }     
-            int get = upmax[tabSelected]-(uptypes[tabSelected]+1);
-            l.trace("uptypes|"+Arrays.toString(uptypes));
-            if(get>=0&&!(uptypes[tabSelected]>upmax[tabSelected]))
-            {
-                String ldcmd = cmdBuf.get(tabSelected).getContentAt(get);
-                l.trace("get|"+get);
-                if(!ldcmd.equals("noCmd"))
-                {
-                    //uptypes++;
-                    ipline.setText(ldcmd);
-                }
-            }
-
-        }
-    }
-    
-    /**
-     * Handles Button
-     * @param evt where clicked
-     * @param entered if enter key pressed
-     */
-    @SuppressWarnings("CallToThreadDumpStack")
-    private void ButtonAreaClicked(java.awt.event.MouseEvent evt,boolean entered)//für Enter-Eingabe
-    {
-        if(buttonPos.contains(evt.getPoint())||entered)
-        {
-            cmdBuf.get(tabSelected).addItem(ipline.getText());
-            if(upmax[tabSelected]<5000)
-            {
-                upmax[tabSelected]++;
-            }
-            uptypes[tabSelected]=0;
-            l.trace("tabForTrg|"+tabSelected+"|"+isInCmd[tabSelected]);
-            if(!isInCmd[tabSelected])
-            {
-                runCmd();
-            }
-            else
-            {
-                l.trace("toCmdatTab|"+tabSelected+"|"+isInCmd[tabSelected]);
-            
-                String t = ipline.getText();
-                if(t == null)
-                {
-                    t = "";
-                }
-                if(t.equals(""))
-                {
-                    t=" ";
-                }
-                ipline.setText("");
-                cmdForSend[tabSelected]=t;
-                if(t.equals("exit")&&standalone)
-                {
-                    try
-                    {
-                        Thread.sleep(200);
-                        cmdForSend[tabSelected]=" ";//HAKK
-                    }
-                    catch (InterruptedException exc)
-                    {
-                        exc.printStackTrace();
-                    }
-                           
-                }
-            }
-        }
-    }
-     
-    /**
-     * reloads the command of previous tab
-     */
-    private void refreshCmd()//ynchroniszeUpTypes()
-    {
-        ipline.setText(cmdInLine[tabSelected]);
-    }
-    
-    /**
-     * This method is not called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-    
-    public void updateTabBarMessages(int targetTab)
-    {
-           /* tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_T, 50, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_A, 70, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_B, 90, 0);
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_A, 130, 0);
-            
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_T, 250, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_A, 270, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_B, 290, 0);
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_B, 330, 0);
-            
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_T, 450, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_A, 470, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_B, 490, 0);
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_C, 530, 0);
-            
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_T, 650, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_A, 670, 0);
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_B, 690, 0);
-            
-            tabBar.setLetter(FontEngine.FONT_LAUNCHPAD, FontEngine.LETTER_D, 630, 0);
-            */
-            //marker for active Tab
-            tabBar.initOVL();
-            tabBar.setLetter(FontEngine.FONT_DECEPTICON_GRAFFITTI,FontEngine.LETTER_N,
-                    (targetTab*200)+150,0);
-            tabBar.repaint();
-                    
-            
-            
-    }
-    @SuppressWarnings("unchecked")
-    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-    private void initComponents() {
-
-        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-        setMinimumSize(new java.awt.Dimension(960, 480));
-
-        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
-        getContentPane().setLayout(layout);
-        layout.setHorizontalGroup(
-            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-            .addGap(0, 964, Short.MAX_VALUE)
-        );
-        layout.setVerticalGroup(
-            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-            .addGap(0, 516, Short.MAX_VALUE)
-        );
-
-        pack();
-    }// </editor-fold>//GEN-END:initComponents
-
-        /**
-     * runs the cmd which is in the ipLine
-     */
-    public void runCmd()
-    {
-
-        final String cmd = ipline.getText();
-        addLine(cmd,tabSelected);
-        ipline.setText("");
-        l.trace("cmdLoaded|"+cmd+"|"+tabSelected);
-            
-        if(cmd.equals("quit"))
-        {
-            System.exit(0);
-        }
-        //runCode here;
-        Thread t = new Thread(new Runnable()
-        {
-            
-            //@SuppressWarnings("SleepWhileInLoop")//Hx
-            @SuppressWarnings("CallToThreadDumpStack")
-            @Override
-            public void run()
-            {
-                l.trace("cmdLoaded2|"+cmd+"|"+tabSelected);
-                runCmd(cmd);
-            }
-       });
-       t.start();
-        
-    }
-    
-    /**
-     * Runs a cmd and sets inCmd mode.
-     * 
-     * @param args the command line arguments
-     */
-    @SuppressWarnings("CallToThreadDumpStack")
-    public void runCmd(String cmd)//synchronized gint nen fetten Bug
-    {
-        final HashMap<Integer,Object> t = new HashMap<>();
-        int belongingTab = tabSelected;
-        t.put(0,belongingTab);
-        Tools.DebugHelperPrint("cmd|"+belongingTab, true, "Toolkit.enableFinerDebug");
-        cmdGUI cG = this;
-        String[] cmdp = cmd.split(" ");
-       // BufferedInputStream log = new BufferedInputStream
-       // (
-       //     new ByteArrayInputStream(new byte[]{0})
-       // );//das einzelne Byte ist n(ö|ä)tig um ne NPX zu verhindern
-        
-        ExecuteStreamHandler s;
-        final DefaultExecuteResultHandler devnull = new DefaultExecuteResultHandler();
-       /* {
-
-            @Override
-            public void onProcessComplete(int exitValue)
-            {
-                System.err.println("fin");
-                cmdGUI.sil=false;
-                cmdGUI.cgui.setIsInCmd(false);
-            }
-
-            @Override
-            public void onProcessFailed(ExecuteException e)
-            {
-                System.err.println("Urrgs");
-                cmdGUI.sil=false;
-                cmdGUI.cgui.setIsInCmd(false);
-            }
-        };*/
-        String[] fexg = cmd.split("\\.");
-        Tools.DebugHelperPrint(cmd, true, "Toolkit.enableFinerDebug");
-        Tools.DebugHelperPrint("cmd2|"+belongingTab, true, "Toolkit.enableFinerDebug");
-        if(fexg[fexg.length-1].equalsIgnoreCase("bat")||cmd.equals("dir"))
-        {
-            cmd = "cmd.exe /c "+cmd;
-            Tools.DebugHelperPrint("cmdtrigger", true, "Toolkit.enableFinerDebug");
-        }
-        CommandLine cl = CommandLine.parse(cmdp[0]);
-        for (int i = 1; i < cmdp.length; i++)
-        {
-            cl.addArgument(cmdp[i]);
-        }
-        Executor e = new DefaultExecutor();
-        //ex=(DefaultExecutor)e;
-        try
-        {
-            setIsInCmd(true,(int)t.get(0));
-            final PipedInputStream in = new PipedInputStream();
-            PipedOutputStream out = new PipedOutputStream();
-            final PipedOutputStream txOut = new PipedOutputStream();
-            PipedInputStream txIn = new PipedInputStream();
-            Tools.DebugHelperPrint("cmd3|"+belongingTab, true, "Toolkit.enableFinerDebug");
-            
-            txIn.connect(txOut);
-            out.connect(in);
-           // txOut.write((byte)0);//??//
-            //System.err.pri
-            s = new PumpStreamHandler(out,out,txIn);
-            //final OutputStream txOut = ((DefaultExecutor)e).stdin;
-           // i.
-            
-            //s.setProcessOutputStream(log);
-            Tools.DebugHelperPrint("???", true, "Toolkit.enableFinerDebug");
-            e.setStreamHandler(s);
-            
-            //^HAck da sonst zwodeitich//VOID
-            Tools.DebugHelperPrint("Wennhier was ist...", true, "Toolkit.enableFinerDebug");
-            
-            //log.
-
-
-            //cG.
-            sil[(int)t.get(0)]=true;
-            Tools.DebugHelperPrint("cmd4|"+belongingTab, true, "Toolkit.enableFinerDebug");
-            /*new Thread(new Runnable()
-            {
-                @Override
-                @SuppressWarnings("SleepWhileInLoop")
-                public void run()
-                {
-                   // while(!devnull.hasResult())
-                   // {
-                        try
-                        {
-                            ex.p.waitFor();
-                            Thread.sleep(50);
-                            //System.err.println("AA");
-                        }
-                        catch (InterruptedException ex)
-                        {
-                            ex.printStackTrace();
-                        }
-                              
-                    //}
-                    System.err.println("fin");
-                    cmdGUI.sil=false;
-                    cmdGUI.cgui.setIsInCmd(false);
-                    System.err.println("Wr");
-                    System.setProperty("fin", "true");
-                }
-            }).start();*/
-            new Thread(new Runnable()
-            {
-                cmdGUI cG =cmdGUI.gac.get(id);
-                //BufferedOutputStream txOut=(BufferedOutputStream)((DefaultExecutor)ex).getStdin();
-
-                
-                @Override
-                @SuppressWarnings({"SleepWhileInLoop", "SleepWhileInLoop"})
-                public void run()
-                {
-                   while(sil[(int)t.get(0)])
-                   {
-                       // try
-                       // {
-                            //txOut.write("x\b".getBytes());
-                            //txOut.flush();
-                             String chk = cG.getCmdForSend((int)t.get(0));
-                          //   System.err.println(chk);
-                             Tools.DebugHelperPrint(chk, true, "Toolkit.enableFinerDebug");
-                             if(chk==null)
-                             {
-                                 chk="";
-                             }
-                             //if((!System.getProperty("fin", "lm").equals("lm")))
-                             //{
-                              //       System.clearProperty("fin");
-                              //       chk="\r";
-                             //}
-                             if(!chk.equals(""))
-                             {
-
-                                 try
-                                 {
-                                     chk+="\n";
-                                     //o=txOut
-                                     txOut.write(chk.getBytes());
-                                     txOut.flush();
-                                     //System.err.println(">>"+chk);
-                                     Tools.DebugHelperPrint(">>"+chk, true, "Toolkit.enableFinerDebug");
-                                     //in.mark(1);
-                                     //in.reset();Funzen nicht;
-                                 }
-                                 catch (IOException ex)
-                                 {
-                                     ex.printStackTrace();
-                                 }
-                                 cG.setCmdForSend(null,(int)t.get(0));//Nicht vergessen.sonst Bugschleuder
-                                 chk=null;
-                             }
-                             Tools.wait(50);
-                                    
-                       //  }
-                        //catch (IOException ex)
-                       // {
-                        //    System.err.println("Kakk");
-                       //     ex.printStackTrace();
-                       // }
-                               
-                    }
-                }
-                }).start();
-            new Thread(new Runnable()
-            {
-                cmdGUI cG =cmdGUI.gac.get(id);
-                @Override
-                public void run()
-                {
-                    try
-                    {
-                        BufferedReader br = new BufferedReader(new InputStreamReader(in));
-                        //String s2 = br.readLine();
-                        //if(in.)
-                        while(sil[(int)t.get(0)])
-                        {
-                            while (in.available()>0)//||(cmdGUI.sil))
-                            {
-                                byte rb = (byte) in.read();
-                                String ln = ""+(char)rb;
-                                //in.
-                                rb = (byte) in.read();
-                                Tools.DebugHelperPrint((char)rb+"|"+0, true, "Toolkit.enableFinerDebug");
-                                int i=0;
-                                while(((char)rb!='\n')&&((char)rb!='>'))
-                                {
-                                    ln +=(char)rb;
-                                 //   System.err.println((char)rb+"|"+i+1);
-                                    Tools.DebugHelperPrint((char)rb+"|"+i+1, true, "Toolkit.enableFinerDebug");
-                                
-                                    rb = (byte) in.read();//DONOTFORGET!!!!!
-                                 //   System.err.println((char)rb+"|"+i+2);
-                                    Tools.DebugHelperPrint((char)rb+"|"+i+2, true, "Toolkit.enableFinerDebug");
-                                
-                                    i++;
-                                }
-                                if((char)rb=='>')
-                                {
-                                    ln+=">";
-                                }
-                                cG.addLine(ln,(int)t.get(0));
-                                 Tools.DebugHelperPrint("trg2|"+(int)t.get(0), true, "Toolkit.enableFinerDebug");
-                                
- 
-                                  Tools.DebugHelperPrint(ln, true, "Toolkit.enableFinerDebug");
-                                
-                                //s2 = br.readLine();
-                                   Tools.DebugHelperPrint("Fotze", true, "Toolkit.enableFinerDebug");
-                                
-                            }
-                            Tools.wait(50);
-                        }
-                         Tools.DebugHelperPrint("Hira?",true, "Toolkit.enableFinerDebug");
-                                
-                    }
-                    catch (IOException ex)
-                    {
-                        ex.printStackTrace();
-                    }
-                    cG.setIsInCmd(false,(int)t.get(0));
-                }
-            }).start();
-            Tools.DebugHelperPrint("X XX|"+(int)t.get(0), true, "Toolkit.enableFinerDebug");
-            try{
-            e.execute(cl/*,devnull*/);//HACKALERT
-            }
-            catch (org.apache.commons.exec.ExecuteException exc)
-            {
-                //Do nothing. Cmd steigt ja bei Error auch nicht aus
-                //exc.printStackTrace();
-            }
-            Tools.DebugHelperPrint("fin", true, "Toolkit.enableFinerDebug");
-            
-            sil[(int)t.get(0)]=false;
-            
-            cG.setIsInCmd(false,(int)t.get(0));
-            if(standalone)
-            {
-                if(gac.size()<=1)
-                {
-                System.exit(0);
-                }
-                else
-                {
-                    gac.get(id).setVisible(false);
-                    gac.remove(id);
-                }
-            }
-            
-        }
-        catch (ExecuteException exc)
-        {
-            exc.printStackTrace();
-        }
-        catch (IOException exc)
-        {
-            exc.printStackTrace();
-        }
-        Tools.DebugHelperPrint("FIN", true, "Toolkit.enableFinerDebug");
-        //sil=false;
-    }
-    
-    /**
-     * runs a cmd in a specific tab
-     * @param cmd the command to run
-     * @param targetTab the tab in which it should run
-     * @throws Error when the parameter is out od range (<0 or >4)
-     *  and exits the current console
-     */
-    public void runCmd(String cmd,int targetTab)
-    {
-        if(targetTab<0||targetTab>4)
-        {
-            Tools.DebugHelperPrint("xyxyx", true, "Toolkit.enableCoreDebug");
-            gac.put(id,null);
-            this.setVisible(false);
-            this.dispose();
-           throw new Error("The tabCount has to be >=0 and <=4");
-           
-        }
-        tabSelected = targetTab;
-        runCmd(cmd);
-        updateTabBarMessages(targetTab);
-    }
-
-    
-    /**
-     * updates the shown lines
-     * @param evt currently igged
-     */
-    public void refreshLines(java.awt.event.MouseEvent evt,int targetTab)
-    {
-        Tools.DebugHelperPrint("refreshAt|"+targetTab, true, "Toolkit.enableFinerDebug");
-        Tools.DebugHelperPrint(js.getValue()+"", true, "Toolkit.enableFinerDebug");
-        int os = js.getValue();
-        RingBuffer<String> lb = screenBuf.get(targetTab);
-        for(int i=0;i<line.length;i++)
-        {
-            JLabel linew = line[i];
-            String tx = lb.getContentAt(os+i);
-            linew.setText(tx);
-            
-        }
-        //Surface.revalidate();
-        //Surface.repaint();
-    }
-    
-    /**
-     * Adds a line to the Screen
-     * @param cmd the line to add 
-     */
-    public void addLine(String cmd,int targetTab)
-    {
-        Tools.DebugHelperPrint(cmd+"|"+targetTab, true, "Toolkit.enableFinerDebug");
-        RingBuffer<String> lb = screenBuf.get(targetTab);
-        lb.addItem(cmd);//CMD here
-        
-        if(currLin[targetTab]<5000)
-        {
-            currLin[targetTab]++;
-        }
-        int setLin;
-        setLin=currLin[targetTab]-line.length;
-        if(currLin[targetTab]<0)
-        {
-            setLin=0;
-        }
-        js.setValue(setLin);
-        refreshLines(null,targetTab);
-        
-        
-        /*
-        if(linPos==line.length-1)
-        {
-            
-            int ip = 1;
-            for (int i = 1; i < line.length-1; i++)
-            {
-                line[i].setText(line[i+1].getText());
-                ip=i;
-            }
-            line[ip].setText(cmd);
-        }
-        else
-        {
-            
-            line[linPos].setText(cmd);
-            linPos++;
-        }*/
-    }
-    
-  //  public static void main(final String args[])
-  //  {
-  //      main2(args);
-  //  }
-    /**
-     * Main procedure for intenal use only
-     * @param args The command lie args of this proggy
-     */
-   @SuppressWarnings({"CallToThreadDumpStack", "SleepWhileInLoop"})
-    public static void main2(final String args[])//musste MethodenSig ändern wg final
-    {
-        //if(true)
-        //{
-            /*
-                try
-                {
-                //  File f = new File();
-                    System.err.println();
-                }
-                catch (URISyntaxException ex)
-                {
-                    ex.printStackTrace();
-                }
-                return;*/
-        //}
-        new Thread(new Runnable()
-        {
-
-            @Override
-            public void run()
-            {
-                final HashMap<Integer, Object> t = new HashMap<>();
-                t.put(0, false);
-                //final HashMap<Integer,Boolean> t = new HashMap<>();
-                String cmd = "cmd";
-                // boolean sa=false;
-                if (args.length > 0)
-                {
-                    Tools.DebugHelperPrint("1", true, "Toolkit.enableFinerDebug");
-                    if ((args[0].equals("--cmd")) || (args[0].equals("--standalone")))
-                    {
-                        Tools.DebugHelperPrint("12", true, "Toolkit.enableFinerDebug");
-                        //sa=false;
-                        if (args.length > 1)
-                        {
-                            Tools.DebugHelperPrint("123", true, "Toolkit.enableFinerDebug");
-                            t.put(3,true);
-                            cmd = args[1];
-                        }
-                        else
-                        {
-                            Tools.DebugHelperPrint("123e", true, "Toolkit.enableFinerDebug");
-                            t.put(3,true);
-                            cmd = "cmd";
-                        }
-                    }
-                    else
-                    {
-                        Tools.DebugHelperPrint("12e", true, "Toolkit.enableFinerDebug");
-                        t.put(3,false);
-                    }
-                }
-                else
-                {
-                    Tools.DebugHelperPrint("1e", true, "Toolkit.enableFinerDebug");
-                    t.put(3,true);
-                }
-                t.put(2, cmd);
-                /*
-                 * Set the Nimbus look and feel
-                 */
-                //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
-        /*
-                 * If Nimbus (introduced in Java SE 6) is not available, stay
-                 * with the
-                 * default look and feel.
-                 * For details see
-                 * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
-                 */
-                try
-                {
-                    Icon icon = new ImageIcon("C:/users/LH/Desktop/jp/GUI-File-CMD-IP-SLDR.png");
-                    UIDefaults defaults = UIManager.getDefaults();
-                    defaults.put("Slider.verticalThumbIcon", icon);
-                    for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
-                    {
-                        if ("Nimbus".equals(info.getName()))
-                        {
-                            javax.swing.UIManager.setLookAndFeel(info.getClassName());
-                            break;
-                        }
-                    }/*
-                     * SynthLookAndFeel laf = new SynthLookAndFeel();
-                     * laf.load(new File("SynthSlider.xml").toURI().toURL());
-                     * javax.swing.UIManager.setLookAndFeel(laf);
-                     */
-                }
-                catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException exc)
-                {/*
-                     * IOException|java.net.MalformedURLException|
-                     */
-                    //java.util.logging.Logger.getLogger(cmdGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-
-                }
-                // Icon icon = new ImageIcon("C:/users/LH/Desktop/jp/GUI-File-CMD-IP-SLDR.png");
-                // UIDefaults defaults = UIManager.getLookAndFeelDefaults();
-                // defaults.put("Slider.verticalThumbIcon", icon);
-                // Slider.
-
-
-                //C:/users/LH/Desktop/jp/GUI-File-CMD-IP-SLDR.png
-                //</editor-fold>
-
-                /*
-                 * Create and display the form
-                 */
-
-                java.awt.EventQueue.invokeLater(new Runnable()
-                {
-
-                    @Override
-                    public void run()
-                    {
-                        cmdGUI g = new cmdGUI(new UIFileAccess(/**/de.nplusc.izc.tools.UIToolz.rsrc.UIFile.class));
-                                //
-                        /*Ü*//*new File("C:\\Users\\LH\\Desktop\\jp\\uiexamole\\ui.zip")));*/
-                        g.setVisible(true);
-                        if (((boolean) t.get(3)))
-                        {
-                            Tools.DebugHelperPrint("sacall2", true, "Toolkit.enableFinerDebug");
-                            g.setStandalone(true);
-                        }//V:HAXX
-                        t.put(1, g);/*
-                         * bsfin=true;
-                         */
-                        t.put(0, true);/*
-                         * new Thread(new Runnable()
-                         * {
-                         * @Override
-                         * public void run()
-                         * {
-                         *
-                         *
-                         * }
-                         *
-                         * }).start();
-                         */
-
-                    }
-                });//Dieser Häck funzt nur in main()!!!!!//VOID
-                while (!((boolean) t.get(0)))//Hack
-                {
-                    try
-                    {
-                        Thread.sleep(50);
-                    }
-                    catch (InterruptedException exc)
-                    {
-                        exc.printStackTrace();
-                    }
-                }
-                try         //BUG-ALERT:HACK_USED
-                {           //REQUIRED da sonst Deadlock...
-                    //vermutlich ne Race-Condition...
-                    //ergibt nämlich nen fetten Hänger...
-                    Thread.sleep(500);
-                }
-                catch (InterruptedException exc)
-                {
-                    exc.printStackTrace();
-                }
-                if (((boolean)t.get(3)))
-                {
-                    Tools.DebugHelperPrint("sacall2", true, "Toolkit.enableFinerDebug");
-                    // cmdGUI.cgui.runCmd(cmd);
-                    ((cmdGUI) t.get(1)).runCmd((String)t.get(2));
-                }
-            }
-        }).start();
-    }
-    // Variables declaration - do not modify//GEN-BEGIN:variables
-    // End of variables declaration//GEN-END:variables
-}

+ 0 - 102
ToolKit/src/main/java/de/nplusc/izc/tools/baseTools/Tools.java

@@ -484,109 +484,7 @@ public class Tools
         return ContState;
     }
 
-    
-    // <editor-fold defaultstate="collapsed" desc="Altlast">
-    /*
-     public static void jCmd() {
-     javax.swing.JButton Eingabe;
-     javax.swing.JButton jButton2;
-     javax.swing.JPanel jPanel1;
-     javax.swing.JScrollPane jScrollPane1;
-
-     // End of variables declaration
-     jPanel1 = new javax.swing.JPanel();
-     jScrollPane1 = new javax.swing.JScrollPane();
-     cmdScreen = new javax.swing.JTextArea();
-     Eingabe = new javax.swing.JButton();
-     jButton2 = new javax.swing.JButton();
-     cmdline = new javax.swing.JTextField();
-        
-     Eingabe.addActionListener(new java.awt.event.ActionListener() {
-     public void actionPerformed(java.awt.event.ActionEvent evt) {
-     eingabeActionPerformed(evt);
-     }
-     });
 
-     jButton2.addActionListener(new java.awt.event.ActionListener() {
-     public void actionPerformed(java.awt.event.ActionEvent evt) {
-     cmdQuitActionPerformed(evt);
-     }
-     });
-        
-     //setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-
-     cmdScreen.setColumns(20);
-     cmdScreen.setLineWrap(true);
-     cmdScreen.setRows(5);
-     jScrollPane1.setViewportView(cmdScreen);
-
-     Eingabe.setText("Eingabe");
-
-     jButton2.setText("Beenden");
-
-     javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
-     jPanel1.setLayout(jPanel1Layout);
-     jPanel1Layout.setHorizontalGroup(
-     jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-     .addGroup(jPanel1Layout.createSequentialGroup()
-     .addContainerGap()
-     .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
-     .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 733, Short.MAX_VALUE)
-     .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
-     .addComponent(cmdline, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE)
-     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-     .addComponent(Eingabe, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
-     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-     .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))
-     .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
-     );
-     jPanel1Layout.setVerticalGroup(
-     jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-     .addGroup(jPanel1Layout.createSequentialGroup()
-     .addContainerGap()
-     .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 342, javax.swing.GroupLayout.PREFERRED_SIZE)
-     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-     .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-     .addComponent(Eingabe)
-     .addComponent(cmdline, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
-     .addComponent(jButton2))
-     .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
-     );
-     d.setTitle("jCmd");
-     d.setResizable(false);
-     d.setModal(true);
-     d.add(jPanel1);
-     Dimension dms = jPanel1.getPreferredSize();
-     dms.setSize(dms.getWidth()+5,dms.getHeight()+30);//HACK!!
-     d.setSize(dms);
-     cmdScreen.setEditable(false);
-     //d.p
-     d.setVisible( true );
-        
-     /*
-     javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
-     getContentPane().setLayout(layout);
-     layout.setHorizontalGroup(
-     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
-     .addGap(663, 663, 663)
-     .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
-     .addGap(1382, 1382, 1382))
-     );
-     layout.setVerticalGroup(
-     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-     .addGroup(layout.createSequentialGroup()
-     .addGap(65, 65, 65)
-     .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
-     .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
-     );* /
-
-     //pack();
-     }
-    
-    
-    
-     */
     //</editor-fold>
     /**
      * COmmand run wrapper

+ 0 - 3
WPCMGr/src/main/java/de/nplusc/izc/Utilities/WPCMgr/WPCUtils.java

@@ -17,11 +17,8 @@
 package de.nplusc.izc.Utilities.WPCMgr;
 
 import de.nplusc.izc.tools.IOtools.FileTK;
-import de.nplusc.izc.tools.baseTools.Tools;
 import java.io.File;
-import java.util.ArrayList;
 import java.util.LinkedHashMap;
-import java.util.List;
 import org.yaml.snakeyaml.DumperOptions;
 import org.yaml.snakeyaml.Yaml;
 

+ 1 - 1
settings.gradle

@@ -1,3 +1,3 @@
-include 'ToolKit','iZpl',  'izsetup','WPCMgr','UpidTK', 'izstreamer', 'LogBlockHeatMapper','DefaultUIFile','iZlaunch',
+include 'ToolKit','iZpl',  'izsetup','WPCMgr','UpidTK', 'izstreamer', 'LogBlockHeatMapper','iZlaunch',
 'iZpaqSFX','MazeViewer','TWPUtil',"iZplPlugins:WMP","iZplPlugins:foobar2000_others","iZplPlugins:itunes","iZplPlugins:gameradio",
 "iZplPlugins:editor"