Remove deprecated messages

This commit is contained in:
David Capello 2013-01-16 21:54:47 -03:00
parent 95a0c6d0f4
commit 3ae4889526
5 changed files with 0 additions and 37 deletions

View File

@ -105,8 +105,6 @@ namespace ui {
JM_TIMER, // A timer timeout.
JM_SETPOS, // Set position.
JM_WINMOVE, // Window movement.
JM_DEFERREDFREE, // Deferred jwidget_free call.
JM_DIRTYCHILDREN, // Dirty children.
JM_QUEUEPROCESSING, // Only sent to manager which indicate
// the last message in the queue.

View File

@ -139,10 +139,6 @@ bool ListBox::onProcessMessage(Message* msg)
this->getTheme()->draw_listbox(this, &msg->draw.rect);
return true;
case JM_DIRTYCHILDREN:
dirtyChildren();
return true;
case JM_OPEN:
centerScroll();
break;
@ -319,29 +315,6 @@ void ListBox::layoutListBox(JRect rect)
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)
{
switch (msg->type) {

View File

@ -49,7 +49,6 @@ namespace ui {
private:
void layoutListBox(JRect rect);
void dirtyChildren();
};
} // namespace ui

View File

@ -1035,8 +1035,6 @@ void Manager::pumpQueue()
"JM_TIMER",
"JM_SETPOS",
"JM_WINMOVE",
"JM_DEFERREDFREE",
"JM_DIRTYCHILDREN",
"JM_QUEUEPROCESSING",
"JM_KEYPRESSED",

View File

@ -1267,11 +1267,6 @@ bool Widget::onProcessMessage(Message* msg)
return true;
}
case JM_DIRTYCHILDREN:
UI_FOREACH_WIDGET(getChildren(), it)
(*it)->invalidate();
return true;
case JM_KEYPRESSED:
case JM_KEYRELEASED:
if (msg->key.propagate_to_children) {