mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-25 17:28:13 +02:00
fixed afterLoad event
This commit is contained in:
parent
8db9f0086b
commit
b16f06168b
WebWidgets
@ -128,6 +128,9 @@ protected:
|
|||||||
|
|
||||||
void fireSelected(void* pSender);
|
void fireSelected(void* pSender);
|
||||||
/// Fires the selected event.
|
/// Fires the selected event.
|
||||||
|
|
||||||
|
void fireAfterLoad(void* pSender);
|
||||||
|
/// Fires the afterLoad event.
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ ComboBox::ComboBox(const std::string& name, const std::type_info& type):
|
|||||||
{
|
{
|
||||||
ComboBoxCell::Ptr pCell = cell<ComboBoxCell>();
|
ComboBoxCell::Ptr pCell = cell<ComboBoxCell>();
|
||||||
pCell->selected = delegate(*this, &ComboBox::fireSelected);
|
pCell->selected = delegate(*this, &ComboBox::fireSelected);
|
||||||
|
pCell->afterLoad = delegate(*this, &ComboBox::fireAfterLoad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -86,4 +87,11 @@ void ComboBox::fireSelected(void* pSender)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ComboBox::fireAfterLoad(void* pSender)
|
||||||
|
{
|
||||||
|
ComboBoxEvent sel(this);
|
||||||
|
afterLoad(this, sel);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} } // namespace Poco::WebWidgets
|
} } // namespace Poco::WebWidgets
|
||||||
|
@ -43,7 +43,7 @@ namespace WebWidgets {
|
|||||||
|
|
||||||
|
|
||||||
const std::string ComboBoxCell::FIELD_VAL("val");
|
const std::string ComboBoxCell::FIELD_VAL("val");
|
||||||
const std::string ComboBoxCell::EV_LOAD("beforeLoad");
|
const std::string ComboBoxCell::EV_LOAD("doLoad");
|
||||||
const std::string ComboBoxCell::EV_AFTERLOAD("afterLoad");
|
const std::string ComboBoxCell::EV_AFTERLOAD("afterLoad");
|
||||||
const std::string ComboBoxCell::EV_SELECTED("sel");
|
const std::string ComboBoxCell::EV_SELECTED("sel");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user