int main() { pfd(2.0); CHECK_GOOD(3); pfi(2); CHECK_GOOD(3+4); rfi(2); CHECK_GOOD(3+4+4); rfd(2.0); CHECK_GOOD(3+4+4+3); return errors != 0; }
bool ReorderFieldsHandler::handleURI(URI& uri) { if (uri.action != "reorder_fields") return false; Table* t = extractMetadataItemFromURI<Table>(uri); wxWindow* w = getParentWindow(uri); if (!t || !w) return true; ReorderFieldsDialog rfd(w, t); // NOTE: this has been moved here from OnOkButtonClick() to make frame // activation work properly. Basically activation of another // frame has to happen outside wxDialog::ShowModal(), because it // does at the end re-focus the last focused control, raising // the parent frame over the newly created sql execution frame if (rfd.ShowModal() == wxID_OK) { execSql(w, rfd.GetTitle(), t->getDatabase(), rfd.getStatementsToExecute(), true); } return true; }