|
@@ -14,18 +14,18 @@
|
|
|
|
|
|
|
|
using namespace Framework;
|
|
using namespace Framework;
|
|
|
|
|
|
|
|
-// Contents of the AuswahlBox class from SelectionBox.h
|
|
|
|
|
|
|
+// Contents of the SelectionBox class from SelectionBox.h
|
|
|
// Constructor
|
|
// Constructor
|
|
|
-AuswahlBox::AuswahlBox()
|
|
|
|
|
|
|
+SelectionBox::SelectionBox()
|
|
|
: DrawableBackground(),
|
|
: DrawableBackground(),
|
|
|
textRd(0),
|
|
textRd(0),
|
|
|
msStyle(0),
|
|
msStyle(0),
|
|
|
members(new RCArray<TextField>()),
|
|
members(new RCArray<TextField>()),
|
|
|
- ausfahren(new Knopf()),
|
|
|
|
|
|
|
+ ausfahren(new Button()),
|
|
|
selBorder(new LBorder()),
|
|
selBorder(new LBorder()),
|
|
|
auswBgF(0xFF000000),
|
|
auswBgF(0xFF000000),
|
|
|
auswBgB(0),
|
|
auswBgB(0),
|
|
|
- auswAf(new AlphaFeld()),
|
|
|
|
|
|
|
+ auswAf(new AlphaField()),
|
|
|
msSelBorder(0),
|
|
msSelBorder(0),
|
|
|
msAuswBgF(0),
|
|
msAuswBgF(0),
|
|
|
msAuswBgB(0),
|
|
msAuswBgB(0),
|
|
@@ -33,7 +33,7 @@ AuswahlBox::AuswahlBox()
|
|
|
mouseBorder(new LBorder()),
|
|
mouseBorder(new LBorder()),
|
|
|
mausBgF(0xFF000000),
|
|
mausBgF(0xFF000000),
|
|
|
mausBgB(0),
|
|
mausBgB(0),
|
|
|
- mausAf(new AlphaFeld()),
|
|
|
|
|
|
|
+ mausAf(new AlphaField()),
|
|
|
msMouseBorder(0),
|
|
msMouseBorder(0),
|
|
|
msMausBgF(0),
|
|
msMausBgF(0),
|
|
|
msMausBgB(0),
|
|
msMausBgB(0),
|
|
@@ -55,8 +55,8 @@ AuswahlBox::AuswahlBox()
|
|
|
rahmen = new LBorder();
|
|
rahmen = new LBorder();
|
|
|
rahmen->setFarbe(0xFFFFFFFF);
|
|
rahmen->setFarbe(0xFFFFFFFF);
|
|
|
rahmen->setRamenBreite(1);
|
|
rahmen->setRamenBreite(1);
|
|
|
- ausfahren->setStyle(Knopf::Style::Sichtbar | Knopf::Style::Erlaubt
|
|
|
|
|
- | Knopf::Style::KlickBuffer);
|
|
|
|
|
|
|
+ ausfahren->setStyle(Button::Style::Sichtbar | Button::Style::Erlaubt
|
|
|
|
|
+ | Button::Style::KlickBuffer);
|
|
|
ausfahren->setKBFarbe(0xA0000000);
|
|
ausfahren->setKBFarbe(0xA0000000);
|
|
|
ausfahren->setKBStrength(10);
|
|
ausfahren->setKBStrength(10);
|
|
|
ausfahren->setSize(18, 18);
|
|
ausfahren->setSize(18, 18);
|
|
@@ -75,7 +75,7 @@ AuswahlBox::AuswahlBox()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Destructor
|
|
// Destructor
|
|
|
-AuswahlBox::~AuswahlBox()
|
|
|
|
|
|
|
+SelectionBox::~SelectionBox()
|
|
|
{
|
|
{
|
|
|
if (textRd) textRd->release();
|
|
if (textRd) textRd->release();
|
|
|
if (msStyle) msStyle->release();
|
|
if (msStyle) msStyle->release();
|
|
@@ -97,7 +97,7 @@ AuswahlBox::~AuswahlBox()
|
|
|
if (msMausBgF) msMausBgF->release();
|
|
if (msMausBgF) msMausBgF->release();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::doMausEreignis(MausEreignis& me, bool userRet) // mouse events
|
|
|
|
|
|
|
+void SelectionBox::doMouseEvent(MouseEvent& me, bool userRet) // mouse events
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::Erlaubt) || hatStyleNicht(Style::Fokus)
|
|
if (hatStyleNicht(Style::Erlaubt) || hatStyleNicht(Style::Fokus)
|
|
|
|| me.verarbeitet)
|
|
|| me.verarbeitet)
|
|
@@ -118,7 +118,7 @@ void AuswahlBox::doMausEreignis(MausEreignis& me, bool userRet) // mouse events
|
|
|
int tmpMy = me.my;
|
|
int tmpMy = me.my;
|
|
|
if (me.mx >= 0 && me.my >= 0 && me.mx < gr.x && me.my < gr.y)
|
|
if (me.mx >= 0 && me.my >= 0 && me.mx < gr.x && me.my < gr.y)
|
|
|
me.mx = ausfahren->getX(), me.my = ausfahren->getY() + 1;
|
|
me.mx = ausfahren->getX(), me.my = ausfahren->getY() + 1;
|
|
|
- ausfahren->doPublicMausEreignis(me);
|
|
|
|
|
|
|
+ ausfahren->doPublicMouseEvent(me);
|
|
|
me.mx = tmpMx, me.my = tmpMy;
|
|
me.mx = tmpMx, me.my = tmpMy;
|
|
|
}
|
|
}
|
|
|
if (me.verarbeitet && !vera && me.id == ME_RLinks)
|
|
if (me.verarbeitet && !vera && me.id == ME_RLinks)
|
|
@@ -194,18 +194,18 @@ void AuswahlBox::doMausEreignis(MausEreignis& me, bool userRet) // mouse events
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// non-constant
|
|
// non-constant
|
|
|
-void AuswahlBox::setEventParam(void* p) // set event parameter
|
|
|
|
|
|
|
+void SelectionBox::setEventParam(void* p) // set event parameter
|
|
|
{
|
|
{
|
|
|
eAkP = p;
|
|
eAkP = p;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEventAktion(
|
|
|
|
|
- std::function<void(void*, AuswahlBox*, int, int)> event) // set event action
|
|
|
|
|
|
|
+void SelectionBox::setEventAktion(
|
|
|
|
|
+ std::function<void(void*, SelectionBox*, int, int)> event) // set event action
|
|
|
{
|
|
{
|
|
|
this->eAk = event;
|
|
this->eAk = event;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setFontZ(Font* schrift) // set font
|
|
|
|
|
|
|
+void SelectionBox::setFontZ(Font* schrift) // set font
|
|
|
{
|
|
{
|
|
|
if (!this->textRd)
|
|
if (!this->textRd)
|
|
|
textRd = new TextRenderer(schrift);
|
|
textRd = new TextRenderer(schrift);
|
|
@@ -215,13 +215,13 @@ void AuswahlBox::setFontZ(Font* schrift) // set font
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setTextRendererZ(TextRenderer* textRd)
|
|
|
|
|
|
|
+void SelectionBox::setTextRendererZ(TextRenderer* textRd)
|
|
|
{
|
|
{
|
|
|
if (this->textRd) this->textRd->release();
|
|
if (this->textRd) this->textRd->release();
|
|
|
this->textRd = textRd;
|
|
this->textRd = textRd;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::addEintrag(const char* txt) // add entry
|
|
|
|
|
|
|
+void SelectionBox::addEintrag(const char* txt) // add entry
|
|
|
{
|
|
{
|
|
|
TextField* tf = new TextField();
|
|
TextField* tf = new TextField();
|
|
|
if (textRd) tf->setFontZ(textRd->getFont());
|
|
if (textRd) tf->setFontZ(textRd->getFont());
|
|
@@ -236,7 +236,7 @@ void AuswahlBox::addEintrag(const char* txt) // add entry
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::addEintrag(Text* txt)
|
|
|
|
|
|
|
+void SelectionBox::addEintrag(Text* txt)
|
|
|
{
|
|
{
|
|
|
TextField* tf = new TextField();
|
|
TextField* tf = new TextField();
|
|
|
if (textRd) tf->setFontZ(textRd->getFont());
|
|
if (textRd) tf->setFontZ(textRd->getFont());
|
|
@@ -251,20 +251,20 @@ void AuswahlBox::addEintrag(Text* txt)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::addEintragZ(TextField* txt)
|
|
|
|
|
|
|
+void SelectionBox::addEintragZ(TextField* txt)
|
|
|
{
|
|
{
|
|
|
members->add(txt, anzahl);
|
|
members->add(txt, anzahl);
|
|
|
++anzahl;
|
|
++anzahl;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintrag(int i, const char* txt) // set entry text
|
|
|
|
|
|
|
+void SelectionBox::setEintrag(int i, const char* txt) // set entry text
|
|
|
{
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setText(txt);
|
|
if (members->z(i)) members->z(i)->setText(txt);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintrag(int i, Text* txt)
|
|
|
|
|
|
|
+void SelectionBox::setEintrag(int i, Text* txt)
|
|
|
{
|
|
{
|
|
|
if (members->z(i))
|
|
if (members->z(i))
|
|
|
members->z(i)->setText(txt);
|
|
members->z(i)->setText(txt);
|
|
@@ -273,7 +273,7 @@ void AuswahlBox::setEintrag(int i, Text* txt)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragZ(int i, TextField* txt)
|
|
|
|
|
|
|
+void SelectionBox::setEintragZ(int i, TextField* txt)
|
|
|
{
|
|
{
|
|
|
if (i < anzahl)
|
|
if (i < anzahl)
|
|
|
members->set(txt, i);
|
|
members->set(txt, i);
|
|
@@ -282,7 +282,7 @@ void AuswahlBox::setEintragZ(int i, TextField* txt)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::removeEintrag(int i) // remove entry
|
|
|
|
|
|
|
+void SelectionBox::removeEintrag(int i) // remove entry
|
|
|
{
|
|
{
|
|
|
if (i < anzahl)
|
|
if (i < anzahl)
|
|
|
{
|
|
{
|
|
@@ -303,14 +303,14 @@ void AuswahlBox::removeEintrag(int i) // remove entry
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAusklappKnopfZ(Knopf* ausK) // set expand button
|
|
|
|
|
|
|
+void SelectionBox::setDropDownButtonZ(Button* ausK) // set expand button
|
|
|
{
|
|
{
|
|
|
if (ausfahren) ausfahren->release();
|
|
if (ausfahren) ausfahren->release();
|
|
|
ausfahren = ausK;
|
|
ausfahren = ausK;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEntryBorderZ(int i, Border* rahmen) // set entry border
|
|
|
|
|
|
|
+void SelectionBox::setEntryBorderZ(int i, Border* rahmen) // set entry border
|
|
|
{
|
|
{
|
|
|
if (members->z(i))
|
|
if (members->z(i))
|
|
|
members->z(i)->setBorderZ(rahmen);
|
|
members->z(i)->setBorderZ(rahmen);
|
|
@@ -319,27 +319,27 @@ void AuswahlBox::setEntryBorderZ(int i, Border* rahmen) // set entry border
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragRahmenFarbe(int i, int f) // set entry border color
|
|
|
|
|
|
|
+void SelectionBox::setEintragRahmenFarbe(int i, int f) // set entry border color
|
|
|
{
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setBorderColor(f);
|
|
if (members->z(i)) members->z(i)->setBorderColor(f);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragRahmenBreite(
|
|
|
|
|
|
|
+void SelectionBox::setEintragRahmenBreite(
|
|
|
int i, int rbr) // set entry border width
|
|
int i, int rbr) // set entry border width
|
|
|
{
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setBorderWidth(rbr);
|
|
if (members->z(i)) members->z(i)->setBorderWidth(rbr);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragHintergrundFarbe(
|
|
|
|
|
|
|
+void SelectionBox::setEintragHintergrundFarbe(
|
|
|
int i, int f) // set entry background color
|
|
int i, int f) // set entry background color
|
|
|
{
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setHintergrundFarbe(f);
|
|
if (members->z(i)) members->z(i)->setHintergrundFarbe(f);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragHintergrundImageZ(
|
|
|
|
|
|
|
+void SelectionBox::setEintragHintergrundImageZ(
|
|
|
int i, Image* bgB) // set entry background image
|
|
int i, Image* bgB) // set entry background image
|
|
|
{
|
|
{
|
|
|
if (members->z(i))
|
|
if (members->z(i))
|
|
@@ -349,7 +349,7 @@ void AuswahlBox::setEintragHintergrundImageZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragHintergrundImage(int i, Image* bgB)
|
|
|
|
|
|
|
+void SelectionBox::setEintragHintergrundImage(int i, Image* bgB)
|
|
|
{
|
|
{
|
|
|
if (members->z(i))
|
|
if (members->z(i))
|
|
|
members->z(i)->setHintergrundImage(bgB);
|
|
members->z(i)->setHintergrundImage(bgB);
|
|
@@ -358,56 +358,56 @@ void AuswahlBox::setEintragHintergrundImage(int i, Image* bgB)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragAlphaFeldZ(
|
|
|
|
|
- int i, AlphaFeld* af) // set entry AlphaFeld
|
|
|
|
|
|
|
+void SelectionBox::setEntryAlphaFieldZ(
|
|
|
|
|
+ int i, AlphaField* af) // set entry AlphaField
|
|
|
{
|
|
{
|
|
|
- if (members->z(i)) members->z(i)->setAlphaFeldZ(af);
|
|
|
|
|
|
|
+ if (members->z(i)) members->z(i)->setAlphaFieldZ(af);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragAlphaFeldFarbe(
|
|
|
|
|
- int i, int afF) // set entry AlphaFeld color
|
|
|
|
|
|
|
+void SelectionBox::setEintragAlphaFeldFarbe(
|
|
|
|
|
+ int i, int afF) // set entry AlphaField color
|
|
|
{
|
|
{
|
|
|
- if (members->z(i)) members->z(i)->setAlphaFeldFarbe(afF);
|
|
|
|
|
|
|
+ if (members->z(i)) members->z(i)->setAlphaFieldColor(afF);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragAlphaFeldStrength(
|
|
|
|
|
- int i, int afSt) // set entry AlphaFeld strength
|
|
|
|
|
|
|
+void SelectionBox::setEintragAlphaFeldStrength(
|
|
|
|
|
+ int i, int afSt) // set entry AlphaField strength
|
|
|
{
|
|
{
|
|
|
- if (members->z(i)) members->z(i)->setAlphaFeldStrength(afSt);
|
|
|
|
|
|
|
+ if (members->z(i)) members->z(i)->setAlphaFieldStrength(afSt);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setSelBorderZ(Border* rahmen) // set selection border
|
|
|
|
|
|
|
+void SelectionBox::setSelBorderZ(Border* rahmen) // set selection border
|
|
|
{
|
|
{
|
|
|
if (selBorder) selBorder->release();
|
|
if (selBorder) selBorder->release();
|
|
|
selBorder = rahmen;
|
|
selBorder = rahmen;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswRahmenFarbe(int f) // set selection border color
|
|
|
|
|
|
|
+void SelectionBox::setAuswRahmenFarbe(int f) // set selection border color
|
|
|
{
|
|
{
|
|
|
if (!selBorder) selBorder = new LBorder();
|
|
if (!selBorder) selBorder = new LBorder();
|
|
|
selBorder->setFarbe(f);
|
|
selBorder->setFarbe(f);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswRahmenBreite(int rbr) // set selection border width
|
|
|
|
|
|
|
+void SelectionBox::setAuswRahmenBreite(int rbr) // set selection border width
|
|
|
{
|
|
{
|
|
|
if (!selBorder) selBorder = new LBorder();
|
|
if (!selBorder) selBorder = new LBorder();
|
|
|
selBorder->setRamenBreite(rbr);
|
|
selBorder->setRamenBreite(rbr);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswHintergrundFarbe(
|
|
|
|
|
|
|
+void SelectionBox::setAuswHintergrundFarbe(
|
|
|
int f) // set selection background color
|
|
int f) // set selection background color
|
|
|
{
|
|
{
|
|
|
auswBgF = f;
|
|
auswBgF = f;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswHintergrundImageZ(
|
|
|
|
|
|
|
+void SelectionBox::setAuswHintergrundImageZ(
|
|
|
Image* bgB) // set selection background image
|
|
Image* bgB) // set selection background image
|
|
|
{
|
|
{
|
|
|
if (auswBgB) auswBgB->release();
|
|
if (auswBgB) auswBgB->release();
|
|
@@ -415,7 +415,7 @@ void AuswahlBox::setAuswHintergrundImageZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswHintergrundImage(Image* bgB)
|
|
|
|
|
|
|
+void SelectionBox::setAuswHintergrundImage(Image* bgB)
|
|
|
{
|
|
{
|
|
|
if (!auswBgB) auswBgB = new Image();
|
|
if (!auswBgB) auswBgB = new Image();
|
|
|
auswBgB->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
auswBgB->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
@@ -424,29 +424,29 @@ void AuswahlBox::setAuswHintergrundImage(Image* bgB)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswAlphaFeldZ(AlphaFeld* af) // set selection AlphaFeld
|
|
|
|
|
|
|
+void SelectionBox::setSelAlphaFieldZ(AlphaField* af) // set selection AlphaField
|
|
|
{
|
|
{
|
|
|
if (auswAf) auswAf->release();
|
|
if (auswAf) auswAf->release();
|
|
|
auswAf = af;
|
|
auswAf = af;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswAlphaFeldFarbe(int afF) // set selection AlphaFeld color
|
|
|
|
|
|
|
+void SelectionBox::setSelAlphaFieldColor(int afF) // set selection AlphaField color
|
|
|
{
|
|
{
|
|
|
- if (!auswAf) auswAf = new AlphaFeld();
|
|
|
|
|
|
|
+ if (!auswAf) auswAf = new AlphaField();
|
|
|
auswAf->setFarbe(afF);
|
|
auswAf->setFarbe(afF);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswAlphaFeldStrength(
|
|
|
|
|
- int afSt) // set selection AlphaFeld strength
|
|
|
|
|
|
|
+void SelectionBox::setAuswAlphaFeldStrength(
|
|
|
|
|
+ int afSt) // set selection AlphaField strength
|
|
|
{
|
|
{
|
|
|
- if (!auswAf) auswAf = new AlphaFeld();
|
|
|
|
|
|
|
+ if (!auswAf) auswAf = new AlphaField();
|
|
|
auswAf->setStrength(afSt);
|
|
auswAf->setStrength(afSt);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsSelBorderZ(
|
|
|
|
|
|
|
+void SelectionBox::setMsSelBorderZ(
|
|
|
int i, Border* rahmen) // set multistyle selection border
|
|
int i, Border* rahmen) // set multistyle selection border
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
@@ -459,7 +459,7 @@ void AuswahlBox::setMsSelBorderZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswRahmenFarbe(
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswRahmenFarbe(
|
|
|
int i, int f) // set multistyle selection border color
|
|
int i, int f) // set multistyle selection border color
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -469,7 +469,7 @@ void AuswahlBox::setMsAuswRahmenFarbe(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswRahmenBreite(
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswRahmenBreite(
|
|
|
int i, int rbr) // set multistyle selection width
|
|
int i, int rbr) // set multistyle selection width
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -479,7 +479,7 @@ void AuswahlBox::setMsAuswRahmenBreite(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswHintergrundFarbe(
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswHintergrundFarbe(
|
|
|
int i, int f) // set multistyle selection background color
|
|
int i, int f) // set multistyle selection background color
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -488,7 +488,7 @@ void AuswahlBox::setMsAuswHintergrundFarbe(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswHintergrundImageZ(
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswHintergrundImageZ(
|
|
|
int i, Image* bgB) // set multistyle selection background image
|
|
int i, Image* bgB) // set multistyle selection background image
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
@@ -501,7 +501,7 @@ void AuswahlBox::setMsAuswHintergrundImageZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswHintergrundImage(int i, Image* bgB)
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswHintergrundImage(int i, Image* bgB)
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
{
|
|
@@ -526,67 +526,67 @@ void AuswahlBox::setMsAuswHintergrundImage(int i, Image* bgB)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswAlphaFeldZ(
|
|
|
|
|
- int i, AlphaFeld* af) // set multistyle selection AlphaFeld
|
|
|
|
|
|
|
+void SelectionBox::setMsSelAlphaFieldZ(
|
|
|
|
|
+ int i, AlphaField* af) // set multistyle selection AlphaField
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
{
|
|
|
af->release();
|
|
af->release();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (!msAuswAf) msAuswAf = new RCArray<AlphaFeld>();
|
|
|
|
|
|
|
+ if (!msAuswAf) msAuswAf = new RCArray<AlphaField>();
|
|
|
msAuswAf->set(af, i);
|
|
msAuswAf->set(af, i);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswAlphaFeldFarbe(
|
|
|
|
|
- int i, int afF) // set multistyle selection AlphaFeld color
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswAlphaFeldFarbe(
|
|
|
|
|
+ int i, int afF) // set multistyle selection AlphaField color
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msAuswAf) msAuswAf = new RCArray<AlphaFeld>();
|
|
|
|
|
- if (!msAuswAf->z(i)) msAuswAf->set(new AlphaFeld(), i);
|
|
|
|
|
|
|
+ if (!msAuswAf) msAuswAf = new RCArray<AlphaField>();
|
|
|
|
|
+ if (!msAuswAf->z(i)) msAuswAf->set(new AlphaField(), i);
|
|
|
msAuswAf->z(i)->setFarbe(afF);
|
|
msAuswAf->z(i)->setFarbe(afF);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsAuswAlphaFeldStrength(
|
|
|
|
|
- int i, int afSt) // set multistyle selection AlphaFeld strength
|
|
|
|
|
|
|
+void SelectionBox::setMsAuswAlphaFeldStrength(
|
|
|
|
|
+ int i, int afSt) // set multistyle selection AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msAuswAf) msAuswAf = new RCArray<AlphaFeld>();
|
|
|
|
|
- if (!msAuswAf->z(i)) msAuswAf->set(new AlphaFeld(), i);
|
|
|
|
|
|
|
+ if (!msAuswAf) msAuswAf = new RCArray<AlphaField>();
|
|
|
|
|
+ if (!msAuswAf->z(i)) msAuswAf->set(new AlphaField(), i);
|
|
|
msAuswAf->z(i)->setStrength(afSt);
|
|
msAuswAf->z(i)->setStrength(afSt);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMouseBorderZ(Border* rahmen) // set mouse border
|
|
|
|
|
|
|
+void SelectionBox::setMouseBorderZ(Border* rahmen) // set mouse border
|
|
|
{
|
|
{
|
|
|
if (mouseBorder) mouseBorder->release();
|
|
if (mouseBorder) mouseBorder->release();
|
|
|
mouseBorder = rahmen;
|
|
mouseBorder = rahmen;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausRahmenFarbe(int f) // set mouse border color
|
|
|
|
|
|
|
+void SelectionBox::setMausRahmenFarbe(int f) // set mouse border color
|
|
|
{
|
|
{
|
|
|
if (!mouseBorder) mouseBorder = new LBorder();
|
|
if (!mouseBorder) mouseBorder = new LBorder();
|
|
|
mouseBorder->setFarbe(f);
|
|
mouseBorder->setFarbe(f);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausRahmenBreite(int rbr) // set mouse border width
|
|
|
|
|
|
|
+void SelectionBox::setMausRahmenBreite(int rbr) // set mouse border width
|
|
|
{
|
|
{
|
|
|
if (!mouseBorder) mouseBorder = new LBorder();
|
|
if (!mouseBorder) mouseBorder = new LBorder();
|
|
|
mouseBorder->setRamenBreite(rbr);
|
|
mouseBorder->setRamenBreite(rbr);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausHintergrundFarbe(int f) // set mouse background color
|
|
|
|
|
|
|
+void SelectionBox::setMausHintergrundFarbe(int f) // set mouse background color
|
|
|
{
|
|
{
|
|
|
mausBgF = f;
|
|
mausBgF = f;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausHintergrundImageZ(
|
|
|
|
|
|
|
+void SelectionBox::setMausHintergrundImageZ(
|
|
|
Image* bgB) // set mouse background image
|
|
Image* bgB) // set mouse background image
|
|
|
{
|
|
{
|
|
|
if (mausBgB) mausBgB->release();
|
|
if (mausBgB) mausBgB->release();
|
|
@@ -594,7 +594,7 @@ void AuswahlBox::setMausHintergrundImageZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausHintergrundImage(Image* bgB)
|
|
|
|
|
|
|
+void SelectionBox::setMausHintergrundImage(Image* bgB)
|
|
|
{
|
|
{
|
|
|
if (!mausBgB) mausBgB = new Image();
|
|
if (!mausBgB) mausBgB = new Image();
|
|
|
mausBgB->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
mausBgB->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
@@ -603,29 +603,29 @@ void AuswahlBox::setMausHintergrundImage(Image* bgB)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausAlphaFeldZ(AlphaFeld* af) // set mouse AlphaFeld
|
|
|
|
|
|
|
+void SelectionBox::setMouseAlphaFieldZ(AlphaField* af) // set mouse AlphaField
|
|
|
{
|
|
{
|
|
|
if (mausAf) mausAf->release();
|
|
if (mausAf) mausAf->release();
|
|
|
mausAf = af;
|
|
mausAf = af;
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausAlphaFeldFarbe(int afF) // set mouse AlphaFeld color
|
|
|
|
|
|
|
+void SelectionBox::setMouseAlphaFieldColor(int afF) // set mouse AlphaField color
|
|
|
{
|
|
{
|
|
|
- if (!mausAf) mausAf = new AlphaFeld();
|
|
|
|
|
|
|
+ if (!mausAf) mausAf = new AlphaField();
|
|
|
mausAf->setFarbe(afF);
|
|
mausAf->setFarbe(afF);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMausAlphaFeldStrength(
|
|
|
|
|
- int afSt) // set mouse AlphaFeld strength
|
|
|
|
|
|
|
+void SelectionBox::setMausAlphaFeldStrength(
|
|
|
|
|
+ int afSt) // set mouse AlphaField strength
|
|
|
{
|
|
{
|
|
|
- if (!mausAf) mausAf = new AlphaFeld();
|
|
|
|
|
|
|
+ if (!mausAf) mausAf = new AlphaField();
|
|
|
mausAf->setStrength(afSt);
|
|
mausAf->setStrength(afSt);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMouseBorderZ(
|
|
|
|
|
|
|
+void SelectionBox::setMsMouseBorderZ(
|
|
|
int i, Border* rahmen) // set multistyle mouse border
|
|
int i, Border* rahmen) // set multistyle mouse border
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
@@ -638,7 +638,7 @@ void AuswahlBox::setMsMouseBorderZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausRahmenFarbe(
|
|
|
|
|
|
|
+void SelectionBox::setMsMausRahmenFarbe(
|
|
|
int i, int f) // set multistyle mouse border color
|
|
int i, int f) // set multistyle mouse border color
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -648,7 +648,7 @@ void AuswahlBox::setMsMausRahmenFarbe(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausRahmenBreite(
|
|
|
|
|
|
|
+void SelectionBox::setMsMausRahmenBreite(
|
|
|
int i, int rbr) // set multistyle mouse border width
|
|
int i, int rbr) // set multistyle mouse border width
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -658,7 +658,7 @@ void AuswahlBox::setMsMausRahmenBreite(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausHintergrundFarbe(
|
|
|
|
|
|
|
+void SelectionBox::setMsMausHintergrundFarbe(
|
|
|
int i, int f) // set multistyle mouse background color
|
|
int i, int f) // set multistyle mouse background color
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -667,7 +667,7 @@ void AuswahlBox::setMsMausHintergrundFarbe(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausHintergrundImageZ(
|
|
|
|
|
|
|
+void SelectionBox::setMsMausHintergrundImageZ(
|
|
|
int i, Image* bgB) // set multistyle mouse background image
|
|
int i, Image* bgB) // set multistyle mouse background image
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
@@ -680,7 +680,7 @@ void AuswahlBox::setMsMausHintergrundImageZ(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausHintergrundImage(int i, Image* bgB)
|
|
|
|
|
|
|
+void SelectionBox::setMsMausHintergrundImage(int i, Image* bgB)
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
{
|
|
@@ -705,40 +705,40 @@ void AuswahlBox::setMsMausHintergrundImage(int i, Image* bgB)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausAlphaFeldZ(
|
|
|
|
|
- int i, AlphaFeld* af) // set multistyle mouse AlphaFeld
|
|
|
|
|
|
|
+void SelectionBox::setMsMouseAlphaFieldZ(
|
|
|
|
|
+ int i, AlphaField* af) // set multistyle mouse AlphaField
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
{
|
|
|
af->release();
|
|
af->release();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (!msMausAf) msMausAf = new RCArray<AlphaFeld>();
|
|
|
|
|
|
|
+ if (!msMausAf) msMausAf = new RCArray<AlphaField>();
|
|
|
msMausAf->set(af, i);
|
|
msMausAf->set(af, i);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausAlphaFeldFarbe(
|
|
|
|
|
- int i, int afF) // set multistyle mouse AlphaFeld color
|
|
|
|
|
|
|
+void SelectionBox::setMsMausAlphaFeldFarbe(
|
|
|
|
|
+ int i, int afF) // set multistyle mouse AlphaField color
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msMausAf) msMausAf = new RCArray<AlphaFeld>();
|
|
|
|
|
- if (!msMausAf->z(i)) msMausAf->set(new AlphaFeld(), i);
|
|
|
|
|
|
|
+ if (!msMausAf) msMausAf = new RCArray<AlphaField>();
|
|
|
|
|
+ if (!msMausAf->z(i)) msMausAf->set(new AlphaField(), i);
|
|
|
msMausAf->z(i)->setFarbe(afF);
|
|
msMausAf->z(i)->setFarbe(afF);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsMausAlphaFeldStrength(
|
|
|
|
|
- int i, int afSt) // set multistyle mouse AlphaFeld strength
|
|
|
|
|
|
|
+void SelectionBox::setMsMausAlphaFeldStrength(
|
|
|
|
|
+ int i, int afSt) // set multistyle mouse AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msMausAf) msMausAf = new RCArray<AlphaFeld>();
|
|
|
|
|
- if (!msMausAf->z(i)) msMausAf->set(new AlphaFeld(), i);
|
|
|
|
|
|
|
+ if (!msMausAf) msMausAf = new RCArray<AlphaField>();
|
|
|
|
|
+ if (!msMausAf->z(i)) msMausAf->set(new AlphaField(), i);
|
|
|
msMausAf->z(i)->setStrength(afSt);
|
|
msMausAf->z(i)->setStrength(afSt);
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setAuswahl(int i) // select entry
|
|
|
|
|
|
|
+void SelectionBox::setAuswahl(int i) // select entry
|
|
|
{
|
|
{
|
|
|
if (i < anzahl && i != auswahl)
|
|
if (i < anzahl && i != auswahl)
|
|
|
{
|
|
{
|
|
@@ -748,17 +748,17 @@ void AuswahlBox::setAuswahl(int i) // select entry
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::ausklappen() // expand list
|
|
|
|
|
|
|
+void SelectionBox::ausklappen() // expand list
|
|
|
{
|
|
{
|
|
|
ausgeklappt = 1;
|
|
ausgeklappt = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::einklappen() // collapse list
|
|
|
|
|
|
|
+void SelectionBox::einklappen() // collapse list
|
|
|
{
|
|
{
|
|
|
ausgeklappt = 0;
|
|
ausgeklappt = 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::scrollZuEintrag(int i) // scroll list
|
|
|
|
|
|
|
+void SelectionBox::scrollZuEintrag(int i) // scroll list
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::VScroll) && vertikalScrollBar && i < anzahl)
|
|
if (hatStyle(Style::VScroll) && vertikalScrollBar && i < anzahl)
|
|
|
{
|
|
{
|
|
@@ -775,18 +775,18 @@ void AuswahlBox::scrollZuEintrag(int i) // scroll list
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMaxAuskappHeight(
|
|
|
|
|
|
|
+void SelectionBox::setMaxAuskappHeight(
|
|
|
int maxHeight) // height of the list when expanded
|
|
int maxHeight) // height of the list when expanded
|
|
|
{
|
|
{
|
|
|
ausklapMaxHeight = maxHeight;
|
|
ausklapMaxHeight = maxHeight;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setEintragHeight(int height) // sets the height of the entries
|
|
|
|
|
|
|
+void SelectionBox::setEintragHeight(int height) // sets the height of the entries
|
|
|
{
|
|
{
|
|
|
eintragHeight = height;
|
|
eintragHeight = height;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::addMsStyle(int i, __int64 abStyle) // add multistyle style
|
|
|
|
|
|
|
+void SelectionBox::addMsStyle(int i, __int64 abStyle) // add multistyle style
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
@@ -794,7 +794,7 @@ void AuswahlBox::addMsStyle(int i, __int64 abStyle) // add multistyle style
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsStyle(
|
|
|
|
|
|
|
+void SelectionBox::setMsStyle(
|
|
|
int i, __int64 abStyle, bool add) // set multistyle style
|
|
int i, __int64 abStyle, bool add) // set multistyle style
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -806,7 +806,7 @@ void AuswahlBox::setMsStyle(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::setMsStyle(int i, __int64 abStyle)
|
|
|
|
|
|
|
+void SelectionBox::setMsStyle(int i, __int64 abStyle)
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
@@ -814,7 +814,7 @@ void AuswahlBox::setMsStyle(int i, __int64 abStyle)
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::removeMsStyle(
|
|
|
|
|
|
|
+void SelectionBox::removeMsStyle(
|
|
|
int i, __int64 abStyle) // remove multistyle style
|
|
int i, __int64 abStyle) // remove multistyle style
|
|
|
{
|
|
{
|
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
@@ -823,7 +823,7 @@ void AuswahlBox::removeMsStyle(
|
|
|
rend = 1;
|
|
rend = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool AuswahlBox::tick(double tickVal) // tick
|
|
|
|
|
|
|
+bool SelectionBox::tick(double tickVal) // tick
|
|
|
{
|
|
{
|
|
|
if (ausgeklappt && ausfahren && !ausfahren->zText()->istGleich("/\\"))
|
|
if (ausgeklappt && ausfahren && !ausfahren->zText()->istGleich("/\\"))
|
|
|
{
|
|
{
|
|
@@ -887,7 +887,7 @@ bool AuswahlBox::tick(double tickVal) // tick
|
|
|
return DrawableBackground::tick(tickVal);
|
|
return DrawableBackground::tick(tickVal);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::doTastaturEreignis(TastaturEreignis& te) // Keyboard
|
|
|
|
|
|
|
+void SelectionBox::doKeyboardEvent(KeyboardEvent& te) // Keyboard
|
|
|
{
|
|
{
|
|
|
if (te.verarbeitet || hatStyleNicht(Style::Fokus)
|
|
if (te.verarbeitet || hatStyleNicht(Style::Fokus)
|
|
|
|| hatStyleNicht(Style::Erlaubt))
|
|
|| hatStyleNicht(Style::Erlaubt))
|
|
@@ -919,7 +919,7 @@ void AuswahlBox::doTastaturEreignis(TastaturEreignis& te) // Keyboard
|
|
|
if (te.verarbeitet && nTak) te.verarbeitet = nTak(ntakParam, this, te);
|
|
if (te.verarbeitet && nTak) te.verarbeitet = nTak(ntakParam, this, te);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
|
|
|
|
+void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::Sichtbar))
|
|
if (hatStyle(Style::Sichtbar))
|
|
|
{
|
|
{
|
|
@@ -990,7 +990,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
TextField* tf = auswahl >= 0 ? members->z(auswahl) : 0;
|
|
TextField* tf = auswahl >= 0 ? members->z(auswahl) : 0;
|
|
|
if (tf)
|
|
if (tf)
|
|
|
{
|
|
{
|
|
|
- AlphaFeld* tmpBuffer = 0;
|
|
|
|
|
|
|
+ AlphaField* tmpBuffer = 0;
|
|
|
bool tmpB = 0;
|
|
bool tmpB = 0;
|
|
|
int tmpHFarbe = 0;
|
|
int tmpHFarbe = 0;
|
|
|
bool tmpH = 0;
|
|
bool tmpH = 0;
|
|
@@ -1003,9 +1003,9 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
|
{
|
|
{
|
|
|
- tmpBuffer = tf->getAlphaFeld();
|
|
|
|
|
- tf->setAlphaFeldZ(
|
|
|
|
|
- dynamic_cast<AlphaFeld*>(auswAf->getThis()));
|
|
|
|
|
|
|
+ tmpBuffer = tf->getAlphaField();
|
|
|
|
|
+ tf->setAlphaFieldZ(
|
|
|
|
|
+ dynamic_cast<AlphaField*>(auswAf->getThis()));
|
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
hatStyle(Style::AuswahlBuffer));
|
|
hatStyle(Style::AuswahlBuffer));
|
|
@@ -1047,8 +1047,8 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatMsStyle(auswahl, Style::AuswahlBuffer) && msAuswAf)
|
|
if (hatMsStyle(auswahl, Style::AuswahlBuffer) && msAuswAf)
|
|
|
{
|
|
{
|
|
|
- tmpBuffer = tf->getAlphaFeld();
|
|
|
|
|
- tf->setAlphaFeldZ(msAuswAf->get(auswahl));
|
|
|
|
|
|
|
+ tmpBuffer = tf->getAlphaField();
|
|
|
|
|
+ tf->setAlphaFieldZ(msAuswAf->get(auswahl));
|
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
hatMsStyle(auswahl, Style::AuswahlBuffer));
|
|
hatMsStyle(auswahl, Style::AuswahlBuffer));
|
|
@@ -1100,7 +1100,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
|
{
|
|
{
|
|
|
- tf->setAlphaFeldZ(tmpBuffer);
|
|
|
|
|
|
|
+ tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
}
|
|
|
if (hatStyle(Style::AuswahlHintergrund))
|
|
if (hatStyle(Style::AuswahlHintergrund))
|
|
@@ -1125,7 +1125,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatMsStyle(auswahl, Style::AuswahlBuffer) && msAuswAf)
|
|
if (hatMsStyle(auswahl, Style::AuswahlBuffer) && msAuswAf)
|
|
|
{
|
|
{
|
|
|
- tf->setAlphaFeldZ(tmpBuffer);
|
|
|
|
|
|
|
+ tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
}
|
|
|
if (hatMsStyle(auswahl, Style::AuswahlHintergrund))
|
|
if (hatMsStyle(auswahl, Style::AuswahlHintergrund))
|
|
@@ -1184,7 +1184,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
int dy = 0;
|
|
int dy = 0;
|
|
|
if (vsb) dy -= vertikalScrollBar->getScroll();
|
|
if (vsb) dy -= vertikalScrollBar->getScroll();
|
|
|
int mdy = hi - rbr;
|
|
int mdy = hi - rbr;
|
|
|
- anzahl = members->getEintragAnzahl();
|
|
|
|
|
|
|
+ anzahl = members->getEntryCount();
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
{
|
|
|
TextField* tf = members->z(i);
|
|
TextField* tf = members->z(i);
|
|
@@ -1193,7 +1193,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
tf->setSize(br - rbr * 2, tf->getHeight());
|
|
tf->setSize(br - rbr * 2, tf->getHeight());
|
|
|
maxHeight += tf->getHeight();
|
|
maxHeight += tf->getHeight();
|
|
|
bool selected = auswahl == i;
|
|
bool selected = auswahl == i;
|
|
|
- AlphaFeld* tmpBuffer = 0;
|
|
|
|
|
|
|
+ AlphaField* tmpBuffer = 0;
|
|
|
bool tmpB = 0;
|
|
bool tmpB = 0;
|
|
|
int tmpHFarbe = 0;
|
|
int tmpHFarbe = 0;
|
|
|
bool tmpH = 0;
|
|
bool tmpH = 0;
|
|
@@ -1208,9 +1208,9 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
|
{
|
|
{
|
|
|
- tmpBuffer = tf->getAlphaFeld();
|
|
|
|
|
- tf->setAlphaFeldZ(
|
|
|
|
|
- dynamic_cast<AlphaFeld*>(auswAf->getThis()));
|
|
|
|
|
|
|
+ tmpBuffer = tf->getAlphaField();
|
|
|
|
|
+ tf->setAlphaFieldZ(
|
|
|
|
|
+ dynamic_cast<AlphaField*>(auswAf->getThis()));
|
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
hatStyle(Style::AuswahlBuffer));
|
|
hatStyle(Style::AuswahlBuffer));
|
|
@@ -1253,8 +1253,8 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatMsStyle(i, Style::AuswahlBuffer) && msAuswAf)
|
|
if (hatMsStyle(i, Style::AuswahlBuffer) && msAuswAf)
|
|
|
{
|
|
{
|
|
|
- tmpBuffer = tf->getAlphaFeld();
|
|
|
|
|
- tf->setAlphaFeldZ(msAuswAf->get(i));
|
|
|
|
|
|
|
+ tmpBuffer = tf->getAlphaField();
|
|
|
|
|
+ tf->setAlphaFieldZ(msAuswAf->get(i));
|
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
hatMsStyle(i, Style::AuswahlBuffer));
|
|
hatMsStyle(i, Style::AuswahlBuffer));
|
|
@@ -1301,9 +1301,9 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MausBuffer))
|
|
if (hatStyle(Style::MausBuffer))
|
|
|
{
|
|
{
|
|
|
- tmpBuffer = tf->getAlphaFeld();
|
|
|
|
|
- tf->setAlphaFeldZ(
|
|
|
|
|
- dynamic_cast<AlphaFeld*>(mausAf->getThis()));
|
|
|
|
|
|
|
+ tmpBuffer = tf->getAlphaField();
|
|
|
|
|
+ tf->setAlphaFieldZ(
|
|
|
|
|
+ dynamic_cast<AlphaField*>(mausAf->getThis()));
|
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
hatStyle(Style::MausBuffer));
|
|
hatStyle(Style::MausBuffer));
|
|
@@ -1346,8 +1346,8 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatMsStyle(i, Style::MausBuffer) && msAuswAf)
|
|
if (hatMsStyle(i, Style::MausBuffer) && msAuswAf)
|
|
|
{
|
|
{
|
|
|
- tmpBuffer = tf->getAlphaFeld();
|
|
|
|
|
- tf->setAlphaFeldZ(msMausAf->get(i));
|
|
|
|
|
|
|
+ tmpBuffer = tf->getAlphaField();
|
|
|
|
|
+ tf->setAlphaFieldZ(msMausAf->get(i));
|
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
hatMsStyle(i, Style::MausBuffer));
|
|
hatMsStyle(i, Style::MausBuffer));
|
|
@@ -1395,7 +1395,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
if (hatStyle(Style::AuswahlBuffer))
|
|
|
{
|
|
{
|
|
|
- tf->setAlphaFeldZ(tmpBuffer);
|
|
|
|
|
|
|
+ tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
}
|
|
|
if (hatStyle(Style::AuswahlHintergrund))
|
|
if (hatStyle(Style::AuswahlHintergrund))
|
|
@@ -1421,7 +1421,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatMsStyle(i, Style::AuswahlBuffer) && msAuswAf)
|
|
if (hatMsStyle(i, Style::AuswahlBuffer) && msAuswAf)
|
|
|
{
|
|
{
|
|
|
- tf->setAlphaFeldZ(tmpBuffer);
|
|
|
|
|
|
|
+ tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
}
|
|
|
if (hatMsStyle(i, Style::AuswahlHintergrund))
|
|
if (hatMsStyle(i, Style::AuswahlHintergrund))
|
|
@@ -1451,7 +1451,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MausBuffer))
|
|
if (hatStyle(Style::MausBuffer))
|
|
|
{
|
|
{
|
|
|
- tf->setAlphaFeldZ(tmpBuffer);
|
|
|
|
|
|
|
+ tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
}
|
|
|
if (hatStyle(Style::MausHintergrund))
|
|
if (hatStyle(Style::MausHintergrund))
|
|
@@ -1477,7 +1477,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
{
|
|
|
if (hatMsStyle(i, Style::MausBuffer) && msAuswAf)
|
|
if (hatMsStyle(i, Style::MausBuffer) && msAuswAf)
|
|
|
{
|
|
{
|
|
|
- tf->setAlphaFeldZ(tmpBuffer);
|
|
|
|
|
|
|
+ tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
}
|
|
|
if (hatMsStyle(i, Style::MausHintergrund))
|
|
if (hatMsStyle(i, Style::MausHintergrund))
|
|
@@ -1514,7 +1514,7 @@ void AuswahlBox::render(Image& zRObj) // renders into zRObj
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// constant
|
|
// constant
|
|
|
-int AuswahlBox::getEintragPos(
|
|
|
|
|
|
|
+int SelectionBox::getEintragPos(
|
|
|
const char* txt) const // returns the entry position
|
|
const char* txt) const // returns the entry position
|
|
|
{
|
|
{
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
for (int i = 0; i < anzahl; ++i)
|
|
@@ -1522,7 +1522,7 @@ int AuswahlBox::getEintragPos(
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragPos(Text* txt) const
|
|
|
|
|
|
|
+int SelectionBox::getEintragPos(Text* txt) const
|
|
|
{
|
|
{
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
{
|
|
@@ -1536,84 +1536,84 @@ int AuswahlBox::getEintragPos(Text* txt) const
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Text* AuswahlBox::getEintragText(int i) const // returns the entry text
|
|
|
|
|
|
|
+Text* SelectionBox::getEintragText(int i) const // returns the entry text
|
|
|
{
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
if (i >= anzahl) return 0;
|
|
|
return members->z(i) ? members->z(i)->getText() : 0;
|
|
return members->z(i) ? members->z(i)->getText() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Text* AuswahlBox::zEintragText(int i) const
|
|
|
|
|
|
|
+Text* SelectionBox::zEintragText(int i) const
|
|
|
{
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
if (i >= anzahl) return 0;
|
|
|
return members->z(i) ? members->z(i)->zText() : 0;
|
|
return members->z(i) ? members->z(i)->zText() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-TextField* AuswahlBox::getEintrag(int i) const // returns the entry
|
|
|
|
|
|
|
+TextField* SelectionBox::getEintrag(int i) const // returns the entry
|
|
|
{
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
if (i >= anzahl) return 0;
|
|
|
return members->get(i);
|
|
return members->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-TextField* AuswahlBox::zEintrag(int i) const
|
|
|
|
|
|
|
+TextField* SelectionBox::zEintrag(int i) const
|
|
|
{
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
if (i >= anzahl) return 0;
|
|
|
return members->z(i);
|
|
return members->z(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getAuswahl() const // returns the position of the selected entry
|
|
|
|
|
|
|
+int SelectionBox::getAuswahl() const // returns the position of the selected entry
|
|
|
{
|
|
{
|
|
|
return auswahl;
|
|
return auswahl;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragAnzahl() const // returns the number of entries
|
|
|
|
|
|
|
+int SelectionBox::getEntryCount() const // returns the number of entries
|
|
|
{
|
|
{
|
|
|
return anzahl;
|
|
return anzahl;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool AuswahlBox::istAusgeklappt() const // checks if the list is expanded
|
|
|
|
|
|
|
+bool SelectionBox::istAusgeklappt() const // checks if the list is expanded
|
|
|
{
|
|
{
|
|
|
return ausgeklappt;
|
|
return ausgeklappt;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMaxHeight() const // returns the maximum list height
|
|
|
|
|
|
|
+int SelectionBox::getMaxHeight() const // returns the maximum list height
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MaxHeight)) return 0;
|
|
if (!hatStyle(Style::MaxHeight)) return 0;
|
|
|
return ausklapMaxHeight;
|
|
return ausklapMaxHeight;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragHeight() const // returns the height of the entries
|
|
|
|
|
|
|
+int SelectionBox::getEintragHeight() const // returns the height of the entries
|
|
|
{
|
|
{
|
|
|
return eintragHeight;
|
|
return eintragHeight;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Knopf*
|
|
|
|
|
-AuswahlBox::getAusklappKnopf() const // returns the expand/collapse button
|
|
|
|
|
|
|
+Button*
|
|
|
|
|
+SelectionBox::getDropDownButton() const // returns the expand/collapse button
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return ausfahren ? dynamic_cast<Knopf*>(ausfahren->getThis()) : 0;
|
|
|
|
|
|
|
+ return ausfahren ? dynamic_cast<Button*>(ausfahren->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Knopf* AuswahlBox::zAusklappKnopf() const
|
|
|
|
|
|
|
+Button* SelectionBox::zDropDownButton() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return ausfahren;
|
|
return ausfahren;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::getEntryBorder(int i) const // returns the entry border
|
|
|
|
|
|
|
+Border* SelectionBox::getEntryBorder(int i) const // returns the entry border
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getBorder();
|
|
return members->z(i)->getBorder();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::zEntryBorder(int i) const
|
|
|
|
|
|
|
+Border* SelectionBox::zEntryBorder(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->zBorder();
|
|
return members->z(i)->zBorder();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragRahmenFarbe(
|
|
|
|
|
|
|
+int SelectionBox::getEintragRahmenFarbe(
|
|
|
int i) const // returns the entry border color
|
|
int i) const // returns the entry border color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1621,7 +1621,7 @@ int AuswahlBox::getEintragRahmenFarbe(
|
|
|
return members->z(i)->getBorderColor();
|
|
return members->z(i)->getBorderColor();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragRahmenBreite(
|
|
|
|
|
|
|
+int SelectionBox::getEintragRahmenBreite(
|
|
|
int i) const // returns the entry border width
|
|
int i) const // returns the entry border width
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1629,38 +1629,38 @@ int AuswahlBox::getEintragRahmenBreite(
|
|
|
return members->z(i)->getBorderWidth();
|
|
return members->z(i)->getBorderWidth();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::getEintragAlphaFeld(
|
|
|
|
|
- int i) const // returns the entry AlphaFeld
|
|
|
|
|
|
|
+AlphaField* SelectionBox::getEntryAlphaField(
|
|
|
|
|
+ int i) const // returns the entry AlphaField
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->getAlphaFeld();
|
|
|
|
|
|
|
+ return members->z(i)->getAlphaField();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::zEintragAlphaFeld(int i) const
|
|
|
|
|
|
|
+AlphaField* SelectionBox::zEntryAlphaField(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->zAlphaFeld();
|
|
|
|
|
|
|
+ return members->z(i)->zAlphaField();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragAlphaFeldFarbe(
|
|
|
|
|
- int i) const // returns the entry AlphaFeld color
|
|
|
|
|
|
|
+int SelectionBox::getEintragAlphaFeldFarbe(
|
|
|
|
|
+ int i) const // returns the entry AlphaField color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->getAlphaFeldFarbe();
|
|
|
|
|
|
|
+ return members->z(i)->getAlphaFieldColor();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragAlphaFeldStrength(
|
|
|
|
|
- int i) const // returns the entry AlphaFeld strength
|
|
|
|
|
|
|
+int SelectionBox::getEintragAlphaFeldStrength(
|
|
|
|
|
+ int i) const // returns the entry AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->getAlphaFeldStrength();
|
|
|
|
|
|
|
+ return members->z(i)->getAlphaFieldStrength();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getEintragHintergrundFarbe(
|
|
|
|
|
|
|
+int SelectionBox::getEintragHintergrundFarbe(
|
|
|
int i) const // returns the entry background color
|
|
int i) const // returns the entry background color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1668,7 +1668,7 @@ int AuswahlBox::getEintragHintergrundFarbe(
|
|
|
return members->z(i)->getHintergrundFarbe();
|
|
return members->z(i)->getHintergrundFarbe();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::getEintragHintergrundImage(
|
|
|
|
|
|
|
+Image* SelectionBox::getEintragHintergrundImage(
|
|
|
int i) const // returns the entry background image
|
|
int i) const // returns the entry background image
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1676,86 +1676,86 @@ Image* AuswahlBox::getEintragHintergrundImage(
|
|
|
return members->z(i)->getHintergrundImage();
|
|
return members->z(i)->getHintergrundImage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::zEintragHintergrundImage(int i) const
|
|
|
|
|
|
|
+Image* SelectionBox::zEintragHintergrundImage(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->zHintergrundImage();
|
|
return members->z(i)->zHintergrundImage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::getSelBorder() const // returns the selection border
|
|
|
|
|
|
|
+Border* SelectionBox::getSelBorder() const // returns the selection border
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return selBorder ? dynamic_cast<Border*>(selBorder->getThis()) : 0;
|
|
return selBorder ? dynamic_cast<Border*>(selBorder->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::zSelBorder() const
|
|
|
|
|
|
|
+Border* SelectionBox::zSelBorder() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return selBorder;
|
|
return selBorder;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getAuswRahmenFarbe() const // returns the selection border color
|
|
|
|
|
|
|
+int SelectionBox::getAuswRahmenFarbe() const // returns the selection border color
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return selBorder ? selBorder->getFarbe() : 0;
|
|
return selBorder ? selBorder->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getAuswRahmenBreite()
|
|
|
|
|
|
|
+int SelectionBox::getAuswRahmenBreite()
|
|
|
const // returns the selection border width
|
|
const // returns the selection border width
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return selBorder ? selBorder->getRBreite() : 0;
|
|
return selBorder ? selBorder->getRBreite() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld*
|
|
|
|
|
-AuswahlBox::getAuswAlphaFeld() const // returns the selection AlphaFeld
|
|
|
|
|
|
|
+AlphaField*
|
|
|
|
|
+SelectionBox::getSelAlphaField() const // returns the selection AlphaField
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswAf ? dynamic_cast<AlphaFeld*>(auswAf->getThis()) : 0;
|
|
|
|
|
|
|
+ return auswAf ? dynamic_cast<AlphaField*>(auswAf->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::zAuswAlphaFeld() const
|
|
|
|
|
|
|
+AlphaField* SelectionBox::zSelAlphaField() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return auswAf;
|
|
return auswAf;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getAuswAlphaFeldFarbe()
|
|
|
|
|
- const // returns the selection AlphaFeld color
|
|
|
|
|
|
|
+int SelectionBox::getAuswAlphaFeldFarbe()
|
|
|
|
|
+ const // returns the selection AlphaField color
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return auswAf ? auswAf->getFarbe() : 0;
|
|
return auswAf ? auswAf->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getAuswAlphaFeldStrength()
|
|
|
|
|
- const // returns the selection AlphaFeld strength
|
|
|
|
|
|
|
+int SelectionBox::getAuswAlphaFeldStrength()
|
|
|
|
|
+ const // returns the selection AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return auswAf ? auswAf->getStrength() : 0;
|
|
return auswAf ? auswAf->getStrength() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getAuswHintergrundFarbe()
|
|
|
|
|
|
|
+int SelectionBox::getAuswHintergrundFarbe()
|
|
|
const // returns the selection background color
|
|
const // returns the selection background color
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return auswBgF;
|
|
return auswBgF;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::getAuswHintergrundImage()
|
|
|
|
|
|
|
+Image* SelectionBox::getAuswHintergrundImage()
|
|
|
const // returns the selection background image
|
|
const // returns the selection background image
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return auswBgB ? dynamic_cast<Image*>(auswBgB->getThis()) : 0;
|
|
return auswBgB ? dynamic_cast<Image*>(auswBgB->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::zAuswHintergrundImage() const
|
|
|
|
|
|
|
+Image* SelectionBox::zAuswHintergrundImage() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return auswBgB;
|
|
return auswBgB;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::getMsSelBorder(
|
|
|
|
|
|
|
+Border* SelectionBox::getMsSelBorder(
|
|
|
int i) const // returns the multistyle selection border
|
|
int i) const // returns the multistyle selection border
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1765,14 +1765,14 @@ Border* AuswahlBox::getMsSelBorder(
|
|
|
: 0;
|
|
: 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::zMsSelBorder(int i) const
|
|
|
|
|
|
|
+Border* SelectionBox::zMsSelBorder(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msSelBorder) return 0;
|
|
if (!msSelBorder) return 0;
|
|
|
return msSelBorder->z(i);
|
|
return msSelBorder->z(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsAuswRahmenFarbe(
|
|
|
|
|
|
|
+int SelectionBox::getMsAuswRahmenFarbe(
|
|
|
int i) const // returns the multistyle selection border color
|
|
int i) const // returns the multistyle selection border color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1780,7 +1780,7 @@ int AuswahlBox::getMsAuswRahmenFarbe(
|
|
|
return msSelBorder->z(i) ? msSelBorder->z(i)->getFarbe() : 0;
|
|
return msSelBorder->z(i) ? msSelBorder->z(i)->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsAuswRahmenBreite(
|
|
|
|
|
|
|
+int SelectionBox::getMsAuswRahmenBreite(
|
|
|
int i) const // returns the multistyle selection border width
|
|
int i) const // returns the multistyle selection border width
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1788,39 +1788,39 @@ int AuswahlBox::getMsAuswRahmenBreite(
|
|
|
return msSelBorder->z(i) ? msSelBorder->z(i)->getRBreite() : 0;
|
|
return msSelBorder->z(i) ? msSelBorder->z(i)->getRBreite() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::getMsAuswAlphaFeld(
|
|
|
|
|
- int i) const // returns the multistyle selection AlphaFeld
|
|
|
|
|
|
|
+AlphaField* SelectionBox::getMsSelAlphaField(
|
|
|
|
|
+ int i) const // returns the multistyle selection AlphaField
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msAuswAf) return 0;
|
|
if (!msAuswAf) return 0;
|
|
|
- return msAuswAf->z(i) ? dynamic_cast<AlphaFeld*>(msAuswAf->z(i)->getThis())
|
|
|
|
|
|
|
+ return msAuswAf->z(i) ? dynamic_cast<AlphaField*>(msAuswAf->z(i)->getThis())
|
|
|
: 0;
|
|
: 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::zMsAuswAlphaFeld(int i) const
|
|
|
|
|
|
|
+AlphaField* SelectionBox::zMsSelAlphaField(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msAuswAf) return 0;
|
|
if (!msAuswAf) return 0;
|
|
|
return msAuswAf->z(i);
|
|
return msAuswAf->z(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsAuswAlphaFeldFarbe(
|
|
|
|
|
- int i) const // returns the multistyle selection AlphaFeld color
|
|
|
|
|
|
|
+int SelectionBox::getMsAuswAlphaFeldFarbe(
|
|
|
|
|
+ int i) const // returns the multistyle selection AlphaField color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msAuswAf) return 0;
|
|
if (!msAuswAf) return 0;
|
|
|
return msAuswAf->z(i) ? msAuswAf->z(i)->getFarbe() : 0;
|
|
return msAuswAf->z(i) ? msAuswAf->z(i)->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsAuswAlphaFeldStrength(
|
|
|
|
|
- int i) const // returns the multistyle selection AlphaFeld strength
|
|
|
|
|
|
|
+int SelectionBox::getMsAuswAlphaFeldStrength(
|
|
|
|
|
+ int i) const // returns the multistyle selection AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msAuswAf) return 0;
|
|
if (!msAuswAf) return 0;
|
|
|
return msAuswAf->z(i) ? msAuswAf->z(i)->getStrength() : 0;
|
|
return msAuswAf->z(i) ? msAuswAf->z(i)->getStrength() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsAuswHintergrundFarbe(
|
|
|
|
|
|
|
+int SelectionBox::getMsAuswHintergrundFarbe(
|
|
|
int i) const // returns the multistyle selection background color
|
|
int i) const // returns the multistyle selection background color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1828,7 +1828,7 @@ int AuswahlBox::getMsAuswHintergrundFarbe(
|
|
|
return msAuswBgF->get(i);
|
|
return msAuswBgF->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::getMsAuswHintergrundImage(
|
|
|
|
|
|
|
+Image* SelectionBox::getMsAuswHintergrundImage(
|
|
|
int i) const // returns the multistyle selection background image
|
|
int i) const // returns the multistyle selection background image
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1836,84 +1836,84 @@ Image* AuswahlBox::getMsAuswHintergrundImage(
|
|
|
return msAuswBgB->get(i);
|
|
return msAuswBgB->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::zMsAuswHintergrundImage(int i) const
|
|
|
|
|
|
|
+Image* SelectionBox::zMsAuswHintergrundImage(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msAuswBgB) return 0;
|
|
if (!msAuswBgB) return 0;
|
|
|
return msAuswBgB->z(i);
|
|
return msAuswBgB->z(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::getMouseBorder() const // returns the mouse border
|
|
|
|
|
|
|
+Border* SelectionBox::getMouseBorder() const // returns the mouse border
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mouseBorder ? dynamic_cast<Border*>(mouseBorder->getThis()) : 0;
|
|
return mouseBorder ? dynamic_cast<Border*>(mouseBorder->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::zMouseBorder() const
|
|
|
|
|
|
|
+Border* SelectionBox::zMouseBorder() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mouseBorder;
|
|
return mouseBorder;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMausRahmenFarbe() const // returns the mouse border color
|
|
|
|
|
|
|
+int SelectionBox::getMausRahmenFarbe() const // returns the mouse border color
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mouseBorder ? mouseBorder->getFarbe() : 0;
|
|
return mouseBorder ? mouseBorder->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMausRahmenBreite() const // returns the mouse border width
|
|
|
|
|
|
|
+int SelectionBox::getMausRahmenBreite() const // returns the mouse border width
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mouseBorder ? mouseBorder->getRBreite() : 0;
|
|
return mouseBorder ? mouseBorder->getRBreite() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::getMausAlphaFeld() const // returns the mouse AlphaFeld
|
|
|
|
|
|
|
+AlphaField* SelectionBox::getMouseAlphaField() const // returns the mouse AlphaField
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausAf ? dynamic_cast<AlphaFeld*>(mausAf->getThis()) : 0;
|
|
|
|
|
|
|
+ return mausAf ? dynamic_cast<AlphaField*>(mausAf->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::zMausAlphaFeld() const
|
|
|
|
|
|
|
+AlphaField* SelectionBox::zMouseAlphaField() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mausAf;
|
|
return mausAf;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMausAlphaFeldFarbe()
|
|
|
|
|
- const // returns the mouse AlphaFeld color
|
|
|
|
|
|
|
+int SelectionBox::getMausAlphaFeldFarbe()
|
|
|
|
|
+ const // returns the mouse AlphaField color
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mausAf ? mausAf->getFarbe() : 0;
|
|
return mausAf ? mausAf->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMausAlphaFeldStrength()
|
|
|
|
|
- const // returns the mouse AlphaFeld strength
|
|
|
|
|
|
|
+int SelectionBox::getMausAlphaFeldStrength()
|
|
|
|
|
+ const // returns the mouse AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mausAf ? mausAf->getStrength() : 0;
|
|
return mausAf ? mausAf->getStrength() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMausHintergrundFarbe()
|
|
|
|
|
|
|
+int SelectionBox::getMausHintergrundFarbe()
|
|
|
const // returns the mouse background color
|
|
const // returns the mouse background color
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mausBgF;
|
|
return mausBgF;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::getMausHintergrundImage()
|
|
|
|
|
|
|
+Image* SelectionBox::getMausHintergrundImage()
|
|
|
const // returns the mouse background image
|
|
const // returns the mouse background image
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mausBgB ? dynamic_cast<Image*>(mausBgB->getThis()) : 0;
|
|
return mausBgB ? dynamic_cast<Image*>(mausBgB->getThis()) : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::zMausHintergrundImage() const
|
|
|
|
|
|
|
+Image* SelectionBox::zMausHintergrundImage() const
|
|
|
{
|
|
{
|
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
return mausBgB;
|
|
return mausBgB;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::getMsMouseBorder(
|
|
|
|
|
|
|
+Border* SelectionBox::getMsMouseBorder(
|
|
|
int i) const // returns the multistyle mouse border
|
|
int i) const // returns the multistyle mouse border
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1921,14 +1921,14 @@ Border* AuswahlBox::getMsMouseBorder(
|
|
|
return msMouseBorder->get(i);
|
|
return msMouseBorder->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Border* AuswahlBox::zMsMouseBorder(int i) const
|
|
|
|
|
|
|
+Border* SelectionBox::zMsMouseBorder(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMouseBorder) return 0;
|
|
if (!msMouseBorder) return 0;
|
|
|
return msMouseBorder->z(i);
|
|
return msMouseBorder->z(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsMausRahmenFarbe(
|
|
|
|
|
|
|
+int SelectionBox::getMsMausRahmenFarbe(
|
|
|
int i) const // returns the multistyle mouse border color
|
|
int i) const // returns the multistyle mouse border color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1936,7 +1936,7 @@ int AuswahlBox::getMsMausRahmenFarbe(
|
|
|
return msMouseBorder->z(i) ? msMouseBorder->z(i)->getFarbe() : 0;
|
|
return msMouseBorder->z(i) ? msMouseBorder->z(i)->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsMausRahmenBreite(
|
|
|
|
|
|
|
+int SelectionBox::getMsMausRahmenBreite(
|
|
|
int i) const // returns the multistyle mouse border width
|
|
int i) const // returns the multistyle mouse border width
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1944,38 +1944,38 @@ int AuswahlBox::getMsMausRahmenBreite(
|
|
|
return msMouseBorder->z(i) ? msMouseBorder->z(i)->getRBreite() : 0;
|
|
return msMouseBorder->z(i) ? msMouseBorder->z(i)->getRBreite() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::getMsMausAlphaFeld(
|
|
|
|
|
- int i) const // returns the multistyle mouse AlphaFeld
|
|
|
|
|
|
|
+AlphaField* SelectionBox::getMsMouseAlphaField(
|
|
|
|
|
+ int i) const // returns the multistyle mouse AlphaField
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMausAf) return 0;
|
|
if (!msMausAf) return 0;
|
|
|
return msMausAf->get(i);
|
|
return msMausAf->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AlphaFeld* AuswahlBox::zMsMausAlphaFeld(int i) const
|
|
|
|
|
|
|
+AlphaField* SelectionBox::zMsMouseAlphaField(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMausAf) return 0;
|
|
if (!msMausAf) return 0;
|
|
|
return msMausAf->z(i);
|
|
return msMausAf->z(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsMausAlphaFeldFarbe(
|
|
|
|
|
- int i) const // returns the multistyle mouse AlphaFeld color
|
|
|
|
|
|
|
+int SelectionBox::getMsMausAlphaFeldFarbe(
|
|
|
|
|
+ int i) const // returns the multistyle mouse AlphaField color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMausAf) return 0;
|
|
if (!msMausAf) return 0;
|
|
|
return msMausAf->z(i) ? msMausAf->z(i)->getFarbe() : 0;
|
|
return msMausAf->z(i) ? msMausAf->z(i)->getFarbe() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsMausAlphaFeldStrength(
|
|
|
|
|
- int i) const // returns the multistyle mouse AlphaFeld strength
|
|
|
|
|
|
|
+int SelectionBox::getMsMausAlphaFeldStrength(
|
|
|
|
|
+ int i) const // returns the multistyle mouse AlphaField strength
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMausAf) return 0;
|
|
if (!msMausAf) return 0;
|
|
|
return msMausAf->z(i) ? msMausAf->z(i)->getStrength() : 0;
|
|
return msMausAf->z(i) ? msMausAf->z(i)->getStrength() : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int AuswahlBox::getMsMausHintergrundFarbe(
|
|
|
|
|
|
|
+int SelectionBox::getMsMausHintergrundFarbe(
|
|
|
int i) const // returns the multistyle mouse background color
|
|
int i) const // returns the multistyle mouse background color
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1983,7 +1983,7 @@ int AuswahlBox::getMsMausHintergrundFarbe(
|
|
|
return msMausBgF->get(i);
|
|
return msMausBgF->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::getMsMausHintergrundImage(
|
|
|
|
|
|
|
+Image* SelectionBox::getMsMausHintergrundImage(
|
|
|
int i) const // returns the multistyle mouse background image
|
|
int i) const // returns the multistyle mouse background image
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
@@ -1991,7 +1991,7 @@ Image* AuswahlBox::getMsMausHintergrundImage(
|
|
|
return msMausBgB->get(i);
|
|
return msMausBgB->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Image* AuswahlBox::zMsMausHintergrundImage(int i) const
|
|
|
|
|
|
|
+Image* SelectionBox::zMsMausHintergrundImage(int i) const
|
|
|
{
|
|
{
|
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMausBgB) return 0;
|
|
if (!msMausBgB) return 0;
|
|
@@ -2002,13 +2002,13 @@ Image* AuswahlBox::zMsMausHintergrundImage(int i) const
|
|
|
// x: the x coordinate of the point
|
|
// x: the x coordinate of the point
|
|
|
// y: the y coordinate of the point
|
|
// y: the y coordinate of the point
|
|
|
// return: 1 if the point is inside, 0 otherwise
|
|
// return: 1 if the point is inside, 0 otherwise
|
|
|
-bool AuswahlBox::istPunktInnen(int x, int y) const
|
|
|
|
|
|
|
+bool SelectionBox::istPunktInnen(int x, int y) const
|
|
|
{
|
|
{
|
|
|
return x >= pos.x && x < pos.x + gr.x && y >= pos.y
|
|
return x >= pos.x && x < pos.x + gr.x && y >= pos.y
|
|
|
&& y < pos.y + gr.y + ausklappHeight;
|
|
&& y < pos.y + gr.y + ausklappHeight;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool AuswahlBox::hatMsStyle(
|
|
|
|
|
|
|
+bool SelectionBox::hatMsStyle(
|
|
|
int i, __int64 abStyle) const // checks if multistyle style is present
|
|
int i, __int64 abStyle) const // checks if multistyle style is present
|
|
|
{
|
|
{
|
|
|
if ((style | Style::MultiStyled) != style || !msStyle || !msStyle->hat(i))
|
|
if ((style | Style::MultiStyled) != style || !msStyle || !msStyle->hat(i))
|
|
@@ -2016,7 +2016,7 @@ bool AuswahlBox::hatMsStyle(
|
|
|
return (msStyle->get(i) | abStyle) == msStyle->get(i);
|
|
return (msStyle->get(i) | abStyle) == msStyle->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool AuswahlBox::hatMsStyleNicht(
|
|
|
|
|
|
|
+bool SelectionBox::hatMsStyleNicht(
|
|
|
int i, __int64 abStyle) const // checks if multistyle style is not present
|
|
int i, __int64 abStyle) const // checks if multistyle style is not present
|
|
|
{
|
|
{
|
|
|
if ((style | Style::MultiStyled) != style || !msStyle || !msStyle->hat(i))
|
|
if ((style | Style::MultiStyled) != style || !msStyle || !msStyle->hat(i))
|
|
@@ -2024,37 +2024,37 @@ bool AuswahlBox::hatMsStyleNicht(
|
|
|
return (msStyle->get(i) | abStyle) != msStyle->get(i);
|
|
return (msStyle->get(i) | abStyle) != msStyle->get(i);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Drawable* AuswahlBox::dublizieren() const // Creates a copy of the drawing
|
|
|
|
|
|
|
+Drawable* SelectionBox::dublizieren() const // Creates a copy of the drawing
|
|
|
{
|
|
{
|
|
|
- AuswahlBox* obj = new AuswahlBox();
|
|
|
|
|
|
|
+ SelectionBox* obj = new SelectionBox();
|
|
|
obj->setPosition(pos);
|
|
obj->setPosition(pos);
|
|
|
obj->setSize(gr);
|
|
obj->setSize(gr);
|
|
|
- obj->setMausEreignisParameter(makParam);
|
|
|
|
|
- obj->setTastaturEreignisParameter(takParam);
|
|
|
|
|
- obj->setMausEreignis(mak);
|
|
|
|
|
- obj->setTastaturEreignis(tak);
|
|
|
|
|
|
|
+ obj->setMouseEventParameter(makParam);
|
|
|
|
|
+ obj->setKeyboardEventParameter(takParam);
|
|
|
|
|
+ obj->setMouseEvent(mak);
|
|
|
|
|
+ obj->setKeyboardEvent(tak);
|
|
|
if (toolTip) obj->setToolTipZ((ToolTip*)toolTip->dublizieren());
|
|
if (toolTip) obj->setToolTipZ((ToolTip*)toolTip->dublizieren());
|
|
|
obj->setStyle(style);
|
|
obj->setStyle(style);
|
|
|
if (textRd)
|
|
if (textRd)
|
|
|
obj->setTextRendererZ(dynamic_cast<TextRenderer*>(textRd->getThis()));
|
|
obj->setTextRendererZ(dynamic_cast<TextRenderer*>(textRd->getThis()));
|
|
|
if (rahmen) obj->setBorderZ((Border*)rahmen->dublizieren());
|
|
if (rahmen) obj->setBorderZ((Border*)rahmen->dublizieren());
|
|
|
- if (ausfahren) obj->setAusklappKnopfZ((Knopf*)ausfahren->dublizieren());
|
|
|
|
|
|
|
+ if (ausfahren) obj->setDropDownButtonZ((Button*)ausfahren->dublizieren());
|
|
|
obj->setHintergrundFarbe(hintergrundFarbe);
|
|
obj->setHintergrundFarbe(hintergrundFarbe);
|
|
|
if (hintergrundImage)
|
|
if (hintergrundImage)
|
|
|
obj->setHintergrundImage(
|
|
obj->setHintergrundImage(
|
|
|
dynamic_cast<Image*>(hintergrundImage->getThis()));
|
|
dynamic_cast<Image*>(hintergrundImage->getThis()));
|
|
|
if (hintergrundFeld)
|
|
if (hintergrundFeld)
|
|
|
- obj->setAlphaFeldZ((AlphaFeld*)hintergrundFeld->dublizieren());
|
|
|
|
|
|
|
+ obj->setAlphaFieldZ((AlphaField*)hintergrundFeld->dublizieren());
|
|
|
if (selBorder) obj->setSelBorderZ((Border*)selBorder->dublizieren());
|
|
if (selBorder) obj->setSelBorderZ((Border*)selBorder->dublizieren());
|
|
|
obj->setAuswHintergrundFarbe(auswBgF);
|
|
obj->setAuswHintergrundFarbe(auswBgF);
|
|
|
if (auswBgB)
|
|
if (auswBgB)
|
|
|
obj->setAuswHintergrundImage(dynamic_cast<Image*>(auswBgB->getThis()));
|
|
obj->setAuswHintergrundImage(dynamic_cast<Image*>(auswBgB->getThis()));
|
|
|
- if (auswAf) obj->setAuswAlphaFeldZ((AlphaFeld*)auswAf->dublizieren());
|
|
|
|
|
|
|
+ if (auswAf) obj->setSelAlphaFieldZ((AlphaField*)auswAf->dublizieren());
|
|
|
if (mouseBorder) obj->setMouseBorderZ((Border*)mouseBorder->dublizieren());
|
|
if (mouseBorder) obj->setMouseBorderZ((Border*)mouseBorder->dublizieren());
|
|
|
obj->setMausHintergrundFarbe(mausBgF);
|
|
obj->setMausHintergrundFarbe(mausBgF);
|
|
|
if (mausBgB)
|
|
if (mausBgB)
|
|
|
obj->setMausHintergrundImage(dynamic_cast<Image*>(mausBgB->getThis()));
|
|
obj->setMausHintergrundImage(dynamic_cast<Image*>(mausBgB->getThis()));
|
|
|
- if (mausAf) obj->setMausAlphaFeldZ((AlphaFeld*)mausAf->dublizieren());
|
|
|
|
|
|
|
+ if (mausAf) obj->setMouseAlphaFieldZ((AlphaField*)mausAf->dublizieren());
|
|
|
obj->setMaxAuskappHeight(ausklapMaxHeight);
|
|
obj->setMaxAuskappHeight(ausklapMaxHeight);
|
|
|
obj->setEintragHeight(eintragHeight);
|
|
obj->setEintragHeight(eintragHeight);
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
for (int i = 0; i < anzahl; ++i)
|
|
@@ -2072,8 +2072,8 @@ Drawable* AuswahlBox::dublizieren() const // Creates a copy of the drawing
|
|
|
if (msAuswBgB && msAuswBgB->z(i))
|
|
if (msAuswBgB && msAuswBgB->z(i))
|
|
|
obj->setMsAuswHintergrundImage(i, msAuswBgB->get(i));
|
|
obj->setMsAuswHintergrundImage(i, msAuswBgB->get(i));
|
|
|
if (msAuswAf && msAuswAf->z(i))
|
|
if (msAuswAf && msAuswAf->z(i))
|
|
|
- obj->setMsAuswAlphaFeldZ(
|
|
|
|
|
- i, (AlphaFeld*)msAuswAf->z(i)->dublizieren());
|
|
|
|
|
|
|
+ obj->setMsSelAlphaFieldZ(
|
|
|
|
|
+ i, (AlphaField*)msAuswAf->z(i)->dublizieren());
|
|
|
if (msMouseBorder && msMouseBorder->z(i))
|
|
if (msMouseBorder && msMouseBorder->z(i))
|
|
|
obj->setMsMouseBorderZ(
|
|
obj->setMsMouseBorderZ(
|
|
|
i, (Border*)msMouseBorder->z(i)->dublizieren());
|
|
i, (Border*)msMouseBorder->z(i)->dublizieren());
|
|
@@ -2082,10 +2082,10 @@ Drawable* AuswahlBox::dublizieren() const // Creates a copy of the drawing
|
|
|
if (msMausBgB && msMausBgB->z(i))
|
|
if (msMausBgB && msMausBgB->z(i))
|
|
|
obj->setMsMausHintergrundImage(i, msMausBgB->get(i));
|
|
obj->setMsMausHintergrundImage(i, msMausBgB->get(i));
|
|
|
if (msMausAf && msMausAf->z(i))
|
|
if (msMausAf && msMausAf->z(i))
|
|
|
- obj->setMsMausAlphaFeldZ(
|
|
|
|
|
- i, (AlphaFeld*)msMausAf->z(i)->dublizieren());
|
|
|
|
|
|
|
+ obj->setMsMouseAlphaFieldZ(
|
|
|
|
|
+ i, (AlphaField*)msMausAf->z(i)->dublizieren());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- obj->setAlphaFeldFarbe(auswahl);
|
|
|
|
|
|
|
+ obj->setAlphaFieldColor(auswahl);
|
|
|
return obj;
|
|
return obj;
|
|
|
}
|
|
}
|