void Wizard::runHelp() { if (helpAction() == Command) { KProcess proc; proc << helpActionText(); proc.start(KProcess::DontCare, KProcess::NoCommunication); } else if (helpAction() == Dialog) { KommanderFactory::loadPlugins(); QDialog *dialog = (QDialog *)KommanderFactory::create(helpActionText()); dialog->exec(); delete dialog; } }
void run() { switch (routes[action]) { case LOAD: loadAction(); break; case INSERT: insertAction(); break; case FIND: findAction(); break; case REMOVE: removeAction(); break; case CLEAR: clearAction(); break; case DELETE: deleteAction(); break; case SHOW: showAction(); break; case TEST: testAction(); break; case HELP: helpAction(); break; case REPORT: reportAction(); break; default: usageAction(); break; } }