/** * 关于对话框入口. */ void HelpDialog::AboutEntry() { HelpDialog hlp; if (!about) { about = hlp.CreateAboutDialog(); hlp.RunHelpDialog(&about); } else gtk_window_present(GTK_WINDOW(about)); }
/** * 更多信息对话框入口. */ void HelpDialog::MoreEntry() { HelpDialog hlp; if (!more) { more = hlp.CreateMoreDialog(); hlp.RunHelpDialog(&more); } else gtk_window_present(GTK_WINDOW(more)); }
void MainWindow::OnHelp(wxCommandEvent& event) { static bool seenHelp = false; if (! seenHelp) { wxImage::AddHandler(new wxJPEGHandler); wxImage::AddHandler(new wxGIFHandler); seenHelp = true; } HelpDialog dia; dia.ShowModal(); }
void HelpDialog::show() { // change the cursor R2_GLOBALS._events.setCursor(CURSOR_ARROW); // Create the dialog and draw it HelpDialog *dlg = new HelpDialog(); dlg->draw(); // Show the help dialog GfxButton *btn = dlg->execute(&dlg->_btnResume); // If a function button was selected, take care of it Event evt; evt.eventType = EVENT_KEYPRESS; evt.kbd.keycode = Common::KEYCODE_INVALID; if (btn == &dlg->_btnList[0]) { evt.kbd.keycode = Common::KEYCODE_F2; } else if (btn == &dlg->_btnList[1]) { evt.kbd.keycode = Common::KEYCODE_F3; } else if (btn == &dlg->_btnList[2]) { evt.kbd.keycode = Common::KEYCODE_F4; } else if (btn == &dlg->_btnList[3]) { evt.kbd.keycode = Common::KEYCODE_F5; } else if (btn == &dlg->_btnList[4]) { evt.kbd.keycode = Common::KEYCODE_F7; } else if (btn == &dlg->_btnList[5]) { evt.kbd.keycode = Common::KEYCODE_F8; } else if (btn == &dlg->_btnList[6]) { evt.kbd.keycode = Common::KEYCODE_F10; } // Remove the dialog dlg->remove(); delete dlg; // If a action button was selected, dispatch to handle it if (evt.kbd.keycode != Common::KEYCODE_INVALID) R2_GLOBALS._game->processEvent(evt); else R2_GLOBALS._events.setCursorFromFlag(); }
// ************************************************************ void QucsFilter::slotHelpIntro() { HelpDialog *d = new HelpDialog(this); d->show(); }
// ************************************************************ void MyWidget::slotHelpIntro() { HelpDialog *d = new HelpDialog(this); d->show(); }
void TorrifyWindow::about() { HelpDialog help; help.exec(); }
void MainWindow::on_actionHelp_triggered() { HelpDialog* help = new HelpDialog(this); help->exec(); }
void QucsTranscalc::slotHelpIntro() { HelpDialog *d = new HelpDialog(this); d->show(); }
// ************************************************************ void QucsActiveFilter::slotHelpIntro() { HelpDialog *d = new HelpDialog(this); d->exec(); delete d; }
void ViewerCmdLine::onHelp() { HelpDialog hlpdlg; hlpdlg.showModal(); }