|
|
@@ -23,53 +23,53 @@ SelectionBox::SelectionBox()
|
|
|
members(new RCArray<TextField>()),
|
|
|
ausfahren(new Button()),
|
|
|
selBorder(new LBorder()),
|
|
|
- auswBgF(0xFF000000),
|
|
|
- auswBgB(0),
|
|
|
- auswAf(new AlphaField()),
|
|
|
+ selBgF(0xFF000000),
|
|
|
+ selBgB(0),
|
|
|
+ selAf(new AlphaField()),
|
|
|
msSelBorder(0),
|
|
|
- msAuswBgF(0),
|
|
|
- msAuswBgB(0),
|
|
|
- msAuswAf(0),
|
|
|
+ msSelBgF(0),
|
|
|
+ msSelBgB(0),
|
|
|
+ msSelAf(0),
|
|
|
mouseBorder(new LBorder()),
|
|
|
- mausBgF(0xFF000000),
|
|
|
- mausBgB(0),
|
|
|
- mausAf(new AlphaField()),
|
|
|
+ mouseBgF(0xFF000000),
|
|
|
+ mouseBgB(0),
|
|
|
+ mouseAf(new AlphaField()),
|
|
|
msMouseBorder(0),
|
|
|
- msMausBgF(0),
|
|
|
- msMausBgB(0),
|
|
|
- msMausAf(0),
|
|
|
+ msMouseBgF(0),
|
|
|
+ msMouseBgB(0),
|
|
|
+ msMouseAf(0),
|
|
|
anzahl(0),
|
|
|
- auswahl(0),
|
|
|
+ selection(0),
|
|
|
ausgeklappt(0),
|
|
|
ausklappHeight(0),
|
|
|
ausklapMaxHeight(200),
|
|
|
- eintragHeight(15),
|
|
|
+ entryHeight(15),
|
|
|
tickval(0),
|
|
|
- mausEintrag(0),
|
|
|
+ mouseEntry(0),
|
|
|
scrollAnzeigen(0),
|
|
|
eAkP(0),
|
|
|
eAk(0)
|
|
|
{
|
|
|
vertikalScrollBar = new VScrollBar();
|
|
|
style = Style::Normal;
|
|
|
- rahmen = new LBorder();
|
|
|
- rahmen->setFarbe(0xFFFFFFFF);
|
|
|
- rahmen->setRamenBreite(1);
|
|
|
- ausfahren->setStyle(Button::Style::Sichtbar | Button::Style::Erlaubt
|
|
|
- | Button::Style::KlickBuffer);
|
|
|
- ausfahren->setKBFarbe(0xA0000000);
|
|
|
+ border = new LBorder();
|
|
|
+ border->setColor(0xFFFFFFFF);
|
|
|
+ border->setBorderWidth(1);
|
|
|
+ ausfahren->setStyle(Button::Style::Visible | Button::Style::Allowed
|
|
|
+ | Button::Style::ClickBuffer);
|
|
|
+ ausfahren->setKBColor(0xA0000000);
|
|
|
ausfahren->setKBStrength(10);
|
|
|
ausfahren->setSize(18, 18);
|
|
|
- ausfahren->setSchriftFarbe(0xFFFFFFFF);
|
|
|
+ ausfahren->setFontColor(0xFFFFFFFF);
|
|
|
ausfahren->setText("\\/");
|
|
|
- selBorder->setFarbe(0xFF00FF00);
|
|
|
- selBorder->setRamenBreite(1);
|
|
|
- auswAf->setFarbe(0xA000FF00);
|
|
|
- auswAf->setStrength(7);
|
|
|
- mouseBorder->setFarbe(0xFF00FF00);
|
|
|
- mouseBorder->setRamenBreite(1);
|
|
|
- mausAf->setFarbe(0x5000FF00);
|
|
|
- mausAf->setStrength(7);
|
|
|
+ selBorder->setColor(0xFF00FF00);
|
|
|
+ selBorder->setBorderWidth(1);
|
|
|
+ selAf->setColor(0xA000FF00);
|
|
|
+ selAf->setStrength(7);
|
|
|
+ mouseBorder->setColor(0xFF00FF00);
|
|
|
+ mouseBorder->setBorderWidth(1);
|
|
|
+ mouseAf->setColor(0x5000FF00);
|
|
|
+ mouseAf->setStrength(7);
|
|
|
gr.x = 20;
|
|
|
gr.y = 20;
|
|
|
}
|
|
|
@@ -82,36 +82,36 @@ SelectionBox::~SelectionBox()
|
|
|
if (members) members->release();
|
|
|
if (ausfahren) ausfahren->release();
|
|
|
if (selBorder) selBorder->release();
|
|
|
- if (auswBgB) auswBgB->release();
|
|
|
- if (auswAf) auswAf->release();
|
|
|
+ if (selBgB) selBgB->release();
|
|
|
+ if (selAf) selAf->release();
|
|
|
if (msSelBorder) msSelBorder->release();
|
|
|
- if (msAuswAf) msAuswAf->release();
|
|
|
- if (msAuswBgB) msAuswBgB->release();
|
|
|
- if (msAuswBgF) msAuswBgF->release();
|
|
|
+ if (msSelAf) msSelAf->release();
|
|
|
+ if (msSelBgB) msSelBgB->release();
|
|
|
+ if (msSelBgF) msSelBgF->release();
|
|
|
if (mouseBorder) mouseBorder->release();
|
|
|
- if (mausAf) mausAf->release();
|
|
|
- if (mausBgB) mausBgB->release();
|
|
|
+ if (mouseAf) mouseAf->release();
|
|
|
+ if (mouseBgB) mouseBgB->release();
|
|
|
if (msMouseBorder) msMouseBorder->release();
|
|
|
- if (msMausAf) msMausAf->release();
|
|
|
- if (msMausBgB) msMausBgB->release();
|
|
|
- if (msMausBgF) msMausBgF->release();
|
|
|
+ if (msMouseAf) msMouseAf->release();
|
|
|
+ if (msMouseBgB) msMouseBgB->release();
|
|
|
+ if (msMouseBgF) msMouseBgF->release();
|
|
|
}
|
|
|
|
|
|
void SelectionBox::doMouseEvent(MouseEvent& me, bool userRet) // mouse events
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::Erlaubt) || hatStyleNicht(Style::Fokus)
|
|
|
- || me.verarbeitet)
|
|
|
+ if (hasStyleNot(Style::Allowed) || hasStyleNot(Style::Focus)
|
|
|
+ || me.processed)
|
|
|
{
|
|
|
ausgeklappt = 0;
|
|
|
- me.verarbeitet = 1;
|
|
|
+ me.processed = 1;
|
|
|
return;
|
|
|
}
|
|
|
if (!userRet) return;
|
|
|
- mausEintrag = -1;
|
|
|
+ mouseEntry = -1;
|
|
|
bool insideParent = me.insideParent;
|
|
|
me.insideParent = me.mx >= 0 && me.mx < gr.x && me.my >= 0
|
|
|
&& me.my < gr.y + ausklappHeight;
|
|
|
- bool vera = me.verarbeitet;
|
|
|
+ bool vera = me.processed;
|
|
|
if (ausfahren)
|
|
|
{
|
|
|
int tmpMx = me.mx;
|
|
|
@@ -121,34 +121,34 @@ void SelectionBox::doMouseEvent(MouseEvent& me, bool userRet) // mouse events
|
|
|
ausfahren->doPublicMouseEvent(me);
|
|
|
me.mx = tmpMx, me.my = tmpMy;
|
|
|
}
|
|
|
- if (me.verarbeitet && !vera && me.id == ME_RLinks)
|
|
|
+ if (me.processed && !vera && me.id == ME_RLeft)
|
|
|
{
|
|
|
ausgeklappt = !ausgeklappt;
|
|
|
- if (ausgeklappt) mausEintrag = auswahl;
|
|
|
- if (scrollAnzeigen) scrollZuEintrag(mausEintrag);
|
|
|
+ if (ausgeklappt) mouseEntry = selection;
|
|
|
+ if (scrollAnzeigen) scrollToEntry(mouseEntry);
|
|
|
}
|
|
|
- if (hatStyle(Style::VScroll) && vertikalScrollBar && ausgeklappt
|
|
|
+ if (hasStyle(Style::VScroll) && vertikalScrollBar && ausgeklappt
|
|
|
&& scrollAnzeigen)
|
|
|
{
|
|
|
int rbr = 0;
|
|
|
- if (rahmen && hatStyle(Style::Border)) rbr = rahmen->getRBreite();
|
|
|
+ if (border && hasStyle(Style::Border)) rbr = border->getRWidth();
|
|
|
if ((me.mx > gr.x - 15 - rbr && me.my > gr.y) || me.id == ME_UScroll
|
|
|
|| me.id == ME_DScroll)
|
|
|
{
|
|
|
- vertikalScrollBar->doMausMessage(gr.x - rbr - 15,
|
|
|
+ vertikalScrollBar->doMouseMessage(gr.x - rbr - 15,
|
|
|
gr.y,
|
|
|
15,
|
|
|
vertikalScrollBar->getScrollData()->anzeige,
|
|
|
me);
|
|
|
- me.verarbeitet = 1;
|
|
|
+ me.processed = 1;
|
|
|
}
|
|
|
}
|
|
|
- if (!me.verarbeitet)
|
|
|
+ if (!me.processed)
|
|
|
{
|
|
|
int eintr = -1;
|
|
|
int tmp = me.my - gr.y
|
|
|
+ (vertikalScrollBar ? vertikalScrollBar->getScroll() : 0);
|
|
|
- if (hatStyle(Style::MultiStyled))
|
|
|
+ if (hasStyle(Style::MultiStyled))
|
|
|
{
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
|
@@ -165,12 +165,12 @@ void SelectionBox::doMouseEvent(MouseEvent& me, bool userRet) // mouse events
|
|
|
{
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
|
- if (tmp > 0 && tmp < eintragHeight)
|
|
|
+ if (tmp > 0 && tmp < entryHeight)
|
|
|
{
|
|
|
eintr = i;
|
|
|
break;
|
|
|
}
|
|
|
- tmp -= eintragHeight;
|
|
|
+ tmp -= entryHeight;
|
|
|
}
|
|
|
}
|
|
|
if (ausgeklappt && me.mx > 0 && me.mx < gr.x && me.my > gr.y
|
|
|
@@ -178,18 +178,18 @@ void SelectionBox::doMouseEvent(MouseEvent& me, bool userRet) // mouse events
|
|
|
{
|
|
|
if (eintr >= 0)
|
|
|
{
|
|
|
- if (me.id == ME_RLinks)
|
|
|
+ if (me.id == ME_RLeft)
|
|
|
{
|
|
|
- if (auswahl != eintr) rend = 1;
|
|
|
- auswahl = eintr;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
+ if (selection != eintr) rend = 1;
|
|
|
+ selection = eintr;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
}
|
|
|
- if (mausEintrag != eintr) rend = 1;
|
|
|
- mausEintrag = eintr;
|
|
|
+ if (mouseEntry != eintr) rend = 1;
|
|
|
+ mouseEntry = eintr;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- me.verarbeitet = 1;
|
|
|
+ me.processed = 1;
|
|
|
me.insideParent = insideParent;
|
|
|
}
|
|
|
|
|
|
@@ -205,13 +205,13 @@ void SelectionBox::setEventAktion(
|
|
|
this->eAk = event;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setFontZ(Font* schrift) // set font
|
|
|
+void SelectionBox::setFontZ(Font* font) // set font
|
|
|
{
|
|
|
if (!this->textRd)
|
|
|
- textRd = new TextRenderer(schrift);
|
|
|
+ textRd = new TextRenderer(font);
|
|
|
else
|
|
|
- textRd->setFontZ(schrift);
|
|
|
- ausfahren->setFontZ(dynamic_cast<Font*>(schrift->getThis()));
|
|
|
+ textRd->setFontZ(font);
|
|
|
+ ausfahren->setFontZ(dynamic_cast<Font*>(font->getThis()));
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
@@ -221,50 +221,50 @@ void SelectionBox::setTextRendererZ(TextRenderer* textRd)
|
|
|
this->textRd = textRd;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::addEintrag(const char* txt) // add entry
|
|
|
+void SelectionBox::addEntry(const char* txt) // add entry
|
|
|
{
|
|
|
TextField* tf = new TextField();
|
|
|
if (textRd) tf->setFontZ(textRd->getFont());
|
|
|
- tf->addStyle(TextField::Style::Sichtbar | TextField::Style::Center
|
|
|
+ tf->addStyle(TextField::Style::Visible | TextField::Style::Center
|
|
|
| TextField::Style::Border);
|
|
|
tf->setText(txt);
|
|
|
- tf->setSchriftFarbe(0xFFFFFFFF);
|
|
|
+ tf->setFontColor(0xFFFFFFFF);
|
|
|
tf->setBorderColor(0xFFFFFFFF);
|
|
|
- tf->setSize(0, eintragHeight);
|
|
|
+ tf->setSize(0, entryHeight);
|
|
|
members->add(tf, anzahl);
|
|
|
++anzahl;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::addEintrag(Text* txt)
|
|
|
+void SelectionBox::addEntry(Text* txt)
|
|
|
{
|
|
|
TextField* tf = new TextField();
|
|
|
if (textRd) tf->setFontZ(textRd->getFont());
|
|
|
- tf->addStyle(TextField::Style::Sichtbar | TextField::Style::Center
|
|
|
+ tf->addStyle(TextField::Style::Visible | TextField::Style::Center
|
|
|
| TextField::Style::Border);
|
|
|
tf->setText(txt);
|
|
|
- tf->setSchriftFarbe(0xFFFFFFFF);
|
|
|
+ tf->setFontColor(0xFFFFFFFF);
|
|
|
tf->setBorderColor(0xFFFFFFFF);
|
|
|
- tf->setSize(0, eintragHeight);
|
|
|
+ tf->setSize(0, entryHeight);
|
|
|
members->add(tf, anzahl);
|
|
|
++anzahl;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::addEintragZ(TextField* txt)
|
|
|
+void SelectionBox::addEntryZ(TextField* txt)
|
|
|
{
|
|
|
members->add(txt, anzahl);
|
|
|
++anzahl;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintrag(int i, const char* txt) // set entry text
|
|
|
+void SelectionBox::setEntry(int i, const char* txt) // set entry text
|
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setText(txt);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintrag(int i, Text* txt)
|
|
|
+void SelectionBox::setEntry(int i, Text* txt)
|
|
|
{
|
|
|
if (members->z(i))
|
|
|
members->z(i)->setText(txt);
|
|
|
@@ -273,7 +273,7 @@ void SelectionBox::setEintrag(int i, Text* txt)
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragZ(int i, TextField* txt)
|
|
|
+void SelectionBox::setEntryZ(int i, TextField* txt)
|
|
|
{
|
|
|
if (i < anzahl)
|
|
|
members->set(txt, i);
|
|
|
@@ -282,22 +282,22 @@ void SelectionBox::setEintragZ(int i, TextField* txt)
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::removeEintrag(int i) // remove entry
|
|
|
+void SelectionBox::removeEntry(int i) // remove entry
|
|
|
{
|
|
|
if (i < anzahl)
|
|
|
{
|
|
|
members->remove(i);
|
|
|
if (msStyle) msStyle->remove(i);
|
|
|
if (msSelBorder) msSelBorder->remove(i);
|
|
|
- if (msAuswBgF) msAuswBgF->remove(i);
|
|
|
- if (msAuswBgB) msAuswBgB->remove(i);
|
|
|
- if (msAuswAf) msAuswAf->remove(i);
|
|
|
+ if (msSelBgF) msSelBgF->remove(i);
|
|
|
+ if (msSelBgB) msSelBgB->remove(i);
|
|
|
+ if (msSelAf) msSelAf->remove(i);
|
|
|
if (msMouseBorder) msMouseBorder->remove(i);
|
|
|
- if (msMausBgF) msMausBgF->remove(i);
|
|
|
- if (msMausBgB) msMausBgB->remove(i);
|
|
|
- if (msMausAf) msMausAf->remove(i);
|
|
|
- if (auswahl > i) --auswahl;
|
|
|
- if (mausEintrag > i) --mausEintrag;
|
|
|
+ if (msMouseBgF) msMouseBgF->remove(i);
|
|
|
+ if (msMouseBgB) msMouseBgB->remove(i);
|
|
|
+ if (msMouseAf) msMouseAf->remove(i);
|
|
|
+ if (selection > i) --selection;
|
|
|
+ if (mouseEntry > i) --mouseEntry;
|
|
|
--anzahl;
|
|
|
rend = 1;
|
|
|
}
|
|
|
@@ -310,49 +310,49 @@ void SelectionBox::setDropDownButtonZ(Button* ausK) // set expand button
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEntryBorderZ(int i, Border* rahmen) // set entry border
|
|
|
+void SelectionBox::setEntryBorderZ(int i, Border* border) // set entry border
|
|
|
{
|
|
|
if (members->z(i))
|
|
|
- members->z(i)->setBorderZ(rahmen);
|
|
|
+ members->z(i)->setBorderZ(border);
|
|
|
else
|
|
|
- rahmen->release();
|
|
|
+ border->release();
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragRahmenFarbe(int i, int f) // set entry border color
|
|
|
+void SelectionBox::setEntryBorderColor(int i, int f) // set entry border color
|
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setBorderColor(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragRahmenBreite(
|
|
|
+void SelectionBox::setEntryBorderWidth(
|
|
|
int i, int rbr) // set entry border width
|
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setBorderWidth(rbr);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragHintergrundFarbe(
|
|
|
+void SelectionBox::setEntryBackgroundColor(
|
|
|
int i, int f) // set entry background color
|
|
|
{
|
|
|
- if (members->z(i)) members->z(i)->setHintergrundFarbe(f);
|
|
|
+ if (members->z(i)) members->z(i)->setBackgroundColor(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragHintergrundImageZ(
|
|
|
+void SelectionBox::setEntryBackgroundImageZ(
|
|
|
int i, Image* bgB) // set entry background image
|
|
|
{
|
|
|
if (members->z(i))
|
|
|
- members->z(i)->setHintergrundImageZ(bgB);
|
|
|
+ members->z(i)->setBackgroundImageZ(bgB);
|
|
|
else
|
|
|
bgB->release();
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragHintergrundImage(int i, Image* bgB)
|
|
|
+void SelectionBox::setEntryBackgroundImage(int i, Image* bgB)
|
|
|
{
|
|
|
if (members->z(i))
|
|
|
- members->z(i)->setHintergrundImage(bgB);
|
|
|
+ members->z(i)->setBackgroundImage(bgB);
|
|
|
else
|
|
|
bgB->release();
|
|
|
rend = 1;
|
|
|
@@ -365,162 +365,162 @@ void SelectionBox::setEntryAlphaFieldZ(
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragAlphaFeldFarbe(
|
|
|
+void SelectionBox::setEntryAlphaFieldColor(
|
|
|
int i, int afF) // set entry AlphaField color
|
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setAlphaFieldColor(afF);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragAlphaFeldStrength(
|
|
|
+void SelectionBox::setEntryAlphaFieldStrength(
|
|
|
int i, int afSt) // set entry AlphaField strength
|
|
|
{
|
|
|
if (members->z(i)) members->z(i)->setAlphaFieldStrength(afSt);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setSelBorderZ(Border* rahmen) // set selection border
|
|
|
+void SelectionBox::setSelBorderZ(Border* border) // set selection border
|
|
|
{
|
|
|
if (selBorder) selBorder->release();
|
|
|
- selBorder = rahmen;
|
|
|
+ selBorder = border;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswRahmenFarbe(int f) // set selection border color
|
|
|
+void SelectionBox::setSelBorderColor(int f) // set selection border color
|
|
|
{
|
|
|
if (!selBorder) selBorder = new LBorder();
|
|
|
- selBorder->setFarbe(f);
|
|
|
+ selBorder->setColor(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswRahmenBreite(int rbr) // set selection border width
|
|
|
+void SelectionBox::setSelBorderWidth(int rbr) // set selection border width
|
|
|
{
|
|
|
if (!selBorder) selBorder = new LBorder();
|
|
|
- selBorder->setRamenBreite(rbr);
|
|
|
+ selBorder->setBorderWidth(rbr);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswHintergrundFarbe(
|
|
|
+void SelectionBox::setSelBackgroundColor(
|
|
|
int f) // set selection background color
|
|
|
{
|
|
|
- auswBgF = f;
|
|
|
+ selBgF = f;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswHintergrundImageZ(
|
|
|
+void SelectionBox::setSelBackgroundImageZ(
|
|
|
Image* bgB) // set selection background image
|
|
|
{
|
|
|
- if (auswBgB) auswBgB->release();
|
|
|
- auswBgB = bgB;
|
|
|
+ if (selBgB) selBgB->release();
|
|
|
+ selBgB = bgB;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswHintergrundImage(Image* bgB)
|
|
|
+void SelectionBox::setSelBackgroundImage(Image* bgB)
|
|
|
{
|
|
|
- if (!auswBgB) auswBgB = new Image();
|
|
|
- auswBgB->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
|
- auswBgB->drawImage(0, 0, bgB->getBreite(), bgB->getHeight(), *bgB);
|
|
|
+ if (!selBgB) selBgB = new Image();
|
|
|
+ selBgB->newImage(bgB->getWidth(), bgB->getHeight(), 0);
|
|
|
+ selBgB->drawImage(0, 0, bgB->getWidth(), bgB->getHeight(), *bgB);
|
|
|
bgB->release();
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::setSelAlphaFieldZ(AlphaField* af) // set selection AlphaField
|
|
|
{
|
|
|
- if (auswAf) auswAf->release();
|
|
|
- auswAf = af;
|
|
|
+ if (selAf) selAf->release();
|
|
|
+ selAf = af;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::setSelAlphaFieldColor(int afF) // set selection AlphaField color
|
|
|
{
|
|
|
- if (!auswAf) auswAf = new AlphaField();
|
|
|
- auswAf->setFarbe(afF);
|
|
|
+ if (!selAf) selAf = new AlphaField();
|
|
|
+ selAf->setColor(afF);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswAlphaFeldStrength(
|
|
|
+void SelectionBox::setSelAlphaFieldStrength(
|
|
|
int afSt) // set selection AlphaField strength
|
|
|
{
|
|
|
- if (!auswAf) auswAf = new AlphaField();
|
|
|
- auswAf->setStrength(afSt);
|
|
|
+ if (!selAf) selAf = new AlphaField();
|
|
|
+ selAf->setStrength(afSt);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::setMsSelBorderZ(
|
|
|
- int i, Border* rahmen) // set multistyle selection border
|
|
|
+ int i, Border* border) // set multistyle selection border
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
- rahmen->release();
|
|
|
+ border->release();
|
|
|
return;
|
|
|
}
|
|
|
if (!msSelBorder) msSelBorder = new RCArray<Border>();
|
|
|
- msSelBorder->set(rahmen, i);
|
|
|
+ msSelBorder->set(border, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswRahmenFarbe(
|
|
|
+void SelectionBox::setMsSelBorderColor(
|
|
|
int i, int f) // set multistyle selection border color
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msSelBorder) msSelBorder = new RCArray<Border>();
|
|
|
if (!msSelBorder->z(i)) msSelBorder->set(new LBorder(), i);
|
|
|
- msSelBorder->z(i)->setFarbe(f);
|
|
|
+ msSelBorder->z(i)->setColor(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswRahmenBreite(
|
|
|
+void SelectionBox::setMsSelBorderWidth(
|
|
|
int i, int rbr) // set multistyle selection width
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msSelBorder) msSelBorder = new RCArray<Border>();
|
|
|
if (!msSelBorder->z(i)) msSelBorder->set(new LBorder(), i);
|
|
|
- msSelBorder->z(i)->setRamenBreite(rbr);
|
|
|
+ msSelBorder->z(i)->setBorderWidth(rbr);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswHintergrundFarbe(
|
|
|
+void SelectionBox::setMsSelBackgroundColor(
|
|
|
int i, int f) // set multistyle selection background color
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msAuswBgF) msAuswBgF = new Array<int>();
|
|
|
- msAuswBgF->set(f, i);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (!msSelBgF) msSelBgF = new Array<int>();
|
|
|
+ msSelBgF->set(f, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswHintergrundImageZ(
|
|
|
+void SelectionBox::setMsSelBackgroundImageZ(
|
|
|
int i, Image* bgB) // set multistyle selection background image
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
bgB->release();
|
|
|
return;
|
|
|
}
|
|
|
- if (!msAuswBgB) msAuswBgB = new RCArray<Image>();
|
|
|
- msAuswBgB->set(bgB, i);
|
|
|
+ if (!msSelBgB) msSelBgB = new RCArray<Image>();
|
|
|
+ msSelBgB->set(bgB, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswHintergrundImage(int i, Image* bgB)
|
|
|
+void SelectionBox::setMsSelBackgroundImage(int i, Image* bgB)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
bgB->release();
|
|
|
return;
|
|
|
}
|
|
|
- if (!msAuswBgB) msAuswBgB = new RCArray<Image>();
|
|
|
- if (!msAuswBgB->z(i))
|
|
|
+ if (!msSelBgB) msSelBgB = new RCArray<Image>();
|
|
|
+ if (!msSelBgB->z(i))
|
|
|
{
|
|
|
Image* z = new Image;
|
|
|
- z->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
|
- z->drawImage(0, 0, bgB->getBreite(), bgB->getHeight(), *bgB);
|
|
|
- msAuswBgB->set(z, i);
|
|
|
+ z->newImage(bgB->getWidth(), bgB->getHeight(), 0);
|
|
|
+ z->drawImage(0, 0, bgB->getWidth(), bgB->getHeight(), *bgB);
|
|
|
+ msSelBgB->set(z, i);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- msAuswBgB->z(i)->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
|
- msAuswBgB->z(i)->drawImage(
|
|
|
- 0, 0, bgB->getBreite(), bgB->getHeight(), *bgB);
|
|
|
+ msSelBgB->z(i)->newImage(bgB->getWidth(), bgB->getHeight(), 0);
|
|
|
+ msSelBgB->z(i)->drawImage(
|
|
|
+ 0, 0, bgB->getWidth(), bgB->getHeight(), *bgB);
|
|
|
}
|
|
|
bgB->release();
|
|
|
rend = 1;
|
|
|
@@ -529,177 +529,177 @@ void SelectionBox::setMsAuswHintergrundImage(int i, Image* bgB)
|
|
|
void SelectionBox::setMsSelAlphaFieldZ(
|
|
|
int i, AlphaField* af) // set multistyle selection AlphaField
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
af->release();
|
|
|
return;
|
|
|
}
|
|
|
- if (!msAuswAf) msAuswAf = new RCArray<AlphaField>();
|
|
|
- msAuswAf->set(af, i);
|
|
|
+ if (!msSelAf) msSelAf = new RCArray<AlphaField>();
|
|
|
+ msSelAf->set(af, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswAlphaFeldFarbe(
|
|
|
+void SelectionBox::setMsSelAlphaFieldColor(
|
|
|
int i, int afF) // set multistyle selection AlphaField color
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msAuswAf) msAuswAf = new RCArray<AlphaField>();
|
|
|
- if (!msAuswAf->z(i)) msAuswAf->set(new AlphaField(), i);
|
|
|
- msAuswAf->z(i)->setFarbe(afF);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (!msSelAf) msSelAf = new RCArray<AlphaField>();
|
|
|
+ if (!msSelAf->z(i)) msSelAf->set(new AlphaField(), i);
|
|
|
+ msSelAf->z(i)->setColor(afF);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsAuswAlphaFeldStrength(
|
|
|
+void SelectionBox::setMsSelAlphaFieldStrength(
|
|
|
int i, int afSt) // set multistyle selection AlphaField strength
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msAuswAf) msAuswAf = new RCArray<AlphaField>();
|
|
|
- if (!msAuswAf->z(i)) msAuswAf->set(new AlphaField(), i);
|
|
|
- msAuswAf->z(i)->setStrength(afSt);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (!msSelAf) msSelAf = new RCArray<AlphaField>();
|
|
|
+ if (!msSelAf->z(i)) msSelAf->set(new AlphaField(), i);
|
|
|
+ msSelAf->z(i)->setStrength(afSt);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMouseBorderZ(Border* rahmen) // set mouse border
|
|
|
+void SelectionBox::setMouseBorderZ(Border* border) // set mouse border
|
|
|
{
|
|
|
if (mouseBorder) mouseBorder->release();
|
|
|
- mouseBorder = rahmen;
|
|
|
+ mouseBorder = border;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMausRahmenFarbe(int f) // set mouse border color
|
|
|
+void SelectionBox::setMouseBorderColor(int f) // set mouse border color
|
|
|
{
|
|
|
if (!mouseBorder) mouseBorder = new LBorder();
|
|
|
- mouseBorder->setFarbe(f);
|
|
|
+ mouseBorder->setColor(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMausRahmenBreite(int rbr) // set mouse border width
|
|
|
+void SelectionBox::setMouseBorderWidth(int rbr) // set mouse border width
|
|
|
{
|
|
|
if (!mouseBorder) mouseBorder = new LBorder();
|
|
|
- mouseBorder->setRamenBreite(rbr);
|
|
|
+ mouseBorder->setBorderWidth(rbr);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMausHintergrundFarbe(int f) // set mouse background color
|
|
|
+void SelectionBox::setMouseBackgroundColor(int f) // set mouse background color
|
|
|
{
|
|
|
- mausBgF = f;
|
|
|
+ mouseBgF = f;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMausHintergrundImageZ(
|
|
|
+void SelectionBox::setMouseBackgroundImageZ(
|
|
|
Image* bgB) // set mouse background image
|
|
|
{
|
|
|
- if (mausBgB) mausBgB->release();
|
|
|
- mausBgB = bgB;
|
|
|
+ if (mouseBgB) mouseBgB->release();
|
|
|
+ mouseBgB = bgB;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMausHintergrundImage(Image* bgB)
|
|
|
+void SelectionBox::setMouseBackgroundImage(Image* bgB)
|
|
|
{
|
|
|
- if (!mausBgB) mausBgB = new Image();
|
|
|
- mausBgB->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
|
- mausBgB->drawImage(0, 0, bgB->getBreite(), bgB->getHeight(), *bgB);
|
|
|
+ if (!mouseBgB) mouseBgB = new Image();
|
|
|
+ mouseBgB->newImage(bgB->getWidth(), bgB->getHeight(), 0);
|
|
|
+ mouseBgB->drawImage(0, 0, bgB->getWidth(), bgB->getHeight(), *bgB);
|
|
|
bgB->release();
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::setMouseAlphaFieldZ(AlphaField* af) // set mouse AlphaField
|
|
|
{
|
|
|
- if (mausAf) mausAf->release();
|
|
|
- mausAf = af;
|
|
|
+ if (mouseAf) mouseAf->release();
|
|
|
+ mouseAf = af;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::setMouseAlphaFieldColor(int afF) // set mouse AlphaField color
|
|
|
{
|
|
|
- if (!mausAf) mausAf = new AlphaField();
|
|
|
- mausAf->setFarbe(afF);
|
|
|
+ if (!mouseAf) mouseAf = new AlphaField();
|
|
|
+ mouseAf->setColor(afF);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMausAlphaFeldStrength(
|
|
|
+void SelectionBox::setMouseAlphaFieldStrength(
|
|
|
int afSt) // set mouse AlphaField strength
|
|
|
{
|
|
|
- if (!mausAf) mausAf = new AlphaField();
|
|
|
- mausAf->setStrength(afSt);
|
|
|
+ if (!mouseAf) mouseAf = new AlphaField();
|
|
|
+ mouseAf->setStrength(afSt);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::setMsMouseBorderZ(
|
|
|
- int i, Border* rahmen) // set multistyle mouse border
|
|
|
+ int i, Border* border) // set multistyle mouse border
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
- rahmen->release();
|
|
|
+ border->release();
|
|
|
return;
|
|
|
}
|
|
|
if (!msMouseBorder) msMouseBorder = new RCArray<Border>();
|
|
|
- msMouseBorder->set(rahmen, i);
|
|
|
+ msMouseBorder->set(border, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausRahmenFarbe(
|
|
|
+void SelectionBox::setMsMouseBorderColor(
|
|
|
int i, int f) // set multistyle mouse border color
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msMouseBorder) msMouseBorder = new RCArray<Border>();
|
|
|
if (!msMouseBorder->z(i)) msMouseBorder->set(new LBorder(), i);
|
|
|
- msMouseBorder->z(i)->setFarbe(f);
|
|
|
+ msMouseBorder->z(i)->setColor(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausRahmenBreite(
|
|
|
+void SelectionBox::setMsMouseBorderWidth(
|
|
|
int i, int rbr) // set multistyle mouse border width
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msMouseBorder) msMouseBorder = new RCArray<Border>();
|
|
|
if (!msMouseBorder->z(i)) msMouseBorder->set(new LBorder(), i);
|
|
|
- msMouseBorder->z(i)->setRamenBreite(rbr);
|
|
|
+ msMouseBorder->z(i)->setBorderWidth(rbr);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausHintergrundFarbe(
|
|
|
+void SelectionBox::setMsMouseBackgroundColor(
|
|
|
int i, int f) // set multistyle mouse background color
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msMausBgF) msMausBgF = new Array<int>();
|
|
|
- msMausBgF->set(f, i);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (!msMouseBgF) msMouseBgF = new Array<int>();
|
|
|
+ msMouseBgF->set(f, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausHintergrundImageZ(
|
|
|
+void SelectionBox::setMsMouseBackgroundImageZ(
|
|
|
int i, Image* bgB) // set multistyle mouse background image
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
bgB->release();
|
|
|
return;
|
|
|
}
|
|
|
- if (!msMausBgB) msMausBgB = new RCArray<Image>();
|
|
|
- msMausBgB->set(bgB, i);
|
|
|
+ if (!msMouseBgB) msMouseBgB = new RCArray<Image>();
|
|
|
+ msMouseBgB->set(bgB, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausHintergrundImage(int i, Image* bgB)
|
|
|
+void SelectionBox::setMsMouseBackgroundImage(int i, Image* bgB)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
bgB->release();
|
|
|
return;
|
|
|
}
|
|
|
- if (!msMausBgB) msMausBgB = new RCArray<Image>();
|
|
|
- if (!msMausBgB->z(i))
|
|
|
+ if (!msMouseBgB) msMouseBgB = new RCArray<Image>();
|
|
|
+ if (!msMouseBgB->z(i))
|
|
|
{
|
|
|
Image* z = new Image;
|
|
|
- z->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
|
- z->drawImage(0, 0, bgB->getBreite(), bgB->getHeight(), *bgB);
|
|
|
- msMausBgB->set(z, i);
|
|
|
+ z->newImage(bgB->getWidth(), bgB->getHeight(), 0);
|
|
|
+ z->drawImage(0, 0, bgB->getWidth(), bgB->getHeight(), *bgB);
|
|
|
+ msMouseBgB->set(z, i);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- msMausBgB->z(i)->neuImage(bgB->getBreite(), bgB->getHeight(), 0);
|
|
|
- msMausBgB->z(i)->drawImage(
|
|
|
- 0, 0, bgB->getBreite(), bgB->getHeight(), *bgB);
|
|
|
+ msMouseBgB->z(i)->newImage(bgB->getWidth(), bgB->getHeight(), 0);
|
|
|
+ msMouseBgB->z(i)->drawImage(
|
|
|
+ 0, 0, bgB->getWidth(), bgB->getHeight(), *bgB);
|
|
|
}
|
|
|
bgB->release();
|
|
|
rend = 1;
|
|
|
@@ -708,68 +708,68 @@ void SelectionBox::setMsMausHintergrundImage(int i, Image* bgB)
|
|
|
void SelectionBox::setMsMouseAlphaFieldZ(
|
|
|
int i, AlphaField* af) // set multistyle mouse AlphaField
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl)
|
|
|
{
|
|
|
af->release();
|
|
|
return;
|
|
|
}
|
|
|
- if (!msMausAf) msMausAf = new RCArray<AlphaField>();
|
|
|
- msMausAf->set(af, i);
|
|
|
+ if (!msMouseAf) msMouseAf = new RCArray<AlphaField>();
|
|
|
+ msMouseAf->set(af, i);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausAlphaFeldFarbe(
|
|
|
+void SelectionBox::setMsMouseAlphaFieldColor(
|
|
|
int i, int afF) // set multistyle mouse AlphaField color
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msMausAf) msMausAf = new RCArray<AlphaField>();
|
|
|
- if (!msMausAf->z(i)) msMausAf->set(new AlphaField(), i);
|
|
|
- msMausAf->z(i)->setFarbe(afF);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (!msMouseAf) msMouseAf = new RCArray<AlphaField>();
|
|
|
+ if (!msMouseAf->z(i)) msMouseAf->set(new AlphaField(), i);
|
|
|
+ msMouseAf->z(i)->setColor(afF);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setMsMausAlphaFeldStrength(
|
|
|
+void SelectionBox::setMsMouseAlphaFieldStrength(
|
|
|
int i, int afSt) // set multistyle mouse AlphaField strength
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
- if (!msMausAf) msMausAf = new RCArray<AlphaField>();
|
|
|
- if (!msMausAf->z(i)) msMausAf->set(new AlphaField(), i);
|
|
|
- msMausAf->z(i)->setStrength(afSt);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (!msMouseAf) msMouseAf = new RCArray<AlphaField>();
|
|
|
+ if (!msMouseAf->z(i)) msMouseAf->set(new AlphaField(), i);
|
|
|
+ msMouseAf->z(i)->setStrength(afSt);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setAuswahl(int i) // select entry
|
|
|
+void SelectionBox::setSelection(int i) // select entry
|
|
|
{
|
|
|
- if (i < anzahl && i != auswahl)
|
|
|
+ if (i < anzahl && i != selection)
|
|
|
{
|
|
|
- auswahl = i;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
+ selection = i;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
rend = 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::ausklappen() // expand list
|
|
|
+void SelectionBox::expand() // expand list
|
|
|
{
|
|
|
ausgeklappt = 1;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::einklappen() // collapse list
|
|
|
+void SelectionBox::collapse() // collapse list
|
|
|
{
|
|
|
ausgeklappt = 0;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::scrollZuEintrag(int i) // scroll list
|
|
|
+void SelectionBox::scrollToEntry(int i) // scroll list
|
|
|
{
|
|
|
- if (hatStyle(Style::VScroll) && vertikalScrollBar && i < anzahl)
|
|
|
+ if (hasStyle(Style::VScroll) && vertikalScrollBar && i < anzahl)
|
|
|
{
|
|
|
int scrollPos = 0;
|
|
|
- if (hatStyle(Style::MultiStyled))
|
|
|
+ if (hasStyle(Style::MultiStyled))
|
|
|
{
|
|
|
for (int j = 0; j < i; ++j)
|
|
|
scrollPos += members->z(j) ? members->z(j)->getHeight() : 0;
|
|
|
}
|
|
|
else
|
|
|
- scrollPos += i * eintragHeight;
|
|
|
+ scrollPos += i * entryHeight;
|
|
|
vertikalScrollBar->scroll(scrollPos);
|
|
|
rend = 1;
|
|
|
}
|
|
|
@@ -781,14 +781,14 @@ void SelectionBox::setMaxAuskappHeight(
|
|
|
ausklapMaxHeight = maxHeight;
|
|
|
}
|
|
|
|
|
|
-void SelectionBox::setEintragHeight(int height) // sets the height of the entries
|
|
|
+void SelectionBox::setEntryHeight(int height) // sets the height of the entries
|
|
|
{
|
|
|
- eintragHeight = height;
|
|
|
+ entryHeight = height;
|
|
|
}
|
|
|
|
|
|
void SelectionBox::addMsStyle(int i, __int64 abStyle) // add multistyle style
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
|
msStyle->set(msStyle->get(i) | abStyle, i);
|
|
|
rend = 1;
|
|
|
@@ -797,7 +797,7 @@ void SelectionBox::addMsStyle(int i, __int64 abStyle) // add multistyle style
|
|
|
void SelectionBox::setMsStyle(
|
|
|
int i, __int64 abStyle, bool add) // set multistyle style
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
|
if (add)
|
|
|
msStyle->set(msStyle->get(i) | abStyle, i);
|
|
|
@@ -808,7 +808,7 @@ void SelectionBox::setMsStyle(
|
|
|
|
|
|
void SelectionBox::setMsStyle(int i, __int64 abStyle)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
|
msStyle->set(abStyle, i);
|
|
|
rend = 1;
|
|
|
@@ -817,7 +817,7 @@ void SelectionBox::setMsStyle(int i, __int64 abStyle)
|
|
|
void SelectionBox::removeMsStyle(
|
|
|
int i, __int64 abStyle) // remove multistyle style
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || i >= anzahl) return;
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || i >= anzahl) return;
|
|
|
if (!msStyle) msStyle = new Array<__int64>();
|
|
|
msStyle->set(msStyle->get(i) & ~abStyle, i);
|
|
|
rend = 1;
|
|
|
@@ -825,32 +825,32 @@ void SelectionBox::removeMsStyle(
|
|
|
|
|
|
bool SelectionBox::tick(double tickVal) // tick
|
|
|
{
|
|
|
- if (ausgeklappt && ausfahren && !ausfahren->zText()->istGleich("/\\"))
|
|
|
+ if (ausgeklappt && ausfahren && !ausfahren->zText()->isEqual("/\\"))
|
|
|
{
|
|
|
ausfahren->setText("/\\");
|
|
|
rend = 1;
|
|
|
}
|
|
|
- else if (!ausgeklappt && ausfahren && !ausfahren->zText()->istGleich("\\/"))
|
|
|
+ else if (!ausgeklappt && ausfahren && !ausfahren->zText()->isEqual("\\/"))
|
|
|
{
|
|
|
ausfahren->setText("\\/");
|
|
|
rend = 1;
|
|
|
}
|
|
|
- if (hatStyleNicht(Style::Sichtbar) || hatStyleNicht(Style::Erlaubt))
|
|
|
+ if (hasStyleNot(Style::Visible) || hasStyleNot(Style::Allowed))
|
|
|
ausgeklappt = 0;
|
|
|
rend |= ausfahren->tick(tickVal);
|
|
|
this->tickval += tickVal * 300;
|
|
|
int val = (int)this->tickval;
|
|
|
if (val < 1) return DrawableBackground::tick(tickVal);
|
|
|
this->tickval -= val;
|
|
|
- int maxHeight = rahmen ? rahmen->getRBreite() : 0;
|
|
|
- if (hatStyleNicht(Style::MultiStyled))
|
|
|
- maxHeight += anzahl * eintragHeight;
|
|
|
+ int maxHeight = border ? border->getRWidth() : 0;
|
|
|
+ if (hasStyleNot(Style::MultiStyled))
|
|
|
+ maxHeight += anzahl * entryHeight;
|
|
|
else
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
maxHeight += members->z(i) ? members->z(i)->getHeight() : 0;
|
|
|
if (maxHeight > ausklapMaxHeight)
|
|
|
{
|
|
|
- if (hatStyle(Style::VScroll) && vertikalScrollBar)
|
|
|
+ if (hasStyle(Style::VScroll) && vertikalScrollBar)
|
|
|
{
|
|
|
scrollAnzeigen = 1;
|
|
|
vertikalScrollBar->update(maxHeight, ausklapMaxHeight);
|
|
|
@@ -879,7 +879,7 @@ bool SelectionBox::tick(double tickVal) // tick
|
|
|
}
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
|
- if (i != auswahl)
|
|
|
+ if (i != selection)
|
|
|
rend |= members->z(i)->tick(tickVal);
|
|
|
else
|
|
|
members->z(i)->tick(tickVal);
|
|
|
@@ -889,39 +889,39 @@ bool SelectionBox::tick(double tickVal) // tick
|
|
|
|
|
|
void SelectionBox::doKeyboardEvent(KeyboardEvent& te) // Keyboard
|
|
|
{
|
|
|
- if (te.verarbeitet || hatStyleNicht(Style::Fokus)
|
|
|
- || hatStyleNicht(Style::Erlaubt))
|
|
|
+ if (te.processed || hasStyleNot(Style::Focus)
|
|
|
+ || hasStyleNot(Style::Allowed))
|
|
|
return;
|
|
|
if (te.id == TE_Release)
|
|
|
{
|
|
|
switch (te.virtualKey)
|
|
|
{
|
|
|
case T_Oben:
|
|
|
- if (auswahl > 0)
|
|
|
- --auswahl;
|
|
|
+ if (selection > 0)
|
|
|
+ --selection;
|
|
|
else
|
|
|
- auswahl = anzahl - 1;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
- scrollZuEintrag(auswahl);
|
|
|
+ selection = anzahl - 1;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
+ scrollToEntry(selection);
|
|
|
rend = 1;
|
|
|
break;
|
|
|
case T_Unten:
|
|
|
- if (auswahl < anzahl - 1)
|
|
|
- ++auswahl;
|
|
|
+ if (selection < anzahl - 1)
|
|
|
+ ++selection;
|
|
|
else
|
|
|
- auswahl = 0;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
- scrollZuEintrag(auswahl);
|
|
|
+ selection = 0;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
+ scrollToEntry(selection);
|
|
|
rend = 1;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- if (te.verarbeitet && nTak) te.verarbeitet = nTak(ntakParam, this, te);
|
|
|
+ if (te.processed && nTak) te.processed = nTak(ntakParam, this, te);
|
|
|
}
|
|
|
|
|
|
void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
{
|
|
|
- if (hatStyle(Style::Sichtbar))
|
|
|
+ if (hasStyle(Style::Visible))
|
|
|
{
|
|
|
lockDrawable();
|
|
|
int br = gr.x;
|
|
|
@@ -934,11 +934,11 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
return;
|
|
|
}
|
|
|
int rbr = 0;
|
|
|
- if (hatStyle(Style::Border) && rahmen) // Draw border
|
|
|
+ if (hasStyle(Style::Border) && border) // Draw border
|
|
|
{
|
|
|
- rahmen->setSize(br, hi);
|
|
|
- rahmen->render(zRObj);
|
|
|
- rbr = rahmen->getRBreite();
|
|
|
+ border->setSize(br, hi);
|
|
|
+ border->render(zRObj);
|
|
|
+ rbr = border->getRWidth();
|
|
|
}
|
|
|
if ((ausklappHeight
|
|
|
&& !zRObj.setDrawOptionsErzwingen(
|
|
|
@@ -950,172 +950,172 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
unlockDrawable();
|
|
|
return;
|
|
|
}
|
|
|
- if (hatStyle(Style::Hintergrund))
|
|
|
+ if (hasStyle(Style::Background))
|
|
|
{
|
|
|
- if (hatStyle(Style::HAlpha))
|
|
|
- zRObj.alphaRegion(0, 0, br, hi, hintergrundFarbe);
|
|
|
+ if (hasStyle(Style::HAlpha))
|
|
|
+ zRObj.alphaRegion(0, 0, br, hi, backgroundColor);
|
|
|
else
|
|
|
- zRObj.fillRegion(0, 0, br, hi, hintergrundFarbe);
|
|
|
- if (hatStyle(Style::HImage) && hintergrundImage)
|
|
|
+ zRObj.fillRegion(0, 0, br, hi, backgroundColor);
|
|
|
+ if (hasStyle(Style::HImage) && backgroundImage)
|
|
|
{
|
|
|
- if (hatStyle(Style::HAlpha))
|
|
|
- zRObj.alphaImage(0, 0, br, hi, *hintergrundImage);
|
|
|
+ if (hasStyle(Style::HAlpha))
|
|
|
+ zRObj.alphaImage(0, 0, br, hi, *backgroundImage);
|
|
|
else
|
|
|
- zRObj.drawImage(0, 0, br, hi, *hintergrundImage);
|
|
|
+ zRObj.drawImage(0, 0, br, hi, *backgroundImage);
|
|
|
}
|
|
|
}
|
|
|
- if (hatStyle(Style::Buffered) && hintergrundFeld)
|
|
|
+ if (hasStyle(Style::Buffered) && backgroundFeld)
|
|
|
{
|
|
|
- hintergrundFeld->setSize(br - rbr * 2, hi - rbr * 2);
|
|
|
- hintergrundFeld->render(zRObj);
|
|
|
+ backgroundFeld->setSize(br - rbr * 2, hi - rbr * 2);
|
|
|
+ backgroundFeld->render(zRObj);
|
|
|
}
|
|
|
if (ausfahren) // Draw expand button
|
|
|
{
|
|
|
ausfahren->setSize(gr.y - rbr * 2, gr.y - rbr * 2);
|
|
|
- ausfahren->setPosition(gr.x - rbr - ausfahren->getBreite(), rbr);
|
|
|
+ ausfahren->setPosition(gr.x - rbr - ausfahren->getWidth(), rbr);
|
|
|
ausfahren->render(zRObj);
|
|
|
}
|
|
|
if (members) // Draw selected text field
|
|
|
{
|
|
|
- if (auswahl < 0)
|
|
|
+ if (selection < 0)
|
|
|
{
|
|
|
- auswahl = 0;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
+ selection = 0;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
}
|
|
|
- if (auswahl >= anzahl)
|
|
|
+ if (selection >= anzahl)
|
|
|
{
|
|
|
- auswahl = anzahl - 1;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
+ selection = anzahl - 1;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
}
|
|
|
- TextField* tf = auswahl >= 0 ? members->z(auswahl) : 0;
|
|
|
+ TextField* tf = selection >= 0 ? members->z(selection) : 0;
|
|
|
if (tf)
|
|
|
{
|
|
|
AlphaField* tmpBuffer = 0;
|
|
|
bool tmpB = 0;
|
|
|
- int tmpHFarbe = 0;
|
|
|
+ int tmpHColor = 0;
|
|
|
bool tmpH = 0;
|
|
|
Image* tmpHImage = 0;
|
|
|
bool tmpHB = 0;
|
|
|
bool tmpHAlpha = 0;
|
|
|
Border* tmpBorder = 0;
|
|
|
bool tmpR = 0;
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || !msStyle)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || !msStyle)
|
|
|
{
|
|
|
- if (hatStyle(Style::AuswahlBuffer))
|
|
|
+ if (hasStyle(Style::SelectionBuffer))
|
|
|
{
|
|
|
tmpBuffer = tf->getAlphaField();
|
|
|
tf->setAlphaFieldZ(
|
|
|
- dynamic_cast<AlphaField*>(auswAf->getThis()));
|
|
|
- tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
+ dynamic_cast<AlphaField*>(selAf->getThis()));
|
|
|
+ tmpB = tf->hasStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
- hatStyle(Style::AuswahlBuffer));
|
|
|
+ hasStyle(Style::SelectionBuffer));
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHintergrund))
|
|
|
+ if (hasStyle(Style::SelectionBackground))
|
|
|
{
|
|
|
- tmpH = tf->hatStyle(TextField::Style::Hintergrund);
|
|
|
- tmpHFarbe = tf->getHintergrundFarbe();
|
|
|
- tf->setHintergrundFarbe(auswBgF);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund,
|
|
|
- hatStyle(Style::Hintergrund));
|
|
|
- if (hatStyle(Style::AuswahlHImage))
|
|
|
+ tmpH = tf->hasStyle(TextField::Style::Background);
|
|
|
+ tmpHColor = tf->getBackgroundColor();
|
|
|
+ tf->setBackgroundColor(selBgF);
|
|
|
+ tf->setStyle(TextField::Style::Background,
|
|
|
+ hasStyle(Style::Background));
|
|
|
+ if (hasStyle(Style::SelectionHImage))
|
|
|
{
|
|
|
- tmpHImage = tf->getHintergrundImage();
|
|
|
- tf->setHintergrundImageZ(
|
|
|
- dynamic_cast<Image*>(auswBgB->getThis()));
|
|
|
- tmpHB = tf->hatStyle(TextField::Style::HImage);
|
|
|
+ tmpHImage = tf->getBackgroundImage();
|
|
|
+ tf->setBackgroundImageZ(
|
|
|
+ dynamic_cast<Image*>(selBgB->getThis()));
|
|
|
+ tmpHB = tf->hasStyle(TextField::Style::HImage);
|
|
|
tf->setStyle(
|
|
|
- TextField::Style::HImage, hatStyle(Style::HImage));
|
|
|
+ TextField::Style::HImage, hasStyle(Style::HImage));
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHAlpha))
|
|
|
+ if (hasStyle(Style::SelectionHAlpha))
|
|
|
{
|
|
|
- tmpHAlpha = tf->hatStyle(TextField::Style::HAlpha);
|
|
|
+ tmpHAlpha = tf->hasStyle(TextField::Style::HAlpha);
|
|
|
tf->setStyle(TextField::Style::HAlpha,
|
|
|
- hatStyle(Style::AuswahlHAlpha));
|
|
|
+ hasStyle(Style::SelectionHAlpha));
|
|
|
}
|
|
|
}
|
|
|
- if (hatStyle(Style::SelectionBorder))
|
|
|
+ if (hasStyle(Style::SelectionBorder))
|
|
|
{
|
|
|
tmpBorder = tf->getBorder();
|
|
|
tf->setBorderZ(
|
|
|
dynamic_cast<Border*>(selBorder->getThis()));
|
|
|
- tmpR = tf->hatStyle(TextField::Style::Border);
|
|
|
+ tmpR = tf->hasStyle(TextField::Style::Border);
|
|
|
tf->setStyle(TextField::Style::Border,
|
|
|
- hatStyle(Style::SelectionBorder));
|
|
|
+ hasStyle(Style::SelectionBorder));
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlBuffer) && msAuswAf)
|
|
|
+ if (hasMsStyle(selection, Style::SelectionBuffer) && msSelAf)
|
|
|
{
|
|
|
tmpBuffer = tf->getAlphaField();
|
|
|
- tf->setAlphaFieldZ(msAuswAf->get(auswahl));
|
|
|
- tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
+ tf->setAlphaFieldZ(msSelAf->get(selection));
|
|
|
+ tmpB = tf->hasStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
- hatMsStyle(auswahl, Style::AuswahlBuffer));
|
|
|
+ hasMsStyle(selection, Style::SelectionBuffer));
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlHintergrund))
|
|
|
+ if (hasMsStyle(selection, Style::SelectionBackground))
|
|
|
{
|
|
|
- tmpH = tf->hatStyle(Style::Hintergrund);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund,
|
|
|
- hatMsStyle(auswahl, Style::AuswahlHintergrund));
|
|
|
- if (msAuswBgF && msAuswBgF->hat(auswahl))
|
|
|
+ tmpH = tf->hasStyle(Style::Background);
|
|
|
+ tf->setStyle(TextField::Style::Background,
|
|
|
+ hasMsStyle(selection, Style::SelectionBackground));
|
|
|
+ if (msSelBgF && msSelBgF->has(selection))
|
|
|
{
|
|
|
- tmpHFarbe = tf->getHintergrundFarbe();
|
|
|
- tf->setHintergrundFarbe(msAuswBgF->get(auswahl));
|
|
|
+ tmpHColor = tf->getBackgroundColor();
|
|
|
+ tf->setBackgroundColor(msSelBgF->get(selection));
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlHImage)
|
|
|
- && msAuswBgB)
|
|
|
+ if (hasMsStyle(selection, Style::SelectionHImage)
|
|
|
+ && msSelBgB)
|
|
|
{
|
|
|
- tmpHImage = tf->getHintergrundImage();
|
|
|
- tf->setHintergrundImageZ(msAuswBgB->get(auswahl));
|
|
|
- tmpHB = tf->hatStyle(TextField::Style::HImage);
|
|
|
+ tmpHImage = tf->getBackgroundImage();
|
|
|
+ tf->setBackgroundImageZ(msSelBgB->get(selection));
|
|
|
+ tmpHB = tf->hasStyle(TextField::Style::HImage);
|
|
|
tf->setStyle(TextField::Style::HImage,
|
|
|
- hatMsStyle(auswahl, Style::HImage));
|
|
|
+ hasMsStyle(selection, Style::HImage));
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlHAlpha))
|
|
|
+ if (hasMsStyle(selection, Style::SelectionHAlpha))
|
|
|
{
|
|
|
- tmpHAlpha = tf->hatStyle(TextField::Style::HAlpha);
|
|
|
+ tmpHAlpha = tf->hasStyle(TextField::Style::HAlpha);
|
|
|
tf->setStyle(TextField::Style::HAlpha,
|
|
|
- hatMsStyle(auswahl, Style::AuswahlHAlpha));
|
|
|
+ hasMsStyle(selection, Style::SelectionHAlpha));
|
|
|
}
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::SelectionBorder)
|
|
|
+ if (hasMsStyle(selection, Style::SelectionBorder)
|
|
|
&& msSelBorder)
|
|
|
{
|
|
|
tmpBorder = tf->getBorder();
|
|
|
- tf->setBorderZ(msSelBorder->get(auswahl));
|
|
|
- tmpR = tf->hatStyle(TextField::Style::Border);
|
|
|
+ tf->setBorderZ(msSelBorder->get(selection));
|
|
|
+ tmpR = tf->hasStyle(TextField::Style::Border);
|
|
|
tf->setStyle(TextField::Style::Border,
|
|
|
- hatMsStyle(auswahl, Style::SelectionBorder));
|
|
|
+ hasMsStyle(selection, Style::SelectionBorder));
|
|
|
}
|
|
|
}
|
|
|
int tmpHi = tf->getHeight();
|
|
|
tf->setPosition(0, 0);
|
|
|
tf->setSize(
|
|
|
- gr.x - rbr * 2 - (ausfahren ? ausfahren->getBreite() : 0),
|
|
|
+ gr.x - rbr * 2 - (ausfahren ? ausfahren->getWidth() : 0),
|
|
|
gr.y - rbr * 2);
|
|
|
tf->render(zRObj);
|
|
|
- tf->setSize(tf->getBreite(), tmpHi);
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || !msStyle)
|
|
|
+ tf->setSize(tf->getWidth(), tmpHi);
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || !msStyle)
|
|
|
{
|
|
|
- if (hatStyle(Style::AuswahlBuffer))
|
|
|
+ if (hasStyle(Style::SelectionBuffer))
|
|
|
{
|
|
|
tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHintergrund))
|
|
|
+ if (hasStyle(Style::SelectionBackground))
|
|
|
{
|
|
|
- tf->setHintergrundFarbe(tmpHFarbe);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund, tmpH);
|
|
|
- if (hatStyle(Style::AuswahlHImage))
|
|
|
+ tf->setBackgroundColor(tmpHColor);
|
|
|
+ tf->setStyle(TextField::Style::Background, tmpH);
|
|
|
+ if (hasStyle(Style::SelectionHImage))
|
|
|
{
|
|
|
- tf->setHintergrundImageZ(tmpHImage);
|
|
|
+ tf->setBackgroundImageZ(tmpHImage);
|
|
|
tf->setStyle(TextField::Style::HImage, tmpHB);
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHAlpha))
|
|
|
+ if (hasStyle(Style::SelectionHAlpha))
|
|
|
tf->setStyle(TextField::Style::HAlpha, tmpHAlpha);
|
|
|
}
|
|
|
- if (hatStyle(Style::SelectionBorder))
|
|
|
+ if (hasStyle(Style::SelectionBorder))
|
|
|
{
|
|
|
tf->setBorderZ(tmpBorder);
|
|
|
tf->setStyle(TextField::Style::Border, tmpR);
|
|
|
@@ -1123,26 +1123,26 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlBuffer) && msAuswAf)
|
|
|
+ if (hasMsStyle(selection, Style::SelectionBuffer) && msSelAf)
|
|
|
{
|
|
|
tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlHintergrund))
|
|
|
+ if (hasMsStyle(selection, Style::SelectionBackground))
|
|
|
{
|
|
|
- tf->setStyle(TextField::Style::Hintergrund, tmpH);
|
|
|
- if (msAuswBgF && msAuswBgF->hat(auswahl))
|
|
|
- tf->setHintergrundFarbe(tmpHFarbe);
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlHImage)
|
|
|
- && msAuswBgB)
|
|
|
+ tf->setStyle(TextField::Style::Background, tmpH);
|
|
|
+ if (msSelBgF && msSelBgF->has(selection))
|
|
|
+ tf->setBackgroundColor(tmpHColor);
|
|
|
+ if (hasMsStyle(selection, Style::SelectionHImage)
|
|
|
+ && msSelBgB)
|
|
|
{
|
|
|
- tf->setHintergrundImageZ(tmpHImage);
|
|
|
+ tf->setBackgroundImageZ(tmpHImage);
|
|
|
tf->setStyle(TextField::Style::HImage, tmpHB);
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::AuswahlHAlpha))
|
|
|
+ if (hasMsStyle(selection, Style::SelectionHAlpha))
|
|
|
tf->setStyle(TextField::Style::HAlpha, tmpHAlpha);
|
|
|
}
|
|
|
- if (hatMsStyle(auswahl, Style::SelectionBorder)
|
|
|
+ if (hasMsStyle(selection, Style::SelectionBorder)
|
|
|
&& msSelBorder)
|
|
|
{
|
|
|
tf->setBorderZ(tmpBorder);
|
|
|
@@ -1152,11 +1152,11 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
}
|
|
|
}
|
|
|
bool vsb
|
|
|
- = hatStyle(Style::VScroll) && vertikalScrollBar; // Draw scroll bar
|
|
|
- if (auswahl >= anzahl)
|
|
|
+ = hasStyle(Style::VScroll) && vertikalScrollBar; // Draw scroll bar
|
|
|
+ if (selection >= anzahl)
|
|
|
{
|
|
|
- auswahl = 0;
|
|
|
- if (eAk) eAk(eAkP, this, 0, auswahl);
|
|
|
+ selection = 0;
|
|
|
+ if (eAk) eAk(eAkP, this, 0, selection);
|
|
|
}
|
|
|
if (members)
|
|
|
{
|
|
|
@@ -1192,10 +1192,10 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
tf->setPosition(0, dy);
|
|
|
tf->setSize(br - rbr * 2, tf->getHeight());
|
|
|
maxHeight += tf->getHeight();
|
|
|
- bool selected = auswahl == i;
|
|
|
+ bool selected = selection == i;
|
|
|
AlphaField* tmpBuffer = 0;
|
|
|
bool tmpB = 0;
|
|
|
- int tmpHFarbe = 0;
|
|
|
+ int tmpHColor = 0;
|
|
|
bool tmpH = 0;
|
|
|
Image* tmpHImage = 0;
|
|
|
bool tmpHB = 0;
|
|
|
@@ -1204,214 +1204,214 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
bool tmpR = 0;
|
|
|
if (selected)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || !msStyle)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || !msStyle)
|
|
|
{
|
|
|
- if (hatStyle(Style::AuswahlBuffer))
|
|
|
+ if (hasStyle(Style::SelectionBuffer))
|
|
|
{
|
|
|
tmpBuffer = tf->getAlphaField();
|
|
|
tf->setAlphaFieldZ(
|
|
|
- dynamic_cast<AlphaField*>(auswAf->getThis()));
|
|
|
- tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
+ dynamic_cast<AlphaField*>(selAf->getThis()));
|
|
|
+ tmpB = tf->hasStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
- hatStyle(Style::AuswahlBuffer));
|
|
|
+ hasStyle(Style::SelectionBuffer));
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHintergrund))
|
|
|
+ if (hasStyle(Style::SelectionBackground))
|
|
|
{
|
|
|
- tmpH = tf->hatStyle(TextField::Style::Hintergrund);
|
|
|
- tmpHFarbe = tf->getHintergrundFarbe();
|
|
|
- tf->setHintergrundFarbe(auswBgF);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund,
|
|
|
- hatStyle(Style::Hintergrund));
|
|
|
- if (hatStyle(Style::AuswahlHImage))
|
|
|
+ tmpH = tf->hasStyle(TextField::Style::Background);
|
|
|
+ tmpHColor = tf->getBackgroundColor();
|
|
|
+ tf->setBackgroundColor(selBgF);
|
|
|
+ tf->setStyle(TextField::Style::Background,
|
|
|
+ hasStyle(Style::Background));
|
|
|
+ if (hasStyle(Style::SelectionHImage))
|
|
|
{
|
|
|
- tmpHImage = tf->getHintergrundImage();
|
|
|
- tf->setHintergrundImageZ(
|
|
|
- dynamic_cast<Image*>(auswBgB->getThis()));
|
|
|
- tmpHB = tf->hatStyle(TextField::Style::HImage);
|
|
|
+ tmpHImage = tf->getBackgroundImage();
|
|
|
+ tf->setBackgroundImageZ(
|
|
|
+ dynamic_cast<Image*>(selBgB->getThis()));
|
|
|
+ tmpHB = tf->hasStyle(TextField::Style::HImage);
|
|
|
tf->setStyle(TextField::Style::HImage,
|
|
|
- hatStyle(Style::HImage));
|
|
|
+ hasStyle(Style::HImage));
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHAlpha))
|
|
|
+ if (hasStyle(Style::SelectionHAlpha))
|
|
|
{
|
|
|
tmpHAlpha
|
|
|
- = tf->hatStyle(TextField::Style::HAlpha);
|
|
|
+ = tf->hasStyle(TextField::Style::HAlpha);
|
|
|
tf->setStyle(TextField::Style::HAlpha,
|
|
|
- hatStyle(Style::AuswahlHAlpha));
|
|
|
+ hasStyle(Style::SelectionHAlpha));
|
|
|
}
|
|
|
}
|
|
|
- if (hatStyle(Style::SelectionBorder))
|
|
|
+ if (hasStyle(Style::SelectionBorder))
|
|
|
{
|
|
|
tmpBorder = tf->getBorder();
|
|
|
tf->setBorderZ(
|
|
|
dynamic_cast<Border*>(selBorder->getThis()));
|
|
|
- tmpR = tf->hatStyle(TextField::Style::Border);
|
|
|
+ tmpR = tf->hasStyle(TextField::Style::Border);
|
|
|
tf->setStyle(TextField::Style::Border,
|
|
|
- hatStyle(Style::SelectionBorder));
|
|
|
+ hasStyle(Style::SelectionBorder));
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (hatMsStyle(i, Style::AuswahlBuffer) && msAuswAf)
|
|
|
+ if (hasMsStyle(i, Style::SelectionBuffer) && msSelAf)
|
|
|
{
|
|
|
tmpBuffer = tf->getAlphaField();
|
|
|
- tf->setAlphaFieldZ(msAuswAf->get(i));
|
|
|
- tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
+ tf->setAlphaFieldZ(msSelAf->get(i));
|
|
|
+ tmpB = tf->hasStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
- hatMsStyle(i, Style::AuswahlBuffer));
|
|
|
+ hasMsStyle(i, Style::SelectionBuffer));
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::AuswahlHintergrund))
|
|
|
+ if (hasMsStyle(i, Style::SelectionBackground))
|
|
|
{
|
|
|
- tmpH = tf->hatStyle(Style::Hintergrund);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund,
|
|
|
- hatMsStyle(i, Style::AuswahlHintergrund));
|
|
|
- if (msAuswBgF && msAuswBgF->hat(i))
|
|
|
+ tmpH = tf->hasStyle(Style::Background);
|
|
|
+ tf->setStyle(TextField::Style::Background,
|
|
|
+ hasMsStyle(i, Style::SelectionBackground));
|
|
|
+ if (msSelBgF && msSelBgF->has(i))
|
|
|
{
|
|
|
- tmpHFarbe = tf->getHintergrundFarbe();
|
|
|
- tf->setHintergrundFarbe(msAuswBgF->get(i));
|
|
|
+ tmpHColor = tf->getBackgroundColor();
|
|
|
+ tf->setBackgroundColor(msSelBgF->get(i));
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::AuswahlHImage) && msAuswBgB)
|
|
|
+ if (hasMsStyle(i, Style::SelectionHImage) && msSelBgB)
|
|
|
{
|
|
|
- tmpHImage = tf->getHintergrundImage();
|
|
|
- tf->setHintergrundImageZ(msAuswBgB->get(i));
|
|
|
- tmpHB = tf->hatStyle(TextField::Style::HImage);
|
|
|
+ tmpHImage = tf->getBackgroundImage();
|
|
|
+ tf->setBackgroundImageZ(msSelBgB->get(i));
|
|
|
+ tmpHB = tf->hasStyle(TextField::Style::HImage);
|
|
|
tf->setStyle(TextField::Style::HImage,
|
|
|
- hatMsStyle(i, Style::HImage));
|
|
|
+ hasMsStyle(i, Style::HImage));
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::AuswahlHAlpha))
|
|
|
+ if (hasMsStyle(i, Style::SelectionHAlpha))
|
|
|
{
|
|
|
tmpHAlpha
|
|
|
- = tf->hatStyle(TextField::Style::HAlpha);
|
|
|
+ = tf->hasStyle(TextField::Style::HAlpha);
|
|
|
tf->setStyle(TextField::Style::HAlpha,
|
|
|
- hatMsStyle(i, Style::AuswahlHAlpha));
|
|
|
+ hasMsStyle(i, Style::SelectionHAlpha));
|
|
|
}
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::SelectionBorder) && msSelBorder)
|
|
|
+ if (hasMsStyle(i, Style::SelectionBorder) && msSelBorder)
|
|
|
{
|
|
|
tmpBorder = tf->getBorder();
|
|
|
tf->setBorderZ(msSelBorder->get(i));
|
|
|
- tmpR = tf->hatStyle(TextField::Style::Border);
|
|
|
+ tmpR = tf->hasStyle(TextField::Style::Border);
|
|
|
tf->setStyle(TextField::Style::Border,
|
|
|
- hatMsStyle(i, Style::SelectionBorder));
|
|
|
+ hasMsStyle(i, Style::SelectionBorder));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- else if (mausEintrag == i)
|
|
|
+ else if (mouseEntry == i)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || !msStyle)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || !msStyle)
|
|
|
{
|
|
|
- if (hatStyle(Style::MausBuffer))
|
|
|
+ if (hasStyle(Style::MouseBuffer))
|
|
|
{
|
|
|
tmpBuffer = tf->getAlphaField();
|
|
|
tf->setAlphaFieldZ(
|
|
|
- dynamic_cast<AlphaField*>(mausAf->getThis()));
|
|
|
- tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
+ dynamic_cast<AlphaField*>(mouseAf->getThis()));
|
|
|
+ tmpB = tf->hasStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
- hatStyle(Style::MausBuffer));
|
|
|
+ hasStyle(Style::MouseBuffer));
|
|
|
}
|
|
|
- if (hatStyle(Style::MausHintergrund))
|
|
|
+ if (hasStyle(Style::MouseBackground))
|
|
|
{
|
|
|
- tmpH = tf->hatStyle(TextField::Style::Hintergrund);
|
|
|
- tmpHFarbe = tf->getHintergrundFarbe();
|
|
|
- tf->setHintergrundFarbe(mausBgF);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund,
|
|
|
- hatStyle(Style::Hintergrund));
|
|
|
- if (hatStyle(Style::MausHImage))
|
|
|
+ tmpH = tf->hasStyle(TextField::Style::Background);
|
|
|
+ tmpHColor = tf->getBackgroundColor();
|
|
|
+ tf->setBackgroundColor(mouseBgF);
|
|
|
+ tf->setStyle(TextField::Style::Background,
|
|
|
+ hasStyle(Style::Background));
|
|
|
+ if (hasStyle(Style::MouseHImage))
|
|
|
{
|
|
|
- tmpHImage = tf->getHintergrundImage();
|
|
|
- tf->setHintergrundImageZ(
|
|
|
- dynamic_cast<Image*>(mausBgB->getThis()));
|
|
|
- tmpHB = tf->hatStyle(TextField::Style::HImage);
|
|
|
+ tmpHImage = tf->getBackgroundImage();
|
|
|
+ tf->setBackgroundImageZ(
|
|
|
+ dynamic_cast<Image*>(mouseBgB->getThis()));
|
|
|
+ tmpHB = tf->hasStyle(TextField::Style::HImage);
|
|
|
tf->setStyle(TextField::Style::HImage,
|
|
|
- hatStyle(Style::HImage));
|
|
|
+ hasStyle(Style::HImage));
|
|
|
}
|
|
|
- if (hatStyle(Style::MausHAlpha))
|
|
|
+ if (hasStyle(Style::MouseHAlpha))
|
|
|
{
|
|
|
tmpHAlpha
|
|
|
- = tf->hatStyle(TextField::Style::HAlpha);
|
|
|
+ = tf->hasStyle(TextField::Style::HAlpha);
|
|
|
tf->setStyle(TextField::Style::HAlpha,
|
|
|
- hatStyle(Style::MausHAlpha));
|
|
|
+ hasStyle(Style::MouseHAlpha));
|
|
|
}
|
|
|
}
|
|
|
- if (hatStyle(Style::MausRahmen))
|
|
|
+ if (hasStyle(Style::MouseBorder))
|
|
|
{
|
|
|
tmpBorder = tf->getBorder();
|
|
|
tf->setBorderZ(
|
|
|
dynamic_cast<Border*>(mouseBorder->getThis()));
|
|
|
- tmpR = tf->hatStyle(TextField::Style::Border);
|
|
|
+ tmpR = tf->hasStyle(TextField::Style::Border);
|
|
|
tf->setStyle(TextField::Style::Border,
|
|
|
- hatStyle(Style::MausRahmen));
|
|
|
+ hasStyle(Style::MouseBorder));
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (hatMsStyle(i, Style::MausBuffer) && msAuswAf)
|
|
|
+ if (hasMsStyle(i, Style::MouseBuffer) && msSelAf)
|
|
|
{
|
|
|
tmpBuffer = tf->getAlphaField();
|
|
|
- tf->setAlphaFieldZ(msMausAf->get(i));
|
|
|
- tmpB = tf->hatStyle(TextField::Style::Buffered);
|
|
|
+ tf->setAlphaFieldZ(msMouseAf->get(i));
|
|
|
+ tmpB = tf->hasStyle(TextField::Style::Buffered);
|
|
|
tf->setStyle(TextField::Style::Buffered,
|
|
|
- hatMsStyle(i, Style::MausBuffer));
|
|
|
+ hasMsStyle(i, Style::MouseBuffer));
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausHintergrund))
|
|
|
+ if (hasMsStyle(i, Style::MouseBackground))
|
|
|
{
|
|
|
- tmpH = tf->hatStyle(Style::Hintergrund);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund,
|
|
|
- hatMsStyle(i, Style::MausHintergrund));
|
|
|
- if (msMausBgF && msMausBgF->hat(i))
|
|
|
+ tmpH = tf->hasStyle(Style::Background);
|
|
|
+ tf->setStyle(TextField::Style::Background,
|
|
|
+ hasMsStyle(i, Style::MouseBackground));
|
|
|
+ if (msMouseBgF && msMouseBgF->has(i))
|
|
|
{
|
|
|
- tmpHFarbe = tf->getHintergrundFarbe();
|
|
|
- tf->setHintergrundFarbe(msMausBgF->get(i));
|
|
|
+ tmpHColor = tf->getBackgroundColor();
|
|
|
+ tf->setBackgroundColor(msMouseBgF->get(i));
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausHImage) && msMausBgB)
|
|
|
+ if (hasMsStyle(i, Style::MouseHImage) && msMouseBgB)
|
|
|
{
|
|
|
- tmpHImage = tf->getHintergrundImage();
|
|
|
- tf->setHintergrundImageZ(msMausBgB->get(i));
|
|
|
- tmpHB = tf->hatStyle(TextField::Style::HImage);
|
|
|
+ tmpHImage = tf->getBackgroundImage();
|
|
|
+ tf->setBackgroundImageZ(msMouseBgB->get(i));
|
|
|
+ tmpHB = tf->hasStyle(TextField::Style::HImage);
|
|
|
tf->setStyle(TextField::Style::HImage,
|
|
|
- hatMsStyle(i, Style::HImage));
|
|
|
+ hasMsStyle(i, Style::HImage));
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausHAlpha))
|
|
|
+ if (hasMsStyle(i, Style::MouseHAlpha))
|
|
|
{
|
|
|
tmpHAlpha
|
|
|
- = tf->hatStyle(TextField::Style::HAlpha);
|
|
|
+ = tf->hasStyle(TextField::Style::HAlpha);
|
|
|
tf->setStyle(TextField::Style::HAlpha,
|
|
|
- hatMsStyle(i, Style::MausHAlpha));
|
|
|
+ hasMsStyle(i, Style::MouseHAlpha));
|
|
|
}
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausRahmen) && msMouseBorder)
|
|
|
+ if (hasMsStyle(i, Style::MouseBorder) && msMouseBorder)
|
|
|
{
|
|
|
tmpBorder = tf->getBorder();
|
|
|
tf->setBorderZ(msMouseBorder->get(i));
|
|
|
- tmpR = tf->hatStyle(TextField::Style::Border);
|
|
|
+ tmpR = tf->hasStyle(TextField::Style::Border);
|
|
|
tf->setStyle(TextField::Style::Border,
|
|
|
- hatMsStyle(i, Style::MausRahmen));
|
|
|
+ hasMsStyle(i, Style::MouseBorder));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
tf->render(zRObj);
|
|
|
if (selected)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || !msStyle)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || !msStyle)
|
|
|
{
|
|
|
- if (hatStyle(Style::AuswahlBuffer))
|
|
|
+ if (hasStyle(Style::SelectionBuffer))
|
|
|
{
|
|
|
tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHintergrund))
|
|
|
+ if (hasStyle(Style::SelectionBackground))
|
|
|
{
|
|
|
- tf->setHintergrundFarbe(tmpHFarbe);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund, tmpH);
|
|
|
- if (hatStyle(Style::AuswahlHImage))
|
|
|
+ tf->setBackgroundColor(tmpHColor);
|
|
|
+ tf->setStyle(TextField::Style::Background, tmpH);
|
|
|
+ if (hasStyle(Style::SelectionHImage))
|
|
|
{
|
|
|
- tf->setHintergrundImageZ(tmpHImage);
|
|
|
+ tf->setBackgroundImageZ(tmpHImage);
|
|
|
tf->setStyle(TextField::Style::HImage, tmpHB);
|
|
|
}
|
|
|
- if (hatStyle(Style::AuswahlHAlpha))
|
|
|
+ if (hasStyle(Style::SelectionHAlpha))
|
|
|
tf->setStyle(
|
|
|
TextField::Style::HAlpha, tmpHAlpha);
|
|
|
}
|
|
|
- if (hatStyle(Style::SelectionBorder))
|
|
|
+ if (hasStyle(Style::SelectionBorder))
|
|
|
{
|
|
|
tf->setBorderZ(tmpBorder);
|
|
|
tf->setStyle(TextField::Style::Border, tmpR);
|
|
|
@@ -1419,55 +1419,55 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (hatMsStyle(i, Style::AuswahlBuffer) && msAuswAf)
|
|
|
+ if (hasMsStyle(i, Style::SelectionBuffer) && msSelAf)
|
|
|
{
|
|
|
tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::AuswahlHintergrund))
|
|
|
+ if (hasMsStyle(i, Style::SelectionBackground))
|
|
|
{
|
|
|
- tf->setStyle(TextField::Style::Hintergrund, tmpH);
|
|
|
- if (msAuswBgF && msAuswBgF->hat(i))
|
|
|
- tf->setHintergrundFarbe(tmpHFarbe);
|
|
|
- if (hatMsStyle(i, Style::AuswahlHImage) && msAuswBgB)
|
|
|
+ tf->setStyle(TextField::Style::Background, tmpH);
|
|
|
+ if (msSelBgF && msSelBgF->has(i))
|
|
|
+ tf->setBackgroundColor(tmpHColor);
|
|
|
+ if (hasMsStyle(i, Style::SelectionHImage) && msSelBgB)
|
|
|
{
|
|
|
- tf->setHintergrundImageZ(tmpHImage);
|
|
|
+ tf->setBackgroundImageZ(tmpHImage);
|
|
|
tf->setStyle(TextField::Style::HImage, tmpHB);
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::AuswahlHAlpha))
|
|
|
+ if (hasMsStyle(i, Style::SelectionHAlpha))
|
|
|
tf->setStyle(
|
|
|
TextField::Style::HAlpha, tmpHAlpha);
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::SelectionBorder) && msSelBorder)
|
|
|
+ if (hasMsStyle(i, Style::SelectionBorder) && msSelBorder)
|
|
|
{
|
|
|
tf->setBorderZ(tmpBorder);
|
|
|
tf->setStyle(TextField::Style::Border, tmpR);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- else if (mausEintrag == i)
|
|
|
+ else if (mouseEntry == i)
|
|
|
{
|
|
|
- if (hatStyleNicht(Style::MultiStyled) || !msStyle)
|
|
|
+ if (hasStyleNot(Style::MultiStyled) || !msStyle)
|
|
|
{
|
|
|
- if (hatStyle(Style::MausBuffer))
|
|
|
+ if (hasStyle(Style::MouseBuffer))
|
|
|
{
|
|
|
tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
|
- if (hatStyle(Style::MausHintergrund))
|
|
|
+ if (hasStyle(Style::MouseBackground))
|
|
|
{
|
|
|
- tf->setHintergrundFarbe(tmpHFarbe);
|
|
|
- tf->setStyle(TextField::Style::Hintergrund, tmpH);
|
|
|
- if (hatStyle(Style::MausHImage))
|
|
|
+ tf->setBackgroundColor(tmpHColor);
|
|
|
+ tf->setStyle(TextField::Style::Background, tmpH);
|
|
|
+ if (hasStyle(Style::MouseHImage))
|
|
|
{
|
|
|
- tf->setHintergrundImageZ(tmpHImage);
|
|
|
+ tf->setBackgroundImageZ(tmpHImage);
|
|
|
tf->setStyle(TextField::Style::HImage, tmpHB);
|
|
|
}
|
|
|
- if (hatStyle(Style::MausHAlpha))
|
|
|
+ if (hasStyle(Style::MouseHAlpha))
|
|
|
tf->setStyle(
|
|
|
TextField::Style::HAlpha, tmpHAlpha);
|
|
|
}
|
|
|
- if (hatStyle(Style::MausRahmen))
|
|
|
+ if (hasStyle(Style::MouseBorder))
|
|
|
{
|
|
|
tf->setBorderZ(tmpBorder);
|
|
|
tf->setStyle(TextField::Style::Border, tmpR);
|
|
|
@@ -1475,26 +1475,26 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (hatMsStyle(i, Style::MausBuffer) && msAuswAf)
|
|
|
+ if (hasMsStyle(i, Style::MouseBuffer) && msSelAf)
|
|
|
{
|
|
|
tf->setAlphaFieldZ(tmpBuffer);
|
|
|
tf->setStyle(TextField::Style::Buffered, tmpB);
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausHintergrund))
|
|
|
+ if (hasMsStyle(i, Style::MouseBackground))
|
|
|
{
|
|
|
- tf->setStyle(TextField::Style::Hintergrund, tmpH);
|
|
|
- if (msAuswBgF && msAuswBgF->hat(i))
|
|
|
- tf->setHintergrundFarbe(tmpHFarbe);
|
|
|
- if (hatMsStyle(i, Style::MausHImage) && msAuswBgB)
|
|
|
+ tf->setStyle(TextField::Style::Background, tmpH);
|
|
|
+ if (msSelBgF && msSelBgF->has(i))
|
|
|
+ tf->setBackgroundColor(tmpHColor);
|
|
|
+ if (hasMsStyle(i, Style::MouseHImage) && msSelBgB)
|
|
|
{
|
|
|
- tf->setHintergrundImageZ(tmpHImage);
|
|
|
+ tf->setBackgroundImageZ(tmpHImage);
|
|
|
tf->setStyle(TextField::Style::HImage, tmpHB);
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausHAlpha))
|
|
|
+ if (hasMsStyle(i, Style::MouseHAlpha))
|
|
|
tf->setStyle(
|
|
|
TextField::Style::HAlpha, tmpHAlpha);
|
|
|
}
|
|
|
- if (hatMsStyle(i, Style::MausRahmen) && msSelBorder)
|
|
|
+ if (hasMsStyle(i, Style::MouseBorder) && msSelBorder)
|
|
|
{
|
|
|
tf->setBorderZ(tmpBorder);
|
|
|
tf->setStyle(TextField::Style::Border, tmpR);
|
|
|
@@ -1514,19 +1514,19 @@ void SelectionBox::render(Image& zRObj) // renders into zRObj
|
|
|
}
|
|
|
|
|
|
// constant
|
|
|
-int SelectionBox::getEintragPos(
|
|
|
+int SelectionBox::getEntryPos(
|
|
|
const char* txt) const // returns the entry position
|
|
|
{
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
- if (members->z(i) && members->z(i)->zText()->istGleich(txt)) return i;
|
|
|
+ if (members->z(i) && members->z(i)->zText()->isEqual(txt)) return i;
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragPos(Text* txt) const
|
|
|
+int SelectionBox::getEntryPos(Text* txt) const
|
|
|
{
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
|
- if (members->z(i) && members->z(i)->zText()->istGleich(txt->getText()))
|
|
|
+ if (members->z(i) && members->z(i)->zText()->isEqual(txt->getText()))
|
|
|
{
|
|
|
txt->release();
|
|
|
return i;
|
|
|
@@ -1536,33 +1536,33 @@ int SelectionBox::getEintragPos(Text* txt) const
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
-Text* SelectionBox::getEintragText(int i) const // returns the entry text
|
|
|
+Text* SelectionBox::getEntryText(int i) const // returns the entry text
|
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
|
return members->z(i) ? members->z(i)->getText() : 0;
|
|
|
}
|
|
|
|
|
|
-Text* SelectionBox::zEintragText(int i) const
|
|
|
+Text* SelectionBox::zEntryText(int i) const
|
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
|
return members->z(i) ? members->z(i)->zText() : 0;
|
|
|
}
|
|
|
|
|
|
-TextField* SelectionBox::getEintrag(int i) const // returns the entry
|
|
|
+TextField* SelectionBox::getEntry(int i) const // returns the entry
|
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
|
return members->get(i);
|
|
|
}
|
|
|
|
|
|
-TextField* SelectionBox::zEintrag(int i) const
|
|
|
+TextField* SelectionBox::zEntry(int i) const
|
|
|
{
|
|
|
if (i >= anzahl) return 0;
|
|
|
return members->z(i);
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getAuswahl() const // returns the position of the selected entry
|
|
|
+int SelectionBox::getSelection() const // returns the position of the selected entry
|
|
|
{
|
|
|
- return auswahl;
|
|
|
+ return selection;
|
|
|
}
|
|
|
|
|
|
int SelectionBox::getEntryCount() const // returns the number of entries
|
|
|
@@ -1570,61 +1570,61 @@ int SelectionBox::getEntryCount() const // returns the number of entries
|
|
|
return anzahl;
|
|
|
}
|
|
|
|
|
|
-bool SelectionBox::istAusgeklappt() const // checks if the list is expanded
|
|
|
+bool SelectionBox::isExpanded() const // checks if the list is expanded
|
|
|
{
|
|
|
return ausgeklappt;
|
|
|
}
|
|
|
|
|
|
int SelectionBox::getMaxHeight() const // returns the maximum list height
|
|
|
{
|
|
|
- if (!hatStyle(Style::MaxHeight)) return 0;
|
|
|
+ if (!hasStyle(Style::MaxHeight)) return 0;
|
|
|
return ausklapMaxHeight;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragHeight() const // returns the height of the entries
|
|
|
+int SelectionBox::getEntryHeight() const // returns the height of the entries
|
|
|
{
|
|
|
- return eintragHeight;
|
|
|
+ return entryHeight;
|
|
|
}
|
|
|
|
|
|
Button*
|
|
|
SelectionBox::getDropDownButton() const // returns the expand/collapse button
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
return ausfahren ? dynamic_cast<Button*>(ausfahren->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
Button* SelectionBox::zDropDownButton() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
return ausfahren;
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::getEntryBorder(int i) const // returns the entry border
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getBorder();
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::zEntryBorder(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->zBorder();
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragRahmenFarbe(
|
|
|
+int SelectionBox::getEntryBorderColor(
|
|
|
int i) const // returns the entry border color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getBorderColor();
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragRahmenBreite(
|
|
|
+int SelectionBox::getEntryBorderWidth(
|
|
|
int i) const // returns the entry border width
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getBorderWidth();
|
|
|
}
|
|
|
@@ -1632,133 +1632,133 @@ int SelectionBox::getEintragRahmenBreite(
|
|
|
AlphaField* SelectionBox::getEntryAlphaField(
|
|
|
int i) const // returns the entry AlphaField
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getAlphaField();
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::zEntryAlphaField(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->zAlphaField();
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragAlphaFeldFarbe(
|
|
|
+int SelectionBox::getEntryAlphaFieldColor(
|
|
|
int i) const // returns the entry AlphaField color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getAlphaFieldColor();
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragAlphaFeldStrength(
|
|
|
+int SelectionBox::getEntryAlphaFieldStrength(
|
|
|
int i) const // returns the entry AlphaField strength
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
return members->z(i)->getAlphaFieldStrength();
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getEintragHintergrundFarbe(
|
|
|
+int SelectionBox::getEntryBackgroundColor(
|
|
|
int i) const // returns the entry background color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->getHintergrundFarbe();
|
|
|
+ return members->z(i)->getBackgroundColor();
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::getEintragHintergrundImage(
|
|
|
+Image* SelectionBox::getEntryBackgroundImage(
|
|
|
int i) const // returns the entry background image
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->getHintergrundImage();
|
|
|
+ return members->z(i)->getBackgroundImage();
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::zEintragHintergrundImage(int i) const
|
|
|
+Image* SelectionBox::zEntryBackgroundImage(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!members->z(i)) return 0;
|
|
|
- return members->z(i)->zHintergrundImage();
|
|
|
+ return members->z(i)->zBackgroundImage();
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::getSelBorder() const // returns the selection border
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
return selBorder ? dynamic_cast<Border*>(selBorder->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::zSelBorder() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
return selBorder;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getAuswRahmenFarbe() const // returns the selection border color
|
|
|
+int SelectionBox::getSelBorderColor() const // returns the selection border color
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return selBorder ? selBorder->getFarbe() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selBorder ? selBorder->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getAuswRahmenBreite()
|
|
|
+int SelectionBox::getSelBorderWidth()
|
|
|
const // returns the selection border width
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return selBorder ? selBorder->getRBreite() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selBorder ? selBorder->getRWidth() : 0;
|
|
|
}
|
|
|
|
|
|
AlphaField*
|
|
|
SelectionBox::getSelAlphaField() const // returns the selection AlphaField
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswAf ? dynamic_cast<AlphaField*>(auswAf->getThis()) : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selAf ? dynamic_cast<AlphaField*>(selAf->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::zSelAlphaField() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswAf;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selAf;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getAuswAlphaFeldFarbe()
|
|
|
+int SelectionBox::getSelAlphaFieldColor()
|
|
|
const // returns the selection AlphaField color
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswAf ? auswAf->getFarbe() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selAf ? selAf->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getAuswAlphaFeldStrength()
|
|
|
+int SelectionBox::getSelAlphaFieldStrength()
|
|
|
const // returns the selection AlphaField strength
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswAf ? auswAf->getStrength() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selAf ? selAf->getStrength() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getAuswHintergrundFarbe()
|
|
|
+int SelectionBox::getSelBackgroundColor()
|
|
|
const // returns the selection background color
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswBgF;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selBgF;
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::getAuswHintergrundImage()
|
|
|
+Image* SelectionBox::getSelBackgroundImage()
|
|
|
const // returns the selection background image
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswBgB ? dynamic_cast<Image*>(auswBgB->getThis()) : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selBgB ? dynamic_cast<Image*>(selBgB->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::zAuswHintergrundImage() const
|
|
|
+Image* SelectionBox::zSelBackgroundImage() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return auswBgB;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return selBgB;
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::getMsSelBorder(
|
|
|
int i) const // returns the multistyle selection border
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msSelBorder) return 0;
|
|
|
return msSelBorder->z(i)
|
|
|
? dynamic_cast<Border*>(msSelBorder->z(i)->getThis())
|
|
|
@@ -1767,264 +1767,264 @@ Border* SelectionBox::getMsSelBorder(
|
|
|
|
|
|
Border* SelectionBox::zMsSelBorder(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msSelBorder) return 0;
|
|
|
return msSelBorder->z(i);
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsAuswRahmenFarbe(
|
|
|
+int SelectionBox::getMsSelBorderColor(
|
|
|
int i) const // returns the multistyle selection border color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msSelBorder) return 0;
|
|
|
- return msSelBorder->z(i) ? msSelBorder->z(i)->getFarbe() : 0;
|
|
|
+ return msSelBorder->z(i) ? msSelBorder->z(i)->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsAuswRahmenBreite(
|
|
|
+int SelectionBox::getMsSelBorderWidth(
|
|
|
int i) const // returns the multistyle selection border width
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msSelBorder) return 0;
|
|
|
- return msSelBorder->z(i) ? msSelBorder->z(i)->getRBreite() : 0;
|
|
|
+ return msSelBorder->z(i) ? msSelBorder->z(i)->getRWidth() : 0;
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::getMsSelAlphaField(
|
|
|
int i) const // returns the multistyle selection AlphaField
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswAf) return 0;
|
|
|
- return msAuswAf->z(i) ? dynamic_cast<AlphaField*>(msAuswAf->z(i)->getThis())
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelAf) return 0;
|
|
|
+ return msSelAf->z(i) ? dynamic_cast<AlphaField*>(msSelAf->z(i)->getThis())
|
|
|
: 0;
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::zMsSelAlphaField(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswAf) return 0;
|
|
|
- return msAuswAf->z(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelAf) return 0;
|
|
|
+ return msSelAf->z(i);
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsAuswAlphaFeldFarbe(
|
|
|
+int SelectionBox::getMsSelAlphaFieldColor(
|
|
|
int i) const // returns the multistyle selection AlphaField color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswAf) return 0;
|
|
|
- return msAuswAf->z(i) ? msAuswAf->z(i)->getFarbe() : 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelAf) return 0;
|
|
|
+ return msSelAf->z(i) ? msSelAf->z(i)->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsAuswAlphaFeldStrength(
|
|
|
+int SelectionBox::getMsSelAlphaFieldStrength(
|
|
|
int i) const // returns the multistyle selection AlphaField strength
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswAf) return 0;
|
|
|
- return msAuswAf->z(i) ? msAuswAf->z(i)->getStrength() : 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelAf) return 0;
|
|
|
+ return msSelAf->z(i) ? msSelAf->z(i)->getStrength() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsAuswHintergrundFarbe(
|
|
|
+int SelectionBox::getMsSelBackgroundColor(
|
|
|
int i) const // returns the multistyle selection background color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswBgF || !msAuswBgF->hat(i)) return 0;
|
|
|
- return msAuswBgF->get(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelBgF || !msSelBgF->has(i)) return 0;
|
|
|
+ return msSelBgF->get(i);
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::getMsAuswHintergrundImage(
|
|
|
+Image* SelectionBox::getMsSelBackgroundImage(
|
|
|
int i) const // returns the multistyle selection background image
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswBgB) return 0;
|
|
|
- return msAuswBgB->get(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelBgB) return 0;
|
|
|
+ return msSelBgB->get(i);
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::zMsAuswHintergrundImage(int i) const
|
|
|
+Image* SelectionBox::zMsSelBackgroundImage(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msAuswBgB) return 0;
|
|
|
- return msAuswBgB->z(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msSelBgB) return 0;
|
|
|
+ return msSelBgB->z(i);
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::getMouseBorder() const // returns the mouse border
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
return mouseBorder ? dynamic_cast<Border*>(mouseBorder->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::zMouseBorder() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
return mouseBorder;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMausRahmenFarbe() const // returns the mouse border color
|
|
|
+int SelectionBox::getMouseBorderColor() const // returns the mouse border color
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mouseBorder ? mouseBorder->getFarbe() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseBorder ? mouseBorder->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMausRahmenBreite() const // returns the mouse border width
|
|
|
+int SelectionBox::getMouseBorderWidth() const // returns the mouse border width
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mouseBorder ? mouseBorder->getRBreite() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseBorder ? mouseBorder->getRWidth() : 0;
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::getMouseAlphaField() const // returns the mouse AlphaField
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausAf ? dynamic_cast<AlphaField*>(mausAf->getThis()) : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseAf ? dynamic_cast<AlphaField*>(mouseAf->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::zMouseAlphaField() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausAf;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseAf;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMausAlphaFeldFarbe()
|
|
|
+int SelectionBox::getMouseAlphaFieldColor()
|
|
|
const // returns the mouse AlphaField color
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausAf ? mausAf->getFarbe() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseAf ? mouseAf->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMausAlphaFeldStrength()
|
|
|
+int SelectionBox::getMouseAlphaFieldStrength()
|
|
|
const // returns the mouse AlphaField strength
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausAf ? mausAf->getStrength() : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseAf ? mouseAf->getStrength() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMausHintergrundFarbe()
|
|
|
+int SelectionBox::getMouseBackgroundColor()
|
|
|
const // returns the mouse background color
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausBgF;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseBgF;
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::getMausHintergrundImage()
|
|
|
+Image* SelectionBox::getMouseBackgroundImage()
|
|
|
const // returns the mouse background image
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausBgB ? dynamic_cast<Image*>(mausBgB->getThis()) : 0;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseBgB ? dynamic_cast<Image*>(mouseBgB->getThis()) : 0;
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::zMausHintergrundImage() const
|
|
|
+Image* SelectionBox::zMouseBackgroundImage() const
|
|
|
{
|
|
|
- if (hatStyle(Style::MultiStyled)) return 0;
|
|
|
- return mausBgB;
|
|
|
+ if (hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ return mouseBgB;
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::getMsMouseBorder(
|
|
|
int i) const // returns the multistyle mouse border
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMouseBorder) return 0;
|
|
|
return msMouseBorder->get(i);
|
|
|
}
|
|
|
|
|
|
Border* SelectionBox::zMsMouseBorder(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMouseBorder) return 0;
|
|
|
return msMouseBorder->z(i);
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsMausRahmenFarbe(
|
|
|
+int SelectionBox::getMsMouseBorderColor(
|
|
|
int i) const // returns the multistyle mouse border color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMouseBorder) return 0;
|
|
|
- return msMouseBorder->z(i) ? msMouseBorder->z(i)->getFarbe() : 0;
|
|
|
+ return msMouseBorder->z(i) ? msMouseBorder->z(i)->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsMausRahmenBreite(
|
|
|
+int SelectionBox::getMsMouseBorderWidth(
|
|
|
int i) const // returns the multistyle mouse border width
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
if (!msMouseBorder) return 0;
|
|
|
- return msMouseBorder->z(i) ? msMouseBorder->z(i)->getRBreite() : 0;
|
|
|
+ return msMouseBorder->z(i) ? msMouseBorder->z(i)->getRWidth() : 0;
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::getMsMouseAlphaField(
|
|
|
int i) const // returns the multistyle mouse AlphaField
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausAf) return 0;
|
|
|
- return msMausAf->get(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseAf) return 0;
|
|
|
+ return msMouseAf->get(i);
|
|
|
}
|
|
|
|
|
|
AlphaField* SelectionBox::zMsMouseAlphaField(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausAf) return 0;
|
|
|
- return msMausAf->z(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseAf) return 0;
|
|
|
+ return msMouseAf->z(i);
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsMausAlphaFeldFarbe(
|
|
|
+int SelectionBox::getMsMouseAlphaFieldColor(
|
|
|
int i) const // returns the multistyle mouse AlphaField color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausAf) return 0;
|
|
|
- return msMausAf->z(i) ? msMausAf->z(i)->getFarbe() : 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseAf) return 0;
|
|
|
+ return msMouseAf->z(i) ? msMouseAf->z(i)->getColor() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsMausAlphaFeldStrength(
|
|
|
+int SelectionBox::getMsMouseAlphaFieldStrength(
|
|
|
int i) const // returns the multistyle mouse AlphaField strength
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausAf) return 0;
|
|
|
- return msMausAf->z(i) ? msMausAf->z(i)->getStrength() : 0;
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseAf) return 0;
|
|
|
+ return msMouseAf->z(i) ? msMouseAf->z(i)->getStrength() : 0;
|
|
|
}
|
|
|
|
|
|
-int SelectionBox::getMsMausHintergrundFarbe(
|
|
|
+int SelectionBox::getMsMouseBackgroundColor(
|
|
|
int i) const // returns the multistyle mouse background color
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausBgF || !msMausBgF->hat(i)) return 0;
|
|
|
- return msMausBgF->get(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseBgF || !msMouseBgF->has(i)) return 0;
|
|
|
+ return msMouseBgF->get(i);
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::getMsMausHintergrundImage(
|
|
|
+Image* SelectionBox::getMsMouseBackgroundImage(
|
|
|
int i) const // returns the multistyle mouse background image
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausBgB) return 0;
|
|
|
- return msMausBgB->get(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseBgB) return 0;
|
|
|
+ return msMouseBgB->get(i);
|
|
|
}
|
|
|
|
|
|
-Image* SelectionBox::zMsMausHintergrundImage(int i) const
|
|
|
+Image* SelectionBox::zMsMouseBackgroundImage(int i) const
|
|
|
{
|
|
|
- if (!hatStyle(Style::MultiStyled)) return 0;
|
|
|
- if (!msMausBgB) return 0;
|
|
|
- return msMausBgB->z(i);
|
|
|
+ if (!hasStyle(Style::MultiStyled)) return 0;
|
|
|
+ if (!msMouseBgB) return 0;
|
|
|
+ return msMouseBgB->z(i);
|
|
|
}
|
|
|
|
|
|
// Checks if a point is inside this object
|
|
|
// x: the x coordinate of the point
|
|
|
// y: the y coordinate of the point
|
|
|
// return: 1 if the point is inside, 0 otherwise
|
|
|
-bool SelectionBox::istPunktInnen(int x, int y) const
|
|
|
+bool SelectionBox::isPointInside(int x, int y) const
|
|
|
{
|
|
|
return x >= pos.x && x < pos.x + gr.x && y >= pos.y
|
|
|
&& y < pos.y + gr.y + ausklappHeight;
|
|
|
}
|
|
|
|
|
|
-bool SelectionBox::hatMsStyle(
|
|
|
+bool SelectionBox::hasMsStyle(
|
|
|
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->has(i))
|
|
|
return 0;
|
|
|
return (msStyle->get(i) | abStyle) == msStyle->get(i);
|
|
|
}
|
|
|
|
|
|
-bool SelectionBox::hatMsStyleNicht(
|
|
|
+bool SelectionBox::hasMsStyleNot(
|
|
|
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->has(i))
|
|
|
return 1;
|
|
|
return (msStyle->get(i) | abStyle) != msStyle->get(i);
|
|
|
}
|
|
|
|
|
|
-Drawable* SelectionBox::dublizieren() const // Creates a copy of the drawing
|
|
|
+Drawable* SelectionBox::duplicate() const // Creates a copy of the drawing
|
|
|
{
|
|
|
SelectionBox* obj = new SelectionBox();
|
|
|
obj->setPosition(pos);
|
|
|
@@ -2033,59 +2033,59 @@ Drawable* SelectionBox::dublizieren() const // Creates a copy of the drawing
|
|
|
obj->setKeyboardEventParameter(takParam);
|
|
|
obj->setMouseEvent(mak);
|
|
|
obj->setKeyboardEvent(tak);
|
|
|
- if (toolTip) obj->setToolTipZ((ToolTip*)toolTip->dublizieren());
|
|
|
+ if (toolTip) obj->setToolTipZ((ToolTip*)toolTip->duplicate());
|
|
|
obj->setStyle(style);
|
|
|
if (textRd)
|
|
|
obj->setTextRendererZ(dynamic_cast<TextRenderer*>(textRd->getThis()));
|
|
|
- if (rahmen) obj->setBorderZ((Border*)rahmen->dublizieren());
|
|
|
- if (ausfahren) obj->setDropDownButtonZ((Button*)ausfahren->dublizieren());
|
|
|
- obj->setHintergrundFarbe(hintergrundFarbe);
|
|
|
- if (hintergrundImage)
|
|
|
- obj->setHintergrundImage(
|
|
|
- dynamic_cast<Image*>(hintergrundImage->getThis()));
|
|
|
- if (hintergrundFeld)
|
|
|
- obj->setAlphaFieldZ((AlphaField*)hintergrundFeld->dublizieren());
|
|
|
- if (selBorder) obj->setSelBorderZ((Border*)selBorder->dublizieren());
|
|
|
- obj->setAuswHintergrundFarbe(auswBgF);
|
|
|
- if (auswBgB)
|
|
|
- obj->setAuswHintergrundImage(dynamic_cast<Image*>(auswBgB->getThis()));
|
|
|
- if (auswAf) obj->setSelAlphaFieldZ((AlphaField*)auswAf->dublizieren());
|
|
|
- if (mouseBorder) obj->setMouseBorderZ((Border*)mouseBorder->dublizieren());
|
|
|
- obj->setMausHintergrundFarbe(mausBgF);
|
|
|
- if (mausBgB)
|
|
|
- obj->setMausHintergrundImage(dynamic_cast<Image*>(mausBgB->getThis()));
|
|
|
- if (mausAf) obj->setMouseAlphaFieldZ((AlphaField*)mausAf->dublizieren());
|
|
|
+ if (border) obj->setBorderZ((Border*)border->duplicate());
|
|
|
+ if (ausfahren) obj->setDropDownButtonZ((Button*)ausfahren->duplicate());
|
|
|
+ obj->setBackgroundColor(backgroundColor);
|
|
|
+ if (backgroundImage)
|
|
|
+ obj->setBackgroundImage(
|
|
|
+ dynamic_cast<Image*>(backgroundImage->getThis()));
|
|
|
+ if (backgroundFeld)
|
|
|
+ obj->setAlphaFieldZ((AlphaField*)backgroundFeld->duplicate());
|
|
|
+ if (selBorder) obj->setSelBorderZ((Border*)selBorder->duplicate());
|
|
|
+ obj->setSelBackgroundColor(selBgF);
|
|
|
+ if (selBgB)
|
|
|
+ obj->setSelBackgroundImage(dynamic_cast<Image*>(selBgB->getThis()));
|
|
|
+ if (selAf) obj->setSelAlphaFieldZ((AlphaField*)selAf->duplicate());
|
|
|
+ if (mouseBorder) obj->setMouseBorderZ((Border*)mouseBorder->duplicate());
|
|
|
+ obj->setMouseBackgroundColor(mouseBgF);
|
|
|
+ if (mouseBgB)
|
|
|
+ obj->setMouseBackgroundImage(dynamic_cast<Image*>(mouseBgB->getThis()));
|
|
|
+ if (mouseAf) obj->setMouseAlphaFieldZ((AlphaField*)mouseAf->duplicate());
|
|
|
obj->setMaxAuskappHeight(ausklapMaxHeight);
|
|
|
- obj->setEintragHeight(eintragHeight);
|
|
|
+ obj->setEntryHeight(entryHeight);
|
|
|
for (int i = 0; i < anzahl; ++i)
|
|
|
{
|
|
|
if (members->z(i))
|
|
|
{
|
|
|
- obj->addEintrag("a");
|
|
|
- obj->setEintragZ(i, (TextField*)members->z(i)->dublizieren());
|
|
|
- if (msStyle && msStyle->hat(i)) obj->setMsStyle(i, msStyle->get(i));
|
|
|
+ obj->addEntry("a");
|
|
|
+ obj->setEntryZ(i, (TextField*)members->z(i)->duplicate());
|
|
|
+ if (msStyle && msStyle->has(i)) obj->setMsStyle(i, msStyle->get(i));
|
|
|
if (msSelBorder && msSelBorder->z(i))
|
|
|
obj->setMsSelBorderZ(
|
|
|
- i, (Border*)msSelBorder->z(i)->dublizieren());
|
|
|
- if (msAuswBgF && msAuswBgF->hat(i))
|
|
|
- obj->setMsAuswHintergrundFarbe(i, msAuswBgF->get(i));
|
|
|
- if (msAuswBgB && msAuswBgB->z(i))
|
|
|
- obj->setMsAuswHintergrundImage(i, msAuswBgB->get(i));
|
|
|
- if (msAuswAf && msAuswAf->z(i))
|
|
|
+ i, (Border*)msSelBorder->z(i)->duplicate());
|
|
|
+ if (msSelBgF && msSelBgF->has(i))
|
|
|
+ obj->setMsSelBackgroundColor(i, msSelBgF->get(i));
|
|
|
+ if (msSelBgB && msSelBgB->z(i))
|
|
|
+ obj->setMsSelBackgroundImage(i, msSelBgB->get(i));
|
|
|
+ if (msSelAf && msSelAf->z(i))
|
|
|
obj->setMsSelAlphaFieldZ(
|
|
|
- i, (AlphaField*)msAuswAf->z(i)->dublizieren());
|
|
|
+ i, (AlphaField*)msSelAf->z(i)->duplicate());
|
|
|
if (msMouseBorder && msMouseBorder->z(i))
|
|
|
obj->setMsMouseBorderZ(
|
|
|
- i, (Border*)msMouseBorder->z(i)->dublizieren());
|
|
|
- if (msMausBgF && msMausBgF->hat(i))
|
|
|
- obj->setMsMausHintergrundFarbe(i, msMausBgF->get(i));
|
|
|
- if (msMausBgB && msMausBgB->z(i))
|
|
|
- obj->setMsMausHintergrundImage(i, msMausBgB->get(i));
|
|
|
- if (msMausAf && msMausAf->z(i))
|
|
|
+ i, (Border*)msMouseBorder->z(i)->duplicate());
|
|
|
+ if (msMouseBgF && msMouseBgF->has(i))
|
|
|
+ obj->setMsMouseBackgroundColor(i, msMouseBgF->get(i));
|
|
|
+ if (msMouseBgB && msMouseBgB->z(i))
|
|
|
+ obj->setMsMouseBackgroundImage(i, msMouseBgB->get(i));
|
|
|
+ if (msMouseAf && msMouseAf->z(i))
|
|
|
obj->setMsMouseAlphaFieldZ(
|
|
|
- i, (AlphaField*)msMausAf->z(i)->dublizieren());
|
|
|
+ i, (AlphaField*)msMouseAf->z(i)->duplicate());
|
|
|
}
|
|
|
}
|
|
|
- obj->setAlphaFieldColor(auswahl);
|
|
|
+ obj->setAlphaFieldColor(selection);
|
|
|
return obj;
|
|
|
}
|