Changeset View
Changeset View
Standalone View
Standalone View
kate/katemainwindow.cpp
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Line(s) | 217 | { | |||
---|---|---|---|---|---|
227 | m_paShowPath = new KToggleAction(i18n("Sho&w Path in Titlebar"), this); | 227 | m_paShowPath = new KToggleAction(i18n("Sho&w Path in Titlebar"), this); | ||
228 | actionCollection()->addAction(QStringLiteral("settings_show_full_path"), m_paShowPath); | 228 | actionCollection()->addAction(QStringLiteral("settings_show_full_path"), m_paShowPath); | ||
229 | connect(m_paShowPath, SIGNAL(toggled(bool)), this, SLOT(updateCaption())); | 229 | connect(m_paShowPath, SIGNAL(toggled(bool)), this, SLOT(updateCaption())); | ||
230 | m_paShowPath->setWhatsThis(i18n("Show the complete document path in the window caption")); | 230 | m_paShowPath->setWhatsThis(i18n("Show the complete document path in the window caption")); | ||
231 | 231 | | |||
232 | QAction * a = actionCollection()->addAction(KStandardAction::Back, QStringLiteral("view_prev_tab")); | 232 | QAction * a = actionCollection()->addAction(KStandardAction::Back, QStringLiteral("view_prev_tab")); | ||
233 | a->setText(i18n("&Previous Tab")); | 233 | a->setText(i18n("&Previous Tab")); | ||
234 | a->setWhatsThis(i18n("Focus the previous tab.")); | 234 | a->setWhatsThis(i18n("Focus the previous tab.")); | ||
235 | actionCollection()->setDefaultShortcuts(a, a->shortcuts() << KStandardShortcut::tabPrev()); | 235 | QList<QKeySequence> tabPrevShortcuts = KStandardShortcut::tabPrev(); | ||
236 | tabPrevShortcuts.removeAll(Qt::CTRL + Qt::Key_PageUp); // KTextEditor uses this for Move to Up of View... | ||||
237 | actionCollection()->setDefaultShortcuts(a, tabPrevShortcuts); | ||||
236 | connect(a, SIGNAL(triggered()), this, SLOT(slotFocusPrevTab())); | 238 | connect(a, SIGNAL(triggered()), this, SLOT(slotFocusPrevTab())); | ||
237 | 239 | | |||
238 | a = actionCollection()->addAction(KStandardAction::Forward, QStringLiteral("view_next_tab")); | 240 | a = actionCollection()->addAction(KStandardAction::Forward, QStringLiteral("view_next_tab")); | ||
239 | a->setText(i18n("&Next Tab")); | 241 | a->setText(i18n("&Next Tab")); | ||
240 | a->setWhatsThis(i18n("Focus the next tab.")); | 242 | a->setWhatsThis(i18n("Focus the next tab.")); | ||
241 | actionCollection()->setDefaultShortcuts(a, a->shortcuts() << KStandardShortcut::tabNext()); | 243 | QList<QKeySequence> tabNextShortcuts = KStandardShortcut::tabNext(); | ||
244 | tabNextShortcuts.removeAll(Qt::CTRL + Qt::Key_PageDown); // KTextEditor uses this for Move to Bottom of View... | ||||
245 | actionCollection()->setDefaultShortcuts(a, tabNextShortcuts); | ||||
242 | connect(a, SIGNAL(triggered()), this, SLOT(slotFocusNextTab())); | 246 | connect(a, SIGNAL(triggered()), this, SLOT(slotFocusNextTab())); | ||
243 | 247 | | |||
244 | // the quick open action is used by the KateViewSpace "quick open button" | 248 | // the quick open action is used by the KateViewSpace "quick open button" | ||
245 | a = actionCollection()->addAction(QStringLiteral("view_quick_open")); | 249 | a = actionCollection()->addAction(QStringLiteral("view_quick_open")); | ||
246 | a->setIcon(QIcon::fromTheme(QStringLiteral("quickopen"))); | 250 | a->setIcon(QIcon::fromTheme(QStringLiteral("quickopen"))); | ||
247 | a->setText(i18n("&Quick Open")); | 251 | a->setText(i18n("&Quick Open")); | ||
248 | actionCollection()->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_O)); | 252 | actionCollection()->setDefaultShortcut(a, QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_O)); | ||
249 | connect(a, SIGNAL(triggered()), this, SLOT(slotQuickOpen())); | 253 | connect(a, SIGNAL(triggered()), this, SLOT(slotQuickOpen())); | ||
▲ Show 20 Lines • Show All 924 Lines • Show Last 20 Lines |