Changeset View
Changeset View
Standalone View
Standalone View
src/main/KexiMainWindow_p.cpp
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Line(s) | 638 | #endif | |||
---|---|---|---|---|---|
656 | // * HELP MENU | 656 | // * HELP MENU | ||
657 | // add help menu actions... (KexiTabbedToolBar depends on them) | 657 | // add help menu actions... (KexiTabbedToolBar depends on them) | ||
658 | d->helpMenu = new KHelpMenu(this, KAboutData::applicationData(), | 658 | d->helpMenu = new KHelpMenu(this, KAboutData::applicationData(), | ||
659 | true/*showWhatsThis*/); | 659 | true/*showWhatsThis*/); | ||
660 | QAction* help_report_bug_action = d->helpMenu->action(KHelpMenu::menuReportBug); | 660 | QAction* help_report_bug_action = d->helpMenu->action(KHelpMenu::menuReportBug); | ||
661 | d->ac->addAction(help_report_bug_action->objectName(), help_report_bug_action); | 661 | d->ac->addAction(help_report_bug_action->objectName(), help_report_bug_action); | ||
662 | QObject::disconnect(help_report_bug_action, 0, 0, 0); | 662 | QObject::disconnect(help_report_bug_action, 0, 0, 0); | ||
663 | QObject::connect(help_report_bug_action, SIGNAL(triggered()), mainWin, SLOT(slotReportBug())); | 663 | QObject::connect(help_report_bug_action, SIGNAL(triggered()), mainWin, SLOT(slotReportBug())); | ||
664 | help_report_bug_action->setText(xi18nc("Report a bug or wish for Kexi application", "Report a &Bug or Wish...")); | 664 | help_report_bug_action->setText(xi18nc("Report a bug or wish for KEXI application", "Report a &Bug or Wish...")); | ||
665 | help_report_bug_action->setIcon(koIcon("tools-report-bug")); // good icon for toolbar | 665 | help_report_bug_action->setIcon(koIcon("tools-report-bug")); // good icon for toolbar | ||
666 | help_report_bug_action->setWhatsThis(xi18n("Files a bug or wish for Kexi application.")); | 666 | help_report_bug_action->setWhatsThis(xi18nc( | ||
667 | "@info:whatsthis", "Files a bug or wish for <application>%1</application> application.", | ||||
668 | QApplication::applicationDisplayName())); | ||||
667 | QAction* help_whats_this_action = d->helpMenu->action(KHelpMenu::menuWhatsThis); | 669 | QAction* help_whats_this_action = d->helpMenu->action(KHelpMenu::menuWhatsThis); | ||
668 | d->ac->addAction(help_whats_this_action->objectName(), help_whats_this_action); | 670 | d->ac->addAction(help_whats_this_action->objectName(), help_whats_this_action); | ||
669 | help_whats_this_action->setWhatsThis(xi18n("Activates a \"What's This?\" tool.")); | 671 | help_whats_this_action->setWhatsThis(xi18n("Activates a \"What's This?\" tool.")); | ||
670 | QAction* help_contents_action = d->helpMenu->action(KHelpMenu::menuHelpContents); | 672 | QAction* help_contents_action = d->helpMenu->action(KHelpMenu::menuHelpContents); | ||
671 | d->ac->addAction(help_contents_action->objectName(), help_contents_action); | 673 | d->ac->addAction(help_contents_action->objectName(), help_contents_action); | ||
672 | help_contents_action->setText(xi18n("Help")); | 674 | help_contents_action->setText(xi18n("Help")); | ||
673 | help_contents_action->setWhatsThis(xi18n("Shows Kexi Handbook.")); | 675 | help_contents_action->setWhatsThis(xi18nc("@info:whatsthis", | ||
676 | "Shows <application>%1</application> Handbook.", | ||||
677 | QApplication::applicationDisplayName())); | ||||
674 | QAction* help_about_app_action = d->helpMenu->action(KHelpMenu::menuAboutApp); | 678 | QAction* help_about_app_action = d->helpMenu->action(KHelpMenu::menuAboutApp); | ||
675 | d->ac->addAction(help_about_app_action->objectName(), help_about_app_action); | 679 | d->ac->addAction(help_about_app_action->objectName(), help_about_app_action); | ||
676 | help_about_app_action->setWhatsThis(xi18n("Shows information about Kexi application.")); | 680 | help_about_app_action->setWhatsThis( | ||
681 | xi18nc("@info:whatsthis", "Shows information about <application>%1</application> application.", | ||||
682 | QApplication::applicationDisplayName())); | ||||
677 | QAction* help_about_kde_action = d->helpMenu->action(KHelpMenu::menuAboutKDE); | 683 | QAction* help_about_kde_action = d->helpMenu->action(KHelpMenu::menuAboutKDE); | ||
678 | d->ac->addAction(help_about_kde_action->objectName(), help_about_kde_action); | 684 | d->ac->addAction(help_about_kde_action->objectName(), help_about_kde_action); | ||
679 | help_about_kde_action->setWhatsThis(xi18n("Shows information about KDE.")); | 685 | help_about_kde_action->setWhatsThis(xi18n("Shows information about KDE.")); | ||
680 | QAction* help_switch_language_action = d->helpMenu->action(KHelpMenu::menuSwitchLanguage); | 686 | QAction* help_switch_language_action = d->helpMenu->action(KHelpMenu::menuSwitchLanguage); | ||
681 | if (help_switch_language_action) { | 687 | if (help_switch_language_action) { | ||
682 | d->ac->addAction(help_switch_language_action->objectName(), help_switch_language_action); | 688 | d->ac->addAction(help_switch_language_action->objectName(), help_switch_language_action); | ||
683 | } | 689 | } | ||
684 | // extra action such as help_donate may be confusing for the user or conflicting with existing so hide it | 690 | // extra action such as help_donate may be confusing for the user or conflicting with existing so hide it | ||
▲ Show 20 Lines • Show All 660 Lines • ▼ Show 20 Line(s) | |||||
1345 | #ifndef KEXI_NO_PENDING_DIALOGS | 1351 | #ifndef KEXI_NO_PENDING_DIALOGS | ||
1346 | pendingWindows.clear(); | 1352 | pendingWindows.clear(); | ||
1347 | #endif | 1353 | #endif | ||
1348 | } | 1354 | } | ||
1349 | 1355 | | |||
1350 | void KexiMainWindow::Private::showStartProcessMsg(const QStringList& args) | 1356 | void KexiMainWindow::Private::showStartProcessMsg(const QStringList& args) | ||
1351 | { | 1357 | { | ||
1352 | wnd->showErrorMessage(xi18nc("@info", "Could not start <application>%1</application> application.", | 1358 | wnd->showErrorMessage(xi18nc("@info", "Could not start <application>%1</application> application.", | ||
1353 | QString::fromLatin1(KEXI_APP_NAME)), | 1359 | QApplication::applicationDisplayName()), | ||
1354 | xi18nc("@info", | 1360 | xi18nc("@info", | ||
1355 | "Command <command>%1</command> failed.", args.join(" "))); | 1361 | "Command <command>%1</command> failed.", args.join(" "))); | ||
1356 | } | 1362 | } | ||
1357 | 1363 | | |||
1358 | void KexiMainWindow::Private::updatePropEditorVisibility(Kexi::ViewMode viewMode, KexiPart::Info *info) | 1364 | void KexiMainWindow::Private::updatePropEditorVisibility(Kexi::ViewMode viewMode, KexiPart::Info *info) | ||
1359 | { | 1365 | { | ||
1360 | if (!propEditorDockWidget) | 1366 | if (!propEditorDockWidget) | ||
1361 | return; | 1367 | return; | ||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |