void FaceInstance::testSelect(Selector& selector, SelectionTest& test) { SelectionIntersection best; testSelect(test, best); if (best.valid()) { Selector_add(selector, m_selectable, best); } }
int main() { AString error; AUrl url("odbc://*****:*****@localhost/aos_global/"); AODBCServer db(url); //a_AMySQLServer equivalent // AUrl url("mysql://*****:*****@localhost/aos/"); // AMySQLServer db(url); if (!db.init(error)) { db.debugDump(); std::cerr << error << std::endl; return -1; } testInsert(db); testUpdate(db); testSelect(db); testDelete(db); return 0; }
void SelectorTest::testSelect_S6_NR_T3() { std::cerr << "SelectorTest::testSelect_S6_NR_T3()" << std::endl; configuration->set(Selector::SUGGESTIONS, "6"); configuration->set(Selector::REPEAT_SUGGESTIONS, "false"); configuration->set(Selector::GREEDY_SUGGESTION_THRESHOLD, "3"); testSelect(tds_S6_NR_T3); }
// The mouseUp callback: check what has to be done and unconnect self from the calbacks void SelectObserver::mouseUp(DeviceVector position) { // Check the result of this (finished) operation, is it a drag or a click? testSelect(device_constrained(position)); }