mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Remove deprecated messages
This commit is contained in:
parent
95a0c6d0f4
commit
3ae4889526
@ -105,8 +105,6 @@ namespace ui {
|
|||||||
JM_TIMER, // A timer timeout.
|
JM_TIMER, // A timer timeout.
|
||||||
JM_SETPOS, // Set position.
|
JM_SETPOS, // Set position.
|
||||||
JM_WINMOVE, // Window movement.
|
JM_WINMOVE, // Window movement.
|
||||||
JM_DEFERREDFREE, // Deferred jwidget_free call.
|
|
||||||
JM_DIRTYCHILDREN, // Dirty children.
|
|
||||||
JM_QUEUEPROCESSING, // Only sent to manager which indicate
|
JM_QUEUEPROCESSING, // Only sent to manager which indicate
|
||||||
// the last message in the queue.
|
// the last message in the queue.
|
||||||
|
|
||||||
|
@ -139,10 +139,6 @@ bool ListBox::onProcessMessage(Message* msg)
|
|||||||
this->getTheme()->draw_listbox(this, &msg->draw.rect);
|
this->getTheme()->draw_listbox(this, &msg->draw.rect);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case JM_DIRTYCHILDREN:
|
|
||||||
dirtyChildren();
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case JM_OPEN:
|
case JM_OPEN:
|
||||||
centerScroll();
|
centerScroll();
|
||||||
break;
|
break;
|
||||||
@ -319,29 +315,6 @@ void ListBox::layoutListBox(JRect rect)
|
|||||||
jrect_free(cpos);
|
jrect_free(cpos);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListBox::dirtyChildren()
|
|
||||||
{
|
|
||||||
View* view = View::getView(this);
|
|
||||||
if (!view) {
|
|
||||||
UI_FOREACH_WIDGET(getChildren(), it)
|
|
||||||
static_cast<Item*>(*it)->invalidate();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
gfx::Rect vp = view->getViewportBounds();
|
|
||||||
|
|
||||||
UI_FOREACH_WIDGET(getChildren(), it) {
|
|
||||||
Item* child = static_cast<Item*>(*it);
|
|
||||||
|
|
||||||
if (child->rc->y2 <= vp.y)
|
|
||||||
continue;
|
|
||||||
else if (child->rc->y1 >= vp.y+vp.h)
|
|
||||||
break;
|
|
||||||
|
|
||||||
child->invalidate();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ListBox::Item::onProcessMessage(Message* msg)
|
bool ListBox::Item::onProcessMessage(Message* msg)
|
||||||
{
|
{
|
||||||
switch (msg->type) {
|
switch (msg->type) {
|
||||||
|
@ -49,7 +49,6 @@ namespace ui {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void layoutListBox(JRect rect);
|
void layoutListBox(JRect rect);
|
||||||
void dirtyChildren();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ui
|
} // namespace ui
|
||||||
|
@ -1035,8 +1035,6 @@ void Manager::pumpQueue()
|
|||||||
"JM_TIMER",
|
"JM_TIMER",
|
||||||
"JM_SETPOS",
|
"JM_SETPOS",
|
||||||
"JM_WINMOVE",
|
"JM_WINMOVE",
|
||||||
"JM_DEFERREDFREE",
|
|
||||||
"JM_DIRTYCHILDREN",
|
|
||||||
"JM_QUEUEPROCESSING",
|
"JM_QUEUEPROCESSING",
|
||||||
|
|
||||||
"JM_KEYPRESSED",
|
"JM_KEYPRESSED",
|
||||||
|
@ -1267,11 +1267,6 @@ bool Widget::onProcessMessage(Message* msg)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
case JM_DIRTYCHILDREN:
|
|
||||||
UI_FOREACH_WIDGET(getChildren(), it)
|
|
||||||
(*it)->invalidate();
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case JM_KEYPRESSED:
|
case JM_KEYPRESSED:
|
||||||
case JM_KEYRELEASED:
|
case JM_KEYRELEASED:
|
||||||
if (msg->key.propagate_to_children) {
|
if (msg->key.propagate_to_children) {
|
||||||
|
Loading…
Reference in New Issue
Block a user