MCPcopy Index your code
hub / github.com/NetHack/NetHack / doMenuItem

Method doMenuItem

outdated/win/Qt3/qt3_win.cpp:3853–3879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3851};
3852
3853void NetHackQtMainWindow::doMenuItem(int id)
3854{
3855 switch (id) {
3856 case 1000:
3857 centerOnMain(qt_settings);
3858 qt_settings->show();
3859 break;
3860 case 2000:
3861 QMessageBox::about(this, "About Qt NetHack", aboutMsg());
3862 break;
3863 case 3000: {
3864 QDialog dlg(this,0,TRUE);
3865 (new QVBoxLayout(&dlg))->setAutoAdd(TRUE);
3866 QTextBrowser browser(&dlg);
3867 NetHackMimeSourceFactory ms;
3868 browser.setMimeSourceFactory(&ms);
3869 browser.setSource(QDir::currentDirPath()+"/Guidebook.html");
3870 if ( qt_compact_mode )
3871 dlg.showMaximized();
3872 dlg.exec();
3873 }
3874 break;
3875 default:
3876 if ( id >= 0 )
3877 doKeys(macro[id]);
3878 }
3879}
3880
3881void NetHackQtMainWindow::doKeys(const QString& k)
3882{

Callers

nothing calls this directly

Calls 3

centerOnMainFunction · 0.70
aboutMsgFunction · 0.70
showMethod · 0.45

Tested by

no test coverage detected