|
|
|
@@ -35,25 +35,25 @@ struct RoundKnob : SVGKnob { |
|
|
|
|
|
|
|
struct RoundBlackKnob : RoundKnob { |
|
|
|
RoundBlackKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/RoundBlackKnob.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/RoundBlackKnob.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct RoundSmallBlackKnob : RoundKnob { |
|
|
|
RoundSmallBlackKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/RoundSmallBlackKnob.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/RoundSmallBlackKnob.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct RoundLargeBlackKnob : RoundKnob { |
|
|
|
RoundLargeBlackKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/RoundLargeBlackKnob.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/RoundLargeBlackKnob.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct RoundHugeBlackKnob : RoundKnob { |
|
|
|
RoundHugeBlackKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/RoundHugeBlackKnob.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/RoundHugeBlackKnob.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -74,37 +74,37 @@ struct Davies1900hKnob : SVGKnob { |
|
|
|
|
|
|
|
struct Davies1900hWhiteKnob : Davies1900hKnob { |
|
|
|
Davies1900hWhiteKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Davies1900hWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Davies1900hWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Davies1900hBlackKnob : Davies1900hKnob { |
|
|
|
Davies1900hBlackKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Davies1900hBlack.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Davies1900hBlack.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Davies1900hRedKnob : Davies1900hKnob { |
|
|
|
Davies1900hRedKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Davies1900hRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Davies1900hRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Davies1900hLargeWhiteKnob : Davies1900hKnob { |
|
|
|
Davies1900hLargeWhiteKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Davies1900hLargeWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Davies1900hLargeWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Davies1900hLargeBlackKnob : Davies1900hKnob { |
|
|
|
Davies1900hLargeBlackKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Davies1900hLargeBlack.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Davies1900hLargeBlack.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Davies1900hLargeRedKnob : Davies1900hKnob { |
|
|
|
Davies1900hLargeRedKnob() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Davies1900hLargeRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Davies1900hLargeRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -118,163 +118,163 @@ struct Rogan : SVGKnob { |
|
|
|
|
|
|
|
struct Rogan6PSWhite : Rogan { |
|
|
|
Rogan6PSWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan6PSWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan6PSWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan5PSGray : Rogan { |
|
|
|
Rogan5PSGray() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan5PSGray.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan5PSGray.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PSBlue : Rogan { |
|
|
|
Rogan3PSBlue() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PSBlue.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PSBlue.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PSRed : Rogan { |
|
|
|
Rogan3PSRed() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PSRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PSRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PSGreen : Rogan { |
|
|
|
Rogan3PSGreen() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PSGreen.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PSGreen.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PSWhite : Rogan { |
|
|
|
Rogan3PSWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PSWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PSWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PBlue : Rogan { |
|
|
|
Rogan3PBlue() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PBlue.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PBlue.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PRed : Rogan { |
|
|
|
Rogan3PRed() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PGreen : Rogan { |
|
|
|
Rogan3PGreen() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PGreen.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PGreen.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan3PWhite : Rogan { |
|
|
|
Rogan3PWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan3PWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan3PWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2SGray : Rogan { |
|
|
|
Rogan2SGray() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2SGray.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2SGray.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PSBlue : Rogan { |
|
|
|
Rogan2PSBlue() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PSBlue.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PSBlue.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PSRed : Rogan { |
|
|
|
Rogan2PSRed() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PSRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PSRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PSGreen : Rogan { |
|
|
|
Rogan2PSGreen() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PSGreen.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PSGreen.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PSWhite : Rogan { |
|
|
|
Rogan2PSWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PSWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PSWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PBlue : Rogan { |
|
|
|
Rogan2PBlue() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PBlue.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PBlue.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PRed : Rogan { |
|
|
|
Rogan2PRed() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PGreen : Rogan { |
|
|
|
Rogan2PGreen() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PGreen.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PGreen.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan2PWhite : Rogan { |
|
|
|
Rogan2PWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan2PWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan2PWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PSBlue : Rogan { |
|
|
|
Rogan1PSBlue() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PSBlue.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PSBlue.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PSRed : Rogan { |
|
|
|
Rogan1PSRed() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PSRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PSRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PSGreen : Rogan { |
|
|
|
Rogan1PSGreen() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PSGreen.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PSGreen.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PSWhite : Rogan { |
|
|
|
Rogan1PSWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PSWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PSWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PBlue : Rogan { |
|
|
|
Rogan1PBlue() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PBlue.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PBlue.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PRed : Rogan { |
|
|
|
Rogan1PRed() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PRed.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PRed.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PGreen : Rogan { |
|
|
|
Rogan1PGreen() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PGreen.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PGreen.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct Rogan1PWhite : Rogan { |
|
|
|
Rogan1PWhite() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Rogan1PWhite.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Rogan1PWhite.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -283,9 +283,9 @@ struct SynthTechAlco : SVGKnob { |
|
|
|
SynthTechAlco() { |
|
|
|
minAngle = -0.82*M_PI; |
|
|
|
maxAngle = 0.82*M_PI; |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/SynthTechAlco.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/SynthTechAlco.svg"))); |
|
|
|
SVGWidget *cap = new SVGWidget(); |
|
|
|
cap->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/SynthTechAlco_cap.svg"))); |
|
|
|
cap->setSVG(SVG::load(asset::global("res/ComponentLibrary/SynthTechAlco_cap.svg"))); |
|
|
|
addChild(cap); |
|
|
|
} |
|
|
|
}; |
|
|
|
@@ -294,7 +294,7 @@ struct Trimpot : SVGKnob { |
|
|
|
Trimpot() { |
|
|
|
minAngle = -0.75*M_PI; |
|
|
|
maxAngle = 0.75*M_PI; |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/Trimpot.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/Trimpot.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -302,7 +302,7 @@ struct BefacoBigKnob : SVGKnob { |
|
|
|
BefacoBigKnob() { |
|
|
|
minAngle = -0.75*M_PI; |
|
|
|
maxAngle = 0.75*M_PI; |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/BefacoBigKnob.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/BefacoBigKnob.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -317,7 +317,7 @@ struct BefacoTinyKnob : SVGKnob { |
|
|
|
BefacoTinyKnob() { |
|
|
|
minAngle = -0.75*M_PI; |
|
|
|
maxAngle = 0.75*M_PI; |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/BefacoTinyKnob.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/BefacoTinyKnob.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -326,7 +326,7 @@ struct BefacoSlidePot : SVGSlider { |
|
|
|
Vec margin = Vec(3.5, 3.5); |
|
|
|
maxHandlePos = Vec(-1, -2).plus(margin); |
|
|
|
minHandlePos = Vec(-1, 87).plus(margin); |
|
|
|
setSVGs(SVG::load(assetGlobal("res/ComponentLibrary/BefacoSlidePot.svg")), SVG::load(assetGlobal("res/ComponentLibrary/BefacoSlidePotHandle.svg"))); |
|
|
|
setSVGs(SVG::load(asset::global("res/ComponentLibrary/BefacoSlidePot.svg")), SVG::load(asset::global("res/ComponentLibrary/BefacoSlidePotHandle.svg"))); |
|
|
|
background->box.pos = margin; |
|
|
|
box.size = background->box.size.plus(margin.mult(2)); |
|
|
|
} |
|
|
|
@@ -336,38 +336,38 @@ struct LEDSlider : SVGSlider { |
|
|
|
LEDSlider() { |
|
|
|
maxHandlePos = mm2px(Vec(0.738, 0.738).plus(Vec(2, 0))); |
|
|
|
minHandlePos = mm2px(Vec(0.738, 22.078).plus(Vec(2, 0))); |
|
|
|
setSVGs(SVG::load(assetGlobal("res/ComponentLibrary/LEDSlider.svg")), NULL); |
|
|
|
setSVGs(SVG::load(asset::global("res/ComponentLibrary/LEDSlider.svg")), NULL); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/** API is unstable for LEDSlider. Will add a LightWidget later. */ |
|
|
|
struct LEDSliderGreen : LEDSlider { |
|
|
|
LEDSliderGreen() { |
|
|
|
handle->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/LEDSliderGreenHandle.svg"))); |
|
|
|
handle->setSVG(SVG::load(asset::global("res/ComponentLibrary/LEDSliderGreenHandle.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDSliderRed : LEDSlider { |
|
|
|
LEDSliderRed() { |
|
|
|
handle->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/LEDSliderRedHandle.svg"))); |
|
|
|
handle->setSVG(SVG::load(asset::global("res/ComponentLibrary/LEDSliderRedHandle.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDSliderYellow : LEDSlider { |
|
|
|
LEDSliderYellow() { |
|
|
|
handle->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/LEDSliderYellowHandle.svg"))); |
|
|
|
handle->setSVG(SVG::load(asset::global("res/ComponentLibrary/LEDSliderYellowHandle.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDSliderBlue : LEDSlider { |
|
|
|
LEDSliderBlue() { |
|
|
|
handle->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/LEDSliderBlueHandle.svg"))); |
|
|
|
handle->setSVG(SVG::load(asset::global("res/ComponentLibrary/LEDSliderBlueHandle.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDSliderWhite : LEDSlider { |
|
|
|
LEDSliderWhite() { |
|
|
|
handle->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/LEDSliderWhiteHandle.svg"))); |
|
|
|
handle->setSVG(SVG::load(asset::global("res/ComponentLibrary/LEDSliderWhiteHandle.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -377,19 +377,19 @@ struct LEDSliderWhite : LEDSlider { |
|
|
|
|
|
|
|
struct PJ301MPort : SVGPort { |
|
|
|
PJ301MPort() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/PJ301M.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/PJ301M.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct PJ3410Port : SVGPort { |
|
|
|
PJ3410Port() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/PJ3410.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/PJ3410.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct CL1362Port : SVGPort { |
|
|
|
CL1362Port() { |
|
|
|
setSVG(SVG::load(assetGlobal("res/ComponentLibrary/CL1362.svg"))); |
|
|
|
setSVG(SVG::load(asset::global("res/ComponentLibrary/CL1362.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -512,83 +512,83 @@ struct PB61303Light : BASE { |
|
|
|
|
|
|
|
struct NKK : SVGSwitch, ToggleSwitch { |
|
|
|
NKK() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/NKK_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/NKK_1.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/NKK_2.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/NKK_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/NKK_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/NKK_2.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct CKSS : SVGSwitch, ToggleSwitch { |
|
|
|
CKSS() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKSS_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKSS_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKSS_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKSS_1.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct CKSSThree : SVGSwitch, ToggleSwitch { |
|
|
|
CKSSThree() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKSSThree_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKSSThree_1.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKSSThree_2.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKSSThree_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKSSThree_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKSSThree_2.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct CKD6 : SVGSwitch, MomentarySwitch { |
|
|
|
CKD6() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKD6_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/CKD6_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKD6_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/CKD6_1.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct TL1105 : SVGSwitch, MomentarySwitch { |
|
|
|
TL1105() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/TL1105_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/TL1105_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/TL1105_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/TL1105_1.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDButton : SVGSwitch, MomentarySwitch { |
|
|
|
LEDButton() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/LEDButton.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/LEDButton.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct BefacoSwitch : SVGSwitch, ToggleSwitch { |
|
|
|
BefacoSwitch() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/BefacoSwitch_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/BefacoSwitch_1.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/BefacoSwitch_2.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/BefacoSwitch_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/BefacoSwitch_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/BefacoSwitch_2.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct BefacoPush : SVGSwitch, MomentarySwitch { |
|
|
|
BefacoPush() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/BefacoPush_0.svg"))); |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/BefacoPush_1.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/BefacoPush_0.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/BefacoPush_1.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDBezel : SVGSwitch, MomentarySwitch { |
|
|
|
LEDBezel() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/LEDBezel.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/LEDBezel.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct PB61303 : SVGSwitch, MomentarySwitch { |
|
|
|
PB61303() { |
|
|
|
addFrame(SVG::load(assetGlobal("res/ComponentLibrary/PB61303.svg"))); |
|
|
|
addFrame(SVG::load(asset::global("res/ComponentLibrary/PB61303.svg"))); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct PB61303Button : SVGButton { |
|
|
|
PB61303Button() { |
|
|
|
setSVGs(SVG::load(assetGlobal("res/ComponentLibrary/PB61303.svg")), NULL); |
|
|
|
setSVGs(SVG::load(asset::global("res/ComponentLibrary/PB61303.svg")), NULL); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct LEDBezelButton : SVGButton { |
|
|
|
LEDBezelButton() { |
|
|
|
setSVGs(SVG::load(assetGlobal("res/ComponentLibrary/LEDBezel.svg")), NULL); |
|
|
|
setSVGs(SVG::load(asset::global("res/ComponentLibrary/LEDBezel.svg")), NULL); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -598,14 +598,14 @@ struct LEDBezelButton : SVGButton { |
|
|
|
|
|
|
|
struct ScrewSilver : SVGScrew { |
|
|
|
ScrewSilver() { |
|
|
|
sw->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/ScrewSilver.svg"))); |
|
|
|
sw->setSVG(SVG::load(asset::global("res/ComponentLibrary/ScrewSilver.svg"))); |
|
|
|
box.size = sw->box.size; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct ScrewBlack : SVGScrew { |
|
|
|
ScrewBlack() { |
|
|
|
sw->setSVG(SVG::load(assetGlobal("res/ComponentLibrary/ScrewBlack.svg"))); |
|
|
|
sw->setSVG(SVG::load(asset::global("res/ComponentLibrary/ScrewBlack.svg"))); |
|
|
|
box.size = sw->box.size; |
|
|
|
} |
|
|
|
}; |
|
|
|
|