Closed qPCR4vir closed 8 years ago
The first issue is easy to fix. The second issue need some changes, for example
void set_sort_compare(size_type col,
std::function<bool(const std::string&, nana::any*, const index_pair& pos1,
const std::string&, nana::any*, const index_pair& pos2,
model_interface * model,
bool reverse)> strick_ordering);
Then by using pos1, pos2, and model pointer, it is possible to acceeing two target_comp
objects.
your fix to 1 - tested, it works... thank you !!
... I see, the second is not trivial... I'm thinking more in the header direction, that keep all the functions we need to managed that "field data". Unfortunately right now I need to move fast ... so I'm implementing a simple workaround (formatting the numbers with left space pad)
Hi !
Have you plans to merge this (listbox-model
branch) into develop
? is not that easy...
Hi, I will merge it into develop
recently.
Hi, I'm using the list model. It was simple to set, and is working very fast (tested 50 000 items) but I have two problems: (sorry is long, but trivial)
item_data::to_string()
which have no idea of the model and have an emptycells
which throw out of index.targets_comp
object.So... it maybe crazy (we have to many different possibilities!) but maybe we can set four more members (std::funtions) on the header object :
to_string()
,to_cell
,set_value()
andcomp()
each taking a reference to the model object (CProgParam_SondeDesign::targets_comp&
- in my case)? It will be very easy to setup, more consistent ....