Ejemplo n.º 1
0
void FaceInstance::testSelect(Selector& selector, SelectionTest& test) {
	SelectionIntersection best;
	testSelect(test, best);
	if (best.valid()) {
		Selector_add(selector, m_selectable, best);
	}
}
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 3
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);
}
Ejemplo n.º 4
0
// 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));
}