diff options
author | Blaine | 2020-05-22 03:09:17 +0530 |
---|---|---|
committer | Blaine | 2020-05-22 03:09:17 +0530 |
commit | 10b6c82b0a173f462740172f38c8da3db9f9f615 (patch) | |
tree | 491ae6e5f8d0d500dca551b2eee14d90860993f5 /src/main/resources/base | |
parent | 1c08fe5744c5cbda830fc84f686942e71bce16f5 (diff) | |
download | Chemical-PFD-10b6c82b0a173f462740172f38c8da3db9f9f615.tar.gz Chemical-PFD-10b6c82b0a173f462740172f38c8da3db9f9f615.tar.bz2 Chemical-PFD-10b6c82b0a173f462740172f38c8da3db9f9f615.zip |
migrate to json in data.py and use custom icons
Diffstat (limited to 'src/main/resources/base')
-rw-r--r-- | src/main/resources/base/config/items.json | 909 | ||||
-rw-r--r-- | src/main/resources/base/config/paperSizes.json | 33 | ||||
-rw-r--r-- | src/main/resources/base/toolbar/items.json | 902 | ||||
-rw-r--r-- | src/main/resources/base/toolbar/script.py | 28 |
4 files changed, 1870 insertions, 2 deletions
diff --git a/src/main/resources/base/config/items.json b/src/main/resources/base/config/items.json index b286abd..1d6b3e2 100644 --- a/src/main/resources/base/config/items.json +++ b/src/main/resources/base/config/items.json @@ -1 +1,908 @@ -{"Ellipse": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse2": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse3": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse4": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse5": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse6": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse7": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse8": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse9": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse11": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse12": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse13": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse14": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse15": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse16": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse17": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse18": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse19": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse20": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse21": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse22": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse23": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse24": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse25": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse26": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse27": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse28": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse29": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse30": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse31": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse32": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse33": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse34": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse35": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse36": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse37": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse38": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse39": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse40": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse41": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse42": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse43": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse44": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse45": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}, "Ellipse46": {"name": "Ellipse", "icon": "ellipse.png", "object": "QGraphicsEllipseItem", "args": [20, 20, 300, 300]}}
\ No newline at end of file +{ + "Ellipse": { + "name": "Ellipse", + "icon": "ellipse.png", + "object": "QGraphicsEllipseItem", + "args": [20, 20, 300, 300] + }, + "airBlownCooler": { + "name": "Air blown cooler", + "icon": "AirBlownCooler.png", + "object": "nodeItem", + "args": ["airBlownCooler"] + }, + "alkylation": { + "name": "Alkylation", + "icon": "Alkylation.png", + "object": "nodeItem", + "args": ["alkylation"] + }, + "automaticStroker": { + "name": "Automatic stroker", + "icon": "AutomaticStroker.png", + "object": "nodeItem", + "args": ["automaticStroker"] + }, + "axialCompressor": { + "name": "Axial compressor", + "icon": "AxialCompressor.png", + "object": "nodeItem", + "args": ["axialCompressor"] + }, + "axialFlowFan": { + "name": "Axial flow fan", + "icon": "AxialFlowFan.png", + "object": "nodeItem", + "args": ["axialFlowFan"] + }, + "bag": { + "name": "Bag", + "icon": "Bag.png", + "object": "nodeItem", + "args": ["bag"] + }, + "boiler": { + "name": "Boiler", + "icon": "Boiler.png", + "object": "nodeItem", + "args": ["boiler"] + }, + "boomLoader": { + "name": "Boom loader", + "icon": "BoomLoader.png", + "object": "nodeItem", + "args": ["boomLoader"] + }, + "breaker": { + "name": "Breaker", + "icon": "Breaker.png", + "object": "nodeItem", + "args": ["breaker"] + }, + "briquettingMachine": { + "name": "Briquetting machine", + "icon": "BriquettingMachine.png", + "object": "nodeItem", + "args": ["briquettingMachine"] + }, + "cavityPump": { + "name": "Cavity pump", + "icon": "CavityPump.png", + "object": "nodeItem", + "args": ["cavityPump"] + }, + "centrifugal": { + "name": "Centrifugal", + "icon": "Centrifugal.png", + "object": "nodeItem", + "args": ["centrifugal"] + }, + "centrifugalBlower": { + "name": "Centrifugal blower", + "icon": "CentrifugalBlower.png", + "object": "nodeItem", + "args": ["centrifugalBlower"] + }, + "centrifugalCompressor": { + "name": "Centrifugal compressor", + "icon": "CentrifugalCompressor.png", + "object": "nodeItem", + "args": ["centrifugalCompressor"] + }, + "centrifugalCompressor2": { + "name": "Centrifugal compressor2", + "icon": "CentrifugalCompressor2.png", + "object": "nodeItem", + "args": ["centrifugalCompressor2"] + }, + "centrifugalCompressor3": { + "name": "Centrifugal compressor3", + "icon": "CentrifugalCompressor3.png", + "object": "nodeItem", + "args": ["centrifugalCompressor3"] + }, + "centrifugalCompressor4": { + "name": "Centrifugal compressor4", + "icon": "CentrifugalCompressor4.png", + "object": "nodeItem", + "args": ["centrifugalCompressor4"] + }, + "centrifugalPump": { + "name": "Centrifugal pump", + "icon": "CentrifugalPump.png", + "object": "nodeItem", + "args": ["centrifugalPump"] + }, + "centrifugalPump2": { + "name": "Centrifugal pump2", + "icon": "CentrifugalPump2.png", + "object": "nodeItem", + "args": ["centrifugalPump2"] + }, + "centrifugalPump3": { + "name": "Centrifugal pump3", + "icon": "CentrifugalPump3.png", + "object": "nodeItem", + "args": ["centrifugalPump3"] + }, + "centrifugalPump4": { + "name": "Centrifugal pump4", + "icon": "CentrifugalPump4.png", + "object": "nodeItem", + "args": ["centrifugalPump4"] + }, + "chimneyTowerHyperbolic": { + "name": "Chimney tower hyperbolic", + "icon": "ChimneyTowerHyperbolic.png", + "object": "nodeItem", + "args": ["chimneyTowerHyperbolic"] + }, + "coarseCrusher": { + "name": "Coarse crusher", + "icon": "CoarseCrusher.png", + "object": "nodeItem", + "args": ["coarseCrusher"] + }, + "column": { + "name": "Column", + "icon": "Column.png", + "object": "nodeItem", + "args": ["column"] + }, + "compressor": { + "name": "Compressor", + "icon": "Compressor.png", + "object": "nodeItem", + "args": ["compressor"] + }, + "compressor2": { + "name": "Compressor2", + "icon": "Compressor2.png", + "object": "nodeItem", + "args": ["compressor2"] + }, + "compressorSilencer": { + "name": "Compressor silencer", + "icon": "CompressorSilencer.png", + "object": "nodeItem", + "args": ["compressorSilencer"] + }, + "compressorVaccumPump": { + "name": "Compressor vaccum pump", + "icon": "CompressorVaccumPump.png", + "object": "nodeItem", + "args": ["compressorVaccumPump"] + }, + "condenser": { + "name": "Condenser", + "icon": "Condenser.png", + "object": "nodeItem", + "args": ["condenser"] + }, + "coneCrusher": { + "name": "Cone crusher", + "icon": "ConeCrusher.png", + "object": "nodeItem", + "args": ["coneCrusher"] + }, + "cooler": { + "name": "Cooler", + "icon": "Cooler.png", + "object": "nodeItem", + "args": ["cooler"] + }, + "coolingTower2": { + "name": "Cooling tower2", + "icon": "CoolingTower2.png", + "object": "nodeItem", + "args": ["coolingTower2"] + }, + "coolingTower3": { + "name": "Cooling tower3", + "icon": "CoolingTower3.png", + "object": "nodeItem", + "args": ["coolingTower3"] + }, + "counterflowForcedDraft": { + "name": "Counterflow forced draft", + "icon": "CounterflowForcedDraft.png", + "object": "nodeItem", + "args": ["counterflowForcedDraft"] + }, + "crossflowInducedDraft": { + "name": "Crossflow induced draft", + "icon": "CrossflowInducedDraft.png", + "object": "nodeItem", + "args": ["crossflowInducedDraft"] + }, + "crusher": { + "name": "Crusher", + "icon": "Crusher.png", + "object": "nodeItem", + "args": ["crusher"] + }, + "diaphragmCompressor": { + "name": "Diaphragm compressor", + "icon": "DiaphragmCompressor.png", + "object": "nodeItem", + "args": ["diaphragmCompressor"] + }, + "dieselMotor": { + "name": "Diesel motor", + "icon": "DieselMotor.png", + "object": "nodeItem", + "args": ["dieselMotor"] + }, + "doubleFlowTurbine": { + "name": "Double flow turbine", + "icon": "DoubleFlowTurbine.png", + "object": "nodeItem", + "args": ["doubleFlowTurbine"] + }, + "doublePipeHeat": { + "name": "Double pipe heat", + "icon": "DoublePipeHeat.png", + "object": "nodeItem", + "args": ["doublePipeHeat"] + }, + "dryer": { + "name": "Dryer", + "icon": "Dryer.png", + "object": "nodeItem", + "args": ["dryer"] + }, + "dryingOven": { + "name": "Drying oven", + "icon": "DryingOven.png", + "object": "nodeItem", + "args": ["dryingOven"] + }, + "ejector": { + "name": "Ejector", + "icon": "Ejector.png", + "object": "nodeItem", + "args": ["ejector"] + }, + "ejectorCompressor": { + "name": "Ejector compressor", + "icon": "EjectorCompressor.png", + "object": "nodeItem", + "args": ["ejectorCompressor"] + }, + "electricMotor": { + "name": "Electric motor", + "icon": "ElectricMotor.png", + "object": "nodeItem", + "args": ["electricMotor"] + }, + "extractorHood": { + "name": "Extractor hood", + "icon": "ExtractorHood.png", + "object": "nodeItem", + "args": ["extractorHood"] + }, + "fan": { + "name": "Fan", + "icon": "Fan.png", + "object": "nodeItem", + "args": ["fan"] + }, + "fanBlades": { + "name": "Fan blades", + "icon": "FanBlades.png", + "object": "nodeItem", + "args": ["fanBlades"] + }, + "fanBlades2": { + "name": "Fan blades2", + "icon": "FanBlades2.png", + "object": "nodeItem", + "args": ["fanBlades2"] + }, + "fineCrushers": { + "name": "Fine crushers", + "icon": "FineCrushers.png", + "object": "nodeItem", + "args": ["fineCrushers"] + }, + "firedHeater": { + "name": "Fired heater", + "icon": "FiredHeater.png", + "object": "nodeItem", + "args": ["firedHeater"] + }, + "fluidCatalyticCracking": { + "name": "Fluid catalytic cracking", + "icon": "FluidCatalyticCracking.png", + "object": "nodeItem", + "args": ["fluidCatalyticCracking"] + }, + "fluidCoking": { + "name": "Fluid coking", + "icon": "FluidCoking.png", + "object": "nodeItem", + "args": ["fluidCoking"] + }, + "fluidizedBedDryer": { + "name": "Fluidized bed dryer", + "icon": "FluidizedBedDryer.png", + "object": "nodeItem", + "args": ["fluidizedBedDryer"] + }, + "fluidizedReactor": { + "name": "Fluidized reactor", + "icon": "FluidizedReactor.png", + "object": "nodeItem", + "args": ["fluidizedReactor"] + }, + "forcedDraftCooling": { + "name": "Forced draft cooling", + "icon": "ForcedDraftCooling.png", + "object": "nodeItem", + "args": ["forcedDraftCooling"] + }, + "forcedDraftCoolingTower": { + "name": "Forced draft cooling tower", + "icon": "ForcedDraftCoolingTower.png", + "object": "nodeItem", + "args": ["forcedDraftCoolingTower"] + }, + "furnace": { + "name": "Furnace", + "icon": "Furnace.png", + "object": "nodeItem", + "args": ["furnace"] + }, + "furnace2": { + "name": "Furnace2", + "icon": "Furnace2.png", + "object": "nodeItem", + "args": ["furnace2"] + }, + "gasBlower": { + "name": "Gas blower", + "icon": "GasBlower.png", + "object": "nodeItem", + "args": ["gasBlower"] + }, + "gasBottle": { + "name": "Gas bottle", + "icon": "GasBottle.png", + "object": "nodeItem", + "args": ["gasBottle"] + }, + "gearPump": { + "name": "Gear pump", + "icon": "GearPump.png", + "object": "nodeItem", + "args": ["gearPump"] + }, + "generator": { + "name": "Generator", + "icon": "Generator.png", + "object": "nodeItem", + "args": ["generator"] + }, + "halfPipeMixingVessel": { + "name": "Half pipe mixing vessel", + "icon": "HalfPipeMixingVessel.png", + "object": "nodeItem", + "args": ["halfPipeMixingVessel"] + }, + "hammerCrusher": { + "name": "Hammer crusher", + "icon": "HammerCrusher.png", + "object": "nodeItem", + "args": ["hammerCrusher"] + }, + "hammerCrusher2": { + "name": "Hammer crusher2", + "icon": "HammerCrusher2.png", + "object": "nodeItem", + "args": ["hammerCrusher2"] + }, + "heatConsumer": { + "name": "Heat consumer", + "icon": "HeatConsumer.png", + "object": "nodeItem", + "args": ["heatConsumer"] + }, + "heater": { + "name": "Heater", + "icon": "Heater.png", + "object": "nodeItem", + "args": ["heater"] + }, + "heatExchanger": { + "name": "Heat exchanger", + "icon": "HeatExchanger.png", + "object": "nodeItem", + "args": ["heatExchanger"] + }, + "heatExchanger2": { + "name": "Heat exchanger2", + "icon": "HeatExchanger2.png", + "object": "nodeItem", + "args": ["heatExchanger2"] + }, + "horizontalPump": { + "name": "Horizontal pump", + "icon": "HorizontalPump.png", + "object": "nodeItem", + "args": ["horizontalPump"] + }, + "horizontalVessel": { + "name": "Horizontal vessel", + "icon": "HorizontalVessel.png", + "object": "nodeItem", + "args": ["horizontalVessel"] + }, + "hydroCracking": { + "name": "Hydro cracking", + "icon": "HydroCracking.png", + "object": "nodeItem", + "args": ["hydroCracking"] + }, + "hydrocracking2": { + "name": "Hydrocracking2", + "icon": "Hydrocracking2.png", + "object": "nodeItem", + "args": ["hydrocracking2"] + }, + "hydrodesulfurization": { + "name": "Hydrodesulfurization", + "icon": "Hydrodesulfurization.png", + "object": "nodeItem", + "args": ["hydrodesulfurization"] + }, + "iconsaaa": { + "name": "iconsaaa", + "icon": "iconsaaa.png", + "object": "nodeItem", + "args": ["iconsaaa"] + }, + "impactCrusher": { + "name": "Impact crusher", + "icon": "ImpactCrusher.png", + "object": "nodeItem", + "args": ["impactCrusher"] + }, + "iSOCentrifugalPump": { + "name": "ISOCentrifugal pump", + "icon": "ISOCentrifugalPump.png", + "object": "nodeItem", + "args": ["iSOCentrifugalPump"] + }, + "iSODiaphragmPump": { + "name": "ISODiaphragm pump", + "icon": "ISODiaphragmPump.png", + "object": "nodeItem", + "args": ["iSODiaphragmPump"] + }, + "iSOGearPump": { + "name": "ISOGear pump", + "icon": "ISOGearPump.png", + "object": "nodeItem", + "args": ["iSOGearPump"] + }, + "iSOLiquidPump": { + "name": "ISOLiquid pump", + "icon": "ISOLiquidPump.png", + "object": "nodeItem", + "args": ["iSOLiquidPump"] + }, + "iSOPositiveDisplacementPump": { + "name": "ISOPositive displacement pump", + "icon": "ISOPositiveDisplacementPump.png", + "object": "nodeItem", + "args": ["iSOPositiveDisplacementPump"] + }, + "iSOProgressivePump": { + "name": "ISOProgressive pump", + "icon": "ISOProgressivePump.png", + "object": "nodeItem", + "args": ["iSOProgressivePump"] + }, + "iSOReciprocatingPistonPump": { + "name": "ISOReciprocating piston pump", + "icon": "ISOReciprocatingPistonPump.png", + "object": "nodeItem", + "args": ["iSOReciprocatingPistonPump"] + }, + "iSOScrewPump": { + "name": "ISOScrew pump", + "icon": "ISOScrewPump.png", + "object": "nodeItem", + "args": ["iSOScrewPump"] + }, + "jacketedMixingVessel": { + "name": "Jacketed mixing vessel", + "icon": "JacketedMixingVessel.png", + "object": "nodeItem", + "args": ["jacketedMixingVessel"] + }, + "jawCrusher": { + "name": "Jaw crusher", + "icon": "JawCrusher.png", + "object": "nodeItem", + "args": ["jawCrusher"] + }, + "liquidRingCompressor": { + "name": "Liquid ring compressor", + "icon": "LiquidRingCompressor.png", + "object": "nodeItem", + "args": ["liquidRingCompressor"] + }, + "liquidRingVaccumPump": { + "name": "Liquid ring vaccum pump", + "icon": "LiquidRingVaccumPump.png", + "object": "nodeItem", + "args": ["liquidRingVaccumPump"] + }, + "mediumCrusher": { + "name": "Medium crusher", + "icon": "MediumCrusher.png", + "object": "nodeItem", + "args": ["mediumCrusher"] + }, + "mixing": { + "name": "Mixing", + "icon": "Mixing.png", + "object": "nodeItem", + "args": ["mixing"] + }, + "mixingReactor": { + "name": "Mixing reactor", + "icon": "MixingReactor.png", + "object": "nodeItem", + "args": ["mixingReactor"] + }, + "motor": { + "name": "Motor", + "icon": "Motor.png", + "object": "nodeItem", + "args": ["motor"] + }, + "motorDrivenTurbin": { + "name": "Motor driven turbin", + "icon": "MotorDrivenTurbin.png", + "object": "nodeItem", + "args": ["motorDrivenTurbin"] + }, + "motorGenerator": { + "name": "Motor generator", + "icon": "MotorGenerator.png", + "object": "nodeItem", + "args": ["motorGenerator"] + }, + "movingShelfDryer": { + "name": "Moving shelf dryer", + "icon": "MovingShelfDryer.png", + "object": "nodeItem", + "args": ["movingShelfDryer"] + }, + "oilBurner": { + "name": "Oil burner", + "icon": "OilBurner.png", + "object": "nodeItem", + "args": ["oilBurner"] + }, + "openTank": { + "name": "Open tank", + "icon": "OpenTank.png", + "object": "nodeItem", + "args": ["openTank"] + }, + "packedTower": { + "name": "Packed tower", + "icon": "PackedTower.png", + "object": "nodeItem", + "args": ["packedTower"] + }, + "peristallticPump": { + "name": "Peristalltic pump", + "icon": "PeristallticPump.png", + "object": "nodeItem", + "args": ["peristallticPump"] + }, + "pistonCompressor": { + "name": "Piston compressor", + "icon": "PistonCompressor.png", + "object": "nodeItem", + "args": ["pistonCompressor"] + }, + "plateTower": { + "name": "Plate tower", + "icon": "PlateTower.png", + "object": "nodeItem", + "args": ["plateTower"] + }, + "positiveDisplacementPump": { + "name": "Positive displacement pump", + "icon": "PositiveDisplacementPump.png", + "object": "nodeItem", + "args": ["positiveDisplacementPump"] + }, + "positiveDisplacementPump2": { + "name": "Positive displacement pump2", + "icon": "PositiveDisplacementPump2.png", + "object": "nodeItem", + "args": ["positiveDisplacementPump2"] + }, + "proportioningPump": { + "name": "Proportioning pump", + "icon": "ProportioningPump.png", + "object": "nodeItem", + "args": ["proportioningPump"] + }, + "proportioningPump2": { + "name": "Proportioning pump2", + "icon": "ProportioningPump2.png", + "object": "nodeItem", + "args": ["proportioningPump2"] + }, + "pump": { + "name": "Pump", + "icon": "Pump.png", + "object": "nodeItem", + "args": ["pump"] + }, + "pump2": { + "name": "Pump2", + "icon": "Pump2.png", + "object": "nodeItem", + "args": ["pump2"] + }, + "reboilerHeatExchanger": { + "name": "Reboiler heat exchanger", + "icon": "ReboilerHeatExchanger.png", + "object": "nodeItem", + "args": ["reboilerHeatExchanger"] + }, + "reciprocatingCompressor": { + "name": "Reciprocating compressor", + "icon": "ReciprocatingCompressor.png", + "object": "nodeItem", + "args": ["reciprocatingCompressor"] + }, + "reciprocatingCompressor2": { + "name": "Reciprocating compressor2", + "icon": "ReciprocatingCompressor2.png", + "object": "nodeItem", + "args": ["reciprocatingCompressor2"] + }, + "reciprocatingPump": { + "name": "Reciprocating pump", + "icon": "ReciprocatingPump.png", + "object": "nodeItem", + "args": ["reciprocatingPump"] + }, + "reciprocatingPump2": { + "name": "Reciprocating pump2", + "icon": "ReciprocatingPump2.png", + "object": "nodeItem", + "args": ["reciprocatingPump2"] + }, + "reciprocativeCompressor": { + "name": "Reciprocative compressor", + "icon": "ReciprocativeCompressor.png", + "object": "nodeItem", + "args": ["reciprocativeCompressor"] + }, + "ringCompressor": { + "name": "Ring compressor", + "icon": "RingCompressor.png", + "object": "nodeItem", + "args": ["ringCompressor"] + }, + "rollerConveryorBeltDryer": { + "name": "Roller converyor belt dryer", + "icon": "RollerConveryorBeltDryer.png", + "object": "nodeItem", + "args": ["rollerConveryorBeltDryer"] + }, + "rollerCrusher": { + "name": "Roller crusher", + "icon": "RollerCrusher.png", + "object": "nodeItem", + "args": ["rollerCrusher"] + }, + "rollerVaneCompressor": { + "name": "Roller vane compressor", + "icon": "RollerVaneCompressor.png", + "object": "nodeItem", + "args": ["rollerVaneCompressor"] + }, + "rotaryCompressor": { + "name": "Rotary compressor", + "icon": "RotaryCompressor.png", + "object": "nodeItem", + "args": ["rotaryCompressor"] + }, + "rotaryCompressor2": { + "name": "Rotary compressor2", + "icon": "RotaryCompressor2.png", + "object": "nodeItem", + "args": ["rotaryCompressor2"] + }, + "rotaryCompressor3": { + "name": "Rotary compressor3", + "icon": "RotaryCompressor3.png", + "object": "nodeItem", + "args": ["rotaryCompressor3"] + }, + "rotaryCompressorSilencers": { + "name": "Rotary compressor silencers", + "icon": "RotaryCompressorSilencers.png", + "object": "nodeItem", + "args": ["rotaryCompressorSilencers"] + }, + "rotaryGearPump": { + "name": "Rotary gear pump", + "icon": "RotaryGearPump.png", + "object": "nodeItem", + "args": ["rotaryGearPump"] + }, + "rotaryPump": { + "name": "Rotary pump", + "icon": "RotaryPump.png", + "object": "nodeItem", + "args": ["rotaryPump"] + }, + "screen": { + "name": "Screen", + "icon": "Screen.png", + "object": "nodeItem", + "args": ["screen"] + }, + "screwPump": { + "name": "Screw pump", + "icon": "ScrewPump.png", + "object": "nodeItem", + "args": ["screwPump"] + }, + "screwPump2": { + "name": "Screw pump2", + "icon": "ScrewPump2.png", + "object": "nodeItem", + "args": ["screwPump2"] + }, + "selectableCompressor": { + "name": "Selectable compressor", + "icon": "SelectableCompressor.png", + "object": "nodeItem", + "args": ["selectableCompressor"] + }, + "selectableFan": { + "name": "Selectable fan", + "icon": "SelectableFan.png", + "object": "nodeItem", + "args": ["selectableFan"] + }, + "singlePassHeat": { + "name": "Single pass heat", + "icon": "SinglePassHeat.png", + "object": "nodeItem", + "args": ["singlePassHeat"] + }, + "spiralHeatExchanger": { + "name": "Spiral heat exchanger", + "icon": "SpiralHeatExchanger.png", + "object": "nodeItem", + "args": ["spiralHeatExchanger"] + }, + "spray": { + "name": "Spray", + "icon": "Spray.png", + "object": "nodeItem", + "args": ["spray"] + }, + "sprayDryer": { + "name": "Spray dryer", + "icon": "SprayDryer.png", + "object": "nodeItem", + "args": ["sprayDryer"] + }, + "straightTubesHeat": { + "name": "Straight tubes heat", + "icon": "StraightTubesHeat.png", + "object": "nodeItem", + "args": ["straightTubesHeat"] + }, + "submersiblePump": { + "name": "Submersible pump", + "icon": "SubmersiblePump.png", + "object": "nodeItem", + "args": ["submersiblePump"] + }, + "sumpPump": { + "name": "Sump pump", + "icon": "SumpPump.png", + "object": "nodeItem", + "args": ["sumpPump"] + }, + "tank": { + "name": "Tank", + "icon": "Tank.png", + "object": "nodeItem", + "args": ["tank"] + }, + "transport": { + "name": "Transport", + "icon": "Transport.png", + "object": "nodeItem", + "args": ["transport"] + }, + "tripleFanBlades": { + "name": "Triple fan blades", + "icon": "TripleFanBlades.png", + "object": "nodeItem", + "args": ["tripleFanBlades"] + }, + "tubular": { + "name": "Tubular", + "icon": "Tubular.png", + "object": "nodeItem", + "args": ["tubular"] + }, + "turbineDriver": { + "name": "Turbine driver", + "icon": "TurbineDriver.png", + "object": "nodeItem", + "args": ["turbineDriver"] + }, + "turbinePump": { + "name": "Turbine pump", + "icon": "TurbinePump.png", + "object": "nodeItem", + "args": ["turbinePump"] + }, + "uTubeHeatExchanger": { + "name": "UTube heat exchanger", + "icon": "UTubeHeatExchanger.png", + "object": "nodeItem", + "args": ["uTubeHeatExchanger"] + }, + "vaccumPump": { + "name": "Vaccum pump", + "icon": "VaccumPump.png", + "object": "nodeItem", + "args": ["vaccumPump"] + }, + "variousCrushers": { + "name": "Various crushers", + "icon": "VariousCrushers.png", + "object": "nodeItem", + "args": ["variousCrushers"] + }, + "verticalPump": { + "name": "Vertical pump", + "icon": "VerticalPump.png", + "object": "nodeItem", + "args": ["verticalPump"] + }, + "verticalPump2": { + "name": "Vertical pump2", + "icon": "VerticalPump2.png", + "object": "nodeItem", + "args": ["verticalPump2"] + }, + "verticalVessel": { + "name": "Vertical vessel", + "icon": "VerticalVessel.png", + "object": "nodeItem", + "args": ["verticalVessel"] + }, + "vibrationCrusher": { + "name": "Vibration crusher", + "icon": "VibrationCrusher.png", + "object": "nodeItem", + "args": ["vibrationCrusher"] + }, + "wastewaterTreatment": { + "name": "Wastewater treatment", + "icon": "WastewaterTreatment.png", + "object": "nodeItem", + "args": ["wastewaterTreatment"] + } +}
\ No newline at end of file diff --git a/src/main/resources/base/config/paperSizes.json b/src/main/resources/base/config/paperSizes.json index 670b657..3f85b89 100644 --- a/src/main/resources/base/config/paperSizes.json +++ b/src/main/resources/base/config/paperSizes.json @@ -1 +1,32 @@ -{"A0": {"72": [2384, 3370], "96": [3179, 4494], "150": [4967, 7022], "300": [9933, 14043]}, "A1": {"72": [1684, 2384], "96": [2245, 3179], "150": [3508, 4967], "300": [7016, 9933]}, "A2": {"72": [1191, 1684], "96": [1587, 2245], "150": [2480, 3508], "300": [4960, 7016]}, "A3": {"72": [842, 1191], "96": [1123, 1587], "150": [1754, 2480], "300": [3508, 4960]}, "A4": {"72": [595, 842], "96": [794, 1123], "150": [1240, 1754], "300": [2480, 3508]}}
\ No newline at end of file +{ + "A0": { + "72": [2384, 3370], + "96": [3179, 4494], + "150": [4967, 7022], + "300": [9933, 14043] + }, + "A1": { + "72": [1684, 2384], + "96": [2245, 3179], + "150": [3508, 4967], + "300": [7016, 9933] + }, + "A2": { + "72": [1191, 1684], + "96": [1587, 2245], + "150": [2480, 3508], + "300": [4960, 7016] + }, + "A3": { + "72": [842, 1191], + "96": [1123, 1587], + "150": [1754, 2480], + "300": [3508, 4960] + }, + "A4": { + "72": [595, 842], + "96": [794, 1123], + "150": [1240, 1754], + "300": [2480, 3508] + } +}
\ No newline at end of file diff --git a/src/main/resources/base/toolbar/items.json b/src/main/resources/base/toolbar/items.json new file mode 100644 index 0000000..813bc38 --- /dev/null +++ b/src/main/resources/base/toolbar/items.json @@ -0,0 +1,902 @@ +{ + "airBlownCooler": { + "name": "Air blown cooler", + "icon": "AirBlownCooler.png", + "object": "nodeItem", + "args": ["airBlownCooler"] + }, + "alkylation": { + "name": "Alkylation", + "icon": "Alkylation.png", + "object": "nodeItem", + "args": ["alkylation"] + }, + "automaticStroker": { + "name": "Automatic stroker", + "icon": "AutomaticStroker.png", + "object": "nodeItem", + "args": ["automaticStroker"] + }, + "axialCompressor": { + "name": "Axial compressor", + "icon": "AxialCompressor.png", + "object": "nodeItem", + "args": ["axialCompressor"] + }, + "axialFlowFan": { + "name": "Axial flow fan", + "icon": "AxialFlowFan.png", + "object": "nodeItem", + "args": ["axialFlowFan"] + }, + "bag": { + "name": "Bag", + "icon": "Bag.png", + "object": "nodeItem", + "args": ["bag"] + }, + "boiler": { + "name": "Boiler", + "icon": "Boiler.png", + "object": "nodeItem", + "args": ["boiler"] + }, + "boomLoader": { + "name": "Boom loader", + "icon": "BoomLoader.png", + "object": "nodeItem", + "args": ["boomLoader"] + }, + "breaker": { + "name": "Breaker", + "icon": "Breaker.png", + "object": "nodeItem", + "args": ["breaker"] + }, + "briquettingMachine": { + "name": "Briquetting machine", + "icon": "BriquettingMachine.png", + "object": "nodeItem", + "args": ["briquettingMachine"] + }, + "cavityPump": { + "name": "Cavity pump", + "icon": "CavityPump.png", + "object": "nodeItem", + "args": ["cavityPump"] + }, + "centrifugal": { + "name": "Centrifugal", + "icon": "Centrifugal.png", + "object": "nodeItem", + "args": ["centrifugal"] + }, + "centrifugalBlower": { + "name": "Centrifugal blower", + "icon": "CentrifugalBlower.png", + "object": "nodeItem", + "args": ["centrifugalBlower"] + }, + "centrifugalCompressor": { + "name": "Centrifugal compressor", + "icon": "CentrifugalCompressor.png", + "object": "nodeItem", + "args": ["centrifugalCompressor"] + }, + "centrifugalCompressor2": { + "name": "Centrifugal compressor2", + "icon": "CentrifugalCompressor2.png", + "object": "nodeItem", + "args": ["centrifugalCompressor2"] + }, + "centrifugalCompressor3": { + "name": "Centrifugal compressor3", + "icon": "CentrifugalCompressor3.png", + "object": "nodeItem", + "args": ["centrifugalCompressor3"] + }, + "centrifugalCompressor4": { + "name": "Centrifugal compressor4", + "icon": "CentrifugalCompressor4.png", + "object": "nodeItem", + "args": ["centrifugalCompressor4"] + }, + "centrifugalPump": { + "name": "Centrifugal pump", + "icon": "CentrifugalPump.png", + "object": "nodeItem", + "args": ["centrifugalPump"] + }, + "centrifugalPump2": { + "name": "Centrifugal pump2", + "icon": "CentrifugalPump2.png", + "object": "nodeItem", + "args": ["centrifugalPump2"] + }, + "centrifugalPump3": { + "name": "Centrifugal pump3", + "icon": "CentrifugalPump3.png", + "object": "nodeItem", + "args": ["centrifugalPump3"] + }, + "centrifugalPump4": { + "name": "Centrifugal pump4", + "icon": "CentrifugalPump4.png", + "object": "nodeItem", + "args": ["centrifugalPump4"] + }, + "chimneyTowerHyperbolic": { + "name": "Chimney tower hyperbolic", + "icon": "ChimneyTowerHyperbolic.png", + "object": "nodeItem", + "args": ["chimneyTowerHyperbolic"] + }, + "coarseCrusher": { + "name": "Coarse crusher", + "icon": "CoarseCrusher.png", + "object": "nodeItem", + "args": ["coarseCrusher"] + }, + "column": { + "name": "Column", + "icon": "Column.png", + "object": "nodeItem", + "args": ["column"] + }, + "compressor": { + "name": "Compressor", + "icon": "Compressor.png", + "object": "nodeItem", + "args": ["compressor"] + }, + "compressor2": { + "name": "Compressor2", + "icon": "Compressor2.png", + "object": "nodeItem", + "args": ["compressor2"] + }, + "compressorSilencer": { + "name": "Compressor silencer", + "icon": "CompressorSilencer.png", + "object": "nodeItem", + "args": ["compressorSilencer"] + }, + "compressorVaccumPump": { + "name": "Compressor vaccum pump", + "icon": "CompressorVaccumPump.png", + "object": "nodeItem", + "args": ["compressorVaccumPump"] + }, + "condenser": { + "name": "Condenser", + "icon": "Condenser.png", + "object": "nodeItem", + "args": ["condenser"] + }, + "coneCrusher": { + "name": "Cone crusher", + "icon": "ConeCrusher.png", + "object": "nodeItem", + "args": ["coneCrusher"] + }, + "cooler": { + "name": "Cooler", + "icon": "Cooler.png", + "object": "nodeItem", + "args": ["cooler"] + }, + "coolingTower2": { + "name": "Cooling tower2", + "icon": "CoolingTower2.png", + "object": "nodeItem", + "args": ["coolingTower2"] + }, + "coolingTower3": { + "name": "Cooling tower3", + "icon": "CoolingTower3.png", + "object": "nodeItem", + "args": ["coolingTower3"] + }, + "counterflowForcedDraft": { + "name": "Counterflow forced draft", + "icon": "CounterflowForcedDraft.png", + "object": "nodeItem", + "args": ["counterflowForcedDraft"] + }, + "crossflowInducedDraft": { + "name": "Crossflow induced draft", + "icon": "CrossflowInducedDraft.png", + "object": "nodeItem", + "args": ["crossflowInducedDraft"] + }, + "crusher": { + "name": "Crusher", + "icon": "Crusher.png", + "object": "nodeItem", + "args": ["crusher"] + }, + "diaphragmCompressor": { + "name": "Diaphragm compressor", + "icon": "DiaphragmCompressor.png", + "object": "nodeItem", + "args": ["diaphragmCompressor"] + }, + "dieselMotor": { + "name": "Diesel motor", + "icon": "DieselMotor.png", + "object": "nodeItem", + "args": ["dieselMotor"] + }, + "doubleFlowTurbine": { + "name": "Double flow turbine", + "icon": "DoubleFlowTurbine.png", + "object": "nodeItem", + "args": ["doubleFlowTurbine"] + }, + "doublePipeHeat": { + "name": "Double pipe heat", + "icon": "DoublePipeHeat.png", + "object": "nodeItem", + "args": ["doublePipeHeat"] + }, + "dryer": { + "name": "Dryer", + "icon": "Dryer.png", + "object": "nodeItem", + "args": ["dryer"] + }, + "dryingOven": { + "name": "Drying oven", + "icon": "DryingOven.png", + "object": "nodeItem", + "args": ["dryingOven"] + }, + "ejector": { + "name": "Ejector", + "icon": "Ejector.png", + "object": "nodeItem", + "args": ["ejector"] + }, + "ejectorCompressor": { + "name": "Ejector compressor", + "icon": "EjectorCompressor.png", + "object": "nodeItem", + "args": ["ejectorCompressor"] + }, + "electricMotor": { + "name": "Electric motor", + "icon": "ElectricMotor.png", + "object": "nodeItem", + "args": ["electricMotor"] + }, + "extractorHood": { + "name": "Extractor hood", + "icon": "ExtractorHood.png", + "object": "nodeItem", + "args": ["extractorHood"] + }, + "fan": { + "name": "Fan", + "icon": "Fan.png", + "object": "nodeItem", + "args": ["fan"] + }, + "fanBlades": { + "name": "Fan blades", + "icon": "FanBlades.png", + "object": "nodeItem", + "args": ["fanBlades"] + }, + "fanBlades2": { + "name": "Fan blades2", + "icon": "FanBlades2.png", + "object": "nodeItem", + "args": ["fanBlades2"] + }, + "fineCrushers": { + "name": "Fine crushers", + "icon": "FineCrushers.png", + "object": "nodeItem", + "args": ["fineCrushers"] + }, + "firedHeater": { + "name": "Fired heater", + "icon": "FiredHeater.png", + "object": "nodeItem", + "args": ["firedHeater"] + }, + "fluidCatalyticCracking": { + "name": "Fluid catalytic cracking", + "icon": "FluidCatalyticCracking.png", + "object": "nodeItem", + "args": ["fluidCatalyticCracking"] + }, + "fluidCoking": { + "name": "Fluid coking", + "icon": "FluidCoking.png", + "object": "nodeItem", + "args": ["fluidCoking"] + }, + "fluidizedBedDryer": { + "name": "Fluidized bed dryer", + "icon": "FluidizedBedDryer.png", + "object": "nodeItem", + "args": ["fluidizedBedDryer"] + }, + "fluidizedReactor": { + "name": "Fluidized reactor", + "icon": "FluidizedReactor.png", + "object": "nodeItem", + "args": ["fluidizedReactor"] + }, + "forcedDraftCooling": { + "name": "Forced draft cooling", + "icon": "ForcedDraftCooling.png", + "object": "nodeItem", + "args": ["forcedDraftCooling"] + }, + "forcedDraftCoolingTower": { + "name": "Forced draft cooling tower", + "icon": "ForcedDraftCoolingTower.png", + "object": "nodeItem", + "args": ["forcedDraftCoolingTower"] + }, + "furnace": { + "name": "Furnace", + "icon": "Furnace.png", + "object": "nodeItem", + "args": ["furnace"] + }, + "furnace2": { + "name": "Furnace2", + "icon": "Furnace2.png", + "object": "nodeItem", + "args": ["furnace2"] + }, + "gasBlower": { + "name": "Gas blower", + "icon": "GasBlower.png", + "object": "nodeItem", + "args": ["gasBlower"] + }, + "gasBottle": { + "name": "Gas bottle", + "icon": "GasBottle.png", + "object": "nodeItem", + "args": ["gasBottle"] + }, + "gearPump": { + "name": "Gear pump", + "icon": "GearPump.png", + "object": "nodeItem", + "args": ["gearPump"] + }, + "generator": { + "name": "Generator", + "icon": "Generator.png", + "object": "nodeItem", + "args": ["generator"] + }, + "halfPipeMixingVessel": { + "name": "Half pipe mixing vessel", + "icon": "HalfPipeMixingVessel.png", + "object": "nodeItem", + "args": ["halfPipeMixingVessel"] + }, + "hammerCrusher": { + "name": "Hammer crusher", + "icon": "HammerCrusher.png", + "object": "nodeItem", + "args": ["hammerCrusher"] + }, + "hammerCrusher2": { + "name": "Hammer crusher2", + "icon": "HammerCrusher2.png", + "object": "nodeItem", + "args": ["hammerCrusher2"] + }, + "heatConsumer": { + "name": "Heat consumer", + "icon": "HeatConsumer.png", + "object": "nodeItem", + "args": ["heatConsumer"] + }, + "heater": { + "name": "Heater", + "icon": "Heater.png", + "object": "nodeItem", + "args": ["heater"] + }, + "heatExchanger": { + "name": "Heat exchanger", + "icon": "HeatExchanger.png", + "object": "nodeItem", + "args": ["heatExchanger"] + }, + "heatExchanger2": { + "name": "Heat exchanger2", + "icon": "HeatExchanger2.png", + "object": "nodeItem", + "args": ["heatExchanger2"] + }, + "horizontalPump": { + "name": "Horizontal pump", + "icon": "HorizontalPump.png", + "object": "nodeItem", + "args": ["horizontalPump"] + }, + "horizontalVessel": { + "name": "Horizontal vessel", + "icon": "HorizontalVessel.png", + "object": "nodeItem", + "args": ["horizontalVessel"] + }, + "hydroCracking": { + "name": "Hydro cracking", + "icon": "HydroCracking.png", + "object": "nodeItem", + "args": ["hydroCracking"] + }, + "hydrocracking2": { + "name": "Hydrocracking2", + "icon": "Hydrocracking2.png", + "object": "nodeItem", + "args": ["hydrocracking2"] + }, + "hydrodesulfurization": { + "name": "Hydrodesulfurization", + "icon": "Hydrodesulfurization.png", + "object": "nodeItem", + "args": ["hydrodesulfurization"] + }, + "iconsaaa": { + "name": "iconsaaa", + "icon": "iconsaaa.png", + "object": "nodeItem", + "args": ["iconsaaa"] + }, + "impactCrusher": { + "name": "Impact crusher", + "icon": "ImpactCrusher.png", + "object": "nodeItem", + "args": ["impactCrusher"] + }, + "iSOCentrifugalPump": { + "name": "ISOCentrifugal pump", + "icon": "ISOCentrifugalPump.png", + "object": "nodeItem", + "args": ["iSOCentrifugalPump"] + }, + "iSODiaphragmPump": { + "name": "ISODiaphragm pump", + "icon": "ISODiaphragmPump.png", + "object": "nodeItem", + "args": ["iSODiaphragmPump"] + }, + "iSOGearPump": { + "name": "ISOGear pump", + "icon": "ISOGearPump.png", + "object": "nodeItem", + "args": ["iSOGearPump"] + }, + "iSOLiquidPump": { + "name": "ISOLiquid pump", + "icon": "ISOLiquidPump.png", + "object": "nodeItem", + "args": ["iSOLiquidPump"] + }, + "iSOPositiveDisplacementPump": { + "name": "ISOPositive displacement pump", + "icon": "ISOPositiveDisplacementPump.png", + "object": "nodeItem", + "args": ["iSOPositiveDisplacementPump"] + }, + "iSOProgressivePump": { + "name": "ISOProgressive pump", + "icon": "ISOProgressivePump.png", + "object": "nodeItem", + "args": ["iSOProgressivePump"] + }, + "iSOReciprocatingPistonPump": { + "name": "ISOReciprocating piston pump", + "icon": "ISOReciprocatingPistonPump.png", + "object": "nodeItem", + "args": ["iSOReciprocatingPistonPump"] + }, + "iSOScrewPump": { + "name": "ISOScrew pump", + "icon": "ISOScrewPump.png", + "object": "nodeItem", + "args": ["iSOScrewPump"] + }, + "jacketedMixingVessel": { + "name": "Jacketed mixing vessel", + "icon": "JacketedMixingVessel.png", + "object": "nodeItem", + "args": ["jacketedMixingVessel"] + }, + "jawCrusher": { + "name": "Jaw crusher", + "icon": "JawCrusher.png", + "object": "nodeItem", + "args": ["jawCrusher"] + }, + "liquidRingCompressor": { + "name": "Liquid ring compressor", + "icon": "LiquidRingCompressor.png", + "object": "nodeItem", + "args": ["liquidRingCompressor"] + }, + "liquidRingVaccumPump": { + "name": "Liquid ring vaccum pump", + "icon": "LiquidRingVaccumPump.png", + "object": "nodeItem", + "args": ["liquidRingVaccumPump"] + }, + "mediumCrusher": { + "name": "Medium crusher", + "icon": "MediumCrusher.png", + "object": "nodeItem", + "args": ["mediumCrusher"] + }, + "mixing": { + "name": "Mixing", + "icon": "Mixing.png", + "object": "nodeItem", + "args": ["mixing"] + }, + "mixingReactor": { + "name": "Mixing reactor", + "icon": "MixingReactor.png", + "object": "nodeItem", + "args": ["mixingReactor"] + }, + "motor": { + "name": "Motor", + "icon": "Motor.png", + "object": "nodeItem", + "args": ["motor"] + }, + "motorDrivenTurbin": { + "name": "Motor driven turbin", + "icon": "MotorDrivenTurbin.png", + "object": "nodeItem", + "args": ["motorDrivenTurbin"] + }, + "motorGenerator": { + "name": "Motor generator", + "icon": "MotorGenerator.png", + "object": "nodeItem", + "args": ["motorGenerator"] + }, + "movingShelfDryer": { + "name": "Moving shelf dryer", + "icon": "MovingShelfDryer.png", + "object": "nodeItem", + "args": ["movingShelfDryer"] + }, + "oilBurner": { + "name": "Oil burner", + "icon": "OilBurner.png", + "object": "nodeItem", + "args": ["oilBurner"] + }, + "openTank": { + "name": "Open tank", + "icon": "OpenTank.png", + "object": "nodeItem", + "args": ["openTank"] + }, + "packedTower": { + "name": "Packed tower", + "icon": "PackedTower.png", + "object": "nodeItem", + "args": ["packedTower"] + }, + "peristallticPump": { + "name": "Peristalltic pump", + "icon": "PeristallticPump.png", + "object": "nodeItem", + "args": ["peristallticPump"] + }, + "pistonCompressor": { + "name": "Piston compressor", + "icon": "PistonCompressor.png", + "object": "nodeItem", + "args": ["pistonCompressor"] + }, + "plateTower": { + "name": "Plate tower", + "icon": "PlateTower.png", + "object": "nodeItem", + "args": ["plateTower"] + }, + "positiveDisplacementPump": { + "name": "Positive displacement pump", + "icon": "PositiveDisplacementPump.png", + "object": "nodeItem", + "args": ["positiveDisplacementPump"] + }, + "positiveDisplacementPump2": { + "name": "Positive displacement pump2", + "icon": "PositiveDisplacementPump2.png", + "object": "nodeItem", + "args": ["positiveDisplacementPump2"] + }, + "proportioningPump": { + "name": "Proportioning pump", + "icon": "ProportioningPump.png", + "object": "nodeItem", + "args": ["proportioningPump"] + }, + "proportioningPump2": { + "name": "Proportioning pump2", + "icon": "ProportioningPump2.png", + "object": "nodeItem", + "args": ["proportioningPump2"] + }, + "pump": { + "name": "Pump", + "icon": "Pump.png", + "object": "nodeItem", + "args": ["pump"] + }, + "pump2": { + "name": "Pump2", + "icon": "Pump2.png", + "object": "nodeItem", + "args": ["pump2"] + }, + "reboilerHeatExchanger": { + "name": "Reboiler heat exchanger", + "icon": "ReboilerHeatExchanger.png", + "object": "nodeItem", + "args": ["reboilerHeatExchanger"] + }, + "reciprocatingCompressor": { + "name": "Reciprocating compressor", + "icon": "ReciprocatingCompressor.png", + "object": "nodeItem", + "args": ["reciprocatingCompressor"] + }, + "reciprocatingCompressor2": { + "name": "Reciprocating compressor2", + "icon": "ReciprocatingCompressor2.png", + "object": "nodeItem", + "args": ["reciprocatingCompressor2"] + }, + "reciprocatingPump": { + "name": "Reciprocating pump", + "icon": "ReciprocatingPump.png", + "object": "nodeItem", + "args": ["reciprocatingPump"] + }, + "reciprocatingPump2": { + "name": "Reciprocating pump2", + "icon": "ReciprocatingPump2.png", + "object": "nodeItem", + "args": ["reciprocatingPump2"] + }, + "reciprocativeCompressor": { + "name": "Reciprocative compressor", + "icon": "ReciprocativeCompressor.png", + "object": "nodeItem", + "args": ["reciprocativeCompressor"] + }, + "ringCompressor": { + "name": "Ring compressor", + "icon": "RingCompressor.png", + "object": "nodeItem", + "args": ["ringCompressor"] + }, + "rollerConveryorBeltDryer": { + "name": "Roller converyor belt dryer", + "icon": "RollerConveryorBeltDryer.png", + "object": "nodeItem", + "args": ["rollerConveryorBeltDryer"] + }, + "rollerCrusher": { + "name": "Roller crusher", + "icon": "RollerCrusher.png", + "object": "nodeItem", + "args": ["rollerCrusher"] + }, + "rollerVaneCompressor": { + "name": "Roller vane compressor", + "icon": "RollerVaneCompressor.png", + "object": "nodeItem", + "args": ["rollerVaneCompressor"] + }, + "rotaryCompressor": { + "name": "Rotary compressor", + "icon": "RotaryCompressor.png", + "object": "nodeItem", + "args": ["rotaryCompressor"] + }, + "rotaryCompressor2": { + "name": "Rotary compressor2", + "icon": "RotaryCompressor2.png", + "object": "nodeItem", + "args": ["rotaryCompressor2"] + }, + "rotaryCompressor3": { + "name": "Rotary compressor3", + "icon": "RotaryCompressor3.png", + "object": "nodeItem", + "args": ["rotaryCompressor3"] + }, + "rotaryCompressorSilencers": { + "name": "Rotary compressor silencers", + "icon": "RotaryCompressorSilencers.png", + "object": "nodeItem", + "args": ["rotaryCompressorSilencers"] + }, + "rotaryGearPump": { + "name": "Rotary gear pump", + "icon": "RotaryGearPump.png", + "object": "nodeItem", + "args": ["rotaryGearPump"] + }, + "rotaryPump": { + "name": "Rotary pump", + "icon": "RotaryPump.png", + "object": "nodeItem", + "args": ["rotaryPump"] + }, + "screen": { + "name": "Screen", + "icon": "Screen.png", + "object": "nodeItem", + "args": ["screen"] + }, + "screwPump": { + "name": "Screw pump", + "icon": "ScrewPump.png", + "object": "nodeItem", + "args": ["screwPump"] + }, + "screwPump2": { + "name": "Screw pump2", + "icon": "ScrewPump2.png", + "object": "nodeItem", + "args": ["screwPump2"] + }, + "selectableCompressor": { + "name": "Selectable compressor", + "icon": "SelectableCompressor.png", + "object": "nodeItem", + "args": ["selectableCompressor"] + }, + "selectableFan": { + "name": "Selectable fan", + "icon": "SelectableFan.png", + "object": "nodeItem", + "args": ["selectableFan"] + }, + "singlePassHeat": { + "name": "Single pass heat", + "icon": "SinglePassHeat.png", + "object": "nodeItem", + "args": ["singlePassHeat"] + }, + "spiralHeatExchanger": { + "name": "Spiral heat exchanger", + "icon": "SpiralHeatExchanger.png", + "object": "nodeItem", + "args": ["spiralHeatExchanger"] + }, + "spray": { + "name": "Spray", + "icon": "Spray.png", + "object": "nodeItem", + "args": ["spray"] + }, + "sprayDryer": { + "name": "Spray dryer", + "icon": "SprayDryer.png", + "object": "nodeItem", + "args": ["sprayDryer"] + }, + "straightTubesHeat": { + "name": "Straight tubes heat", + "icon": "StraightTubesHeat.png", + "object": "nodeItem", + "args": ["straightTubesHeat"] + }, + "submersiblePump": { + "name": "Submersible pump", + "icon": "SubmersiblePump.png", + "object": "nodeItem", + "args": ["submersiblePump"] + }, + "sumpPump": { + "name": "Sump pump", + "icon": "SumpPump.png", + "object": "nodeItem", + "args": ["sumpPump"] + }, + "tank": { + "name": "Tank", + "icon": "Tank.png", + "object": "nodeItem", + "args": ["tank"] + }, + "transport": { + "name": "Transport", + "icon": "Transport.png", + "object": "nodeItem", + "args": ["transport"] + }, + "tripleFanBlades": { + "name": "Triple fan blades", + "icon": "TripleFanBlades.png", + "object": "nodeItem", + "args": ["tripleFanBlades"] + }, + "tubular": { + "name": "Tubular", + "icon": "Tubular.png", + "object": "nodeItem", + "args": ["tubular"] + }, + "turbineDriver": { + "name": "Turbine driver", + "icon": "TurbineDriver.png", + "object": "nodeItem", + "args": ["turbineDriver"] + }, + "turbinePump": { + "name": "Turbine pump", + "icon": "TurbinePump.png", + "object": "nodeItem", + "args": ["turbinePump"] + }, + "uTubeHeatExchanger": { + "name": "UTube heat exchanger", + "icon": "UTubeHeatExchanger.png", + "object": "nodeItem", + "args": ["uTubeHeatExchanger"] + }, + "vaccumPump": { + "name": "Vaccum pump", + "icon": "VaccumPump.png", + "object": "nodeItem", + "args": ["vaccumPump"] + }, + "variousCrushers": { + "name": "Various crushers", + "icon": "VariousCrushers.png", + "object": "nodeItem", + "args": ["variousCrushers"] + }, + "verticalPump": { + "name": "Vertical pump", + "icon": "VerticalPump.png", + "object": "nodeItem", + "args": ["verticalPump"] + }, + "verticalPump2": { + "name": "Vertical pump2", + "icon": "VerticalPump2.png", + "object": "nodeItem", + "args": ["verticalPump2"] + }, + "verticalVessel": { + "name": "Vertical vessel", + "icon": "VerticalVessel.png", + "object": "nodeItem", + "args": ["verticalVessel"] + }, + "vibrationCrusher": { + "name": "Vibration crusher", + "icon": "VibrationCrusher.png", + "object": "nodeItem", + "args": ["vibrationCrusher"] + }, + "wastewaterTreatment": { + "name": "Wastewater treatment", + "icon": "WastewaterTreatment.png", + "object": "nodeItem", + "args": ["wastewaterTreatment"] + } +}
\ No newline at end of file diff --git a/src/main/resources/base/toolbar/script.py b/src/main/resources/base/toolbar/script.py new file mode 100644 index 0000000..b56fe32 --- /dev/null +++ b/src/main/resources/base/toolbar/script.py @@ -0,0 +1,28 @@ +from subprocess import call +from os import listdir +from json import load, dump +from re import compile + +def repl(x): + return f"{x[0][0]} {x[0][1].lower()}" + +regex = compile(r"([a-z][A-Z])") +try: + with open("item.json", "r") as file: + dict = load(file) +except FileNotFoundError: + dict = {} +for file in listdir("."): + if file.endswith(".png"): + command = f"convert {file} -thumbnail '64x64>' -gravity center -background transparent -extent 64x64 icons\\{file}" + _ = call(command, shell=True) + name = regex.sub(repl, file)[:-4] + dict[file[0].lower() + file[1:-4]] = { + 'name': name, + 'icon': file, + 'object': 'nodeItem', + 'args': [file[0].lower() + file[1:-4]] + } + +with open("items.json", "w") as file: + dump(dict, file)
\ No newline at end of file |