本文整理汇总了C++中FindDialog类的典型用法代码示例。如果您正苦于以下问题:C++ FindDialog类的具体用法?C++ FindDialog怎么用?C++ FindDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FindDialog类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
FindDialog *dialog = new FindDialog;
dialog->show();
return app.exec();
}
示例2: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
FindDialog w;
w.show();
return a.exec();
}
示例3:
void
FindDialog::closeCallback(Widget /*button*/,
XtPointer closure,
XtPointer /*call_data*/)
{
FindDialog *findData = (FindDialog *)closure;
findData->popdown();
return;
}
示例4: FindDialog
//! [0]
void EditorWindow::find()
{
if (!findDialog) {
findDialog = new FindDialog(this);
connect(findDialog, SIGNAL(findNext()), this, SLOT(findNext()));
}
findDialog->show();
findDialog->raise();
findDialog->activateWindow();
}
示例5: FindDialog
void TabDialog::findResult(int size,const QVector<Car> &c)
{
if(size == 0)
{
QMessageBox::information(this,tr("Сообщение"),tr("Поиск не дал результатов!"));
return;
}
FindDialog *dialog = new FindDialog(this,size,c);
hide();
dialog->show();
dialog->exec();
close();
delete dialog;
}
示例6: findContact
//! [findContact]
void AddressBook::findContact()
{
FindDialog dialog;
if (dialog.exec() == QDialog::Accepted) {
QString contactName = dialog.findText();
if (contacts.contains(contactName)) {
ui->nameLine->setText(contactName);
ui->addressText->setText(contacts.value(contactName));
} else {
QMessageBox::information(this, tr("Contact Not Found"),
tr("Sorry, \"%1\" is not in your address book.").arg(contactName));
return;
}
}
updateInterface(NavigationMode);
}
示例7: XtVaGetValues
void
FindDialog::directionCallback(Widget widget,
XtPointer closure,
XtPointer)
{
int which = (int) ((long) closure); // closure contains button #
FindDialog *find;
// Client data is actually on the @[email protected]* parent, not the toggle item
XtVaGetValues(XtParent(widget), XmNuserData, &find, NULL);
if (which == 0) {
find->setSearchForward(TRUE);
} else {
find->setSearchForward(False);
}
return;
}
示例8: XmProcessTraversal
void
FindDialog::textFieldCallback(
Widget field,
XtPointer data,
XtPointer)
{
char *s;
FindDialog *findData = (FindDialog *)data;
if (*(s = XmTextGetString(field)) == '\0') {
// Empty field. Traverse
(void) XmProcessTraversal(field, XmTRAVERSE_NEXT_TAB_GROUP);
} else {
// Field not empty. Do search
findData->getAllFields();
if (!findData->findMatching(False)) {
XBell(XtDisplay(field), 0);
}
}
return;
}
示例9: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
FindDialog dialog;
return dialog.exec();
}