Changeset View
Changeset View
Standalone View
Standalone View
kate/katemainwindow.cpp
Show All 30 Lines | |||||
31 | #include "katesavemodifieddialog.h" | 31 | #include "katesavemodifieddialog.h" | ||
32 | #include "katemwmodonhddialog.h" | 32 | #include "katemwmodonhddialog.h" | ||
33 | #include "katesessionsaction.h" | 33 | #include "katesessionsaction.h" | ||
34 | #include "katesessionmanager.h" | 34 | #include "katesessionmanager.h" | ||
35 | #include "kateviewspace.h" | 35 | #include "kateviewspace.h" | ||
36 | #include "katequickopen.h" | 36 | #include "katequickopen.h" | ||
37 | #include "kateupdatedisabler.h" | 37 | #include "kateupdatedisabler.h" | ||
38 | #include "katedebug.h" | 38 | #include "katedebug.h" | ||
39 | #include "katecolorschemechooser.h" | ||||
39 | 40 | | |||
40 | #include <KActionMenu> | 41 | #include <KActionMenu> | ||
41 | #include <KAboutApplicationDialog> | 42 | #include <KAboutApplicationDialog> | ||
42 | #include <KEditToolBar> | 43 | #include <KEditToolBar> | ||
43 | #include <KShortcutsDialog> | 44 | #include <KShortcutsDialog> | ||
44 | #include <KMessageBox> | 45 | #include <KMessageBox> | ||
45 | #include <KOpenWithDialog> | 46 | #include <KOpenWithDialog> | ||
46 | #include <KStandardAction> | 47 | #include <KStandardAction> | ||
Show All 27 Lines | |||||
74 | #include <QMenu> | 75 | #include <QMenu> | ||
75 | #include <QMenuBar> | 76 | #include <QMenuBar> | ||
76 | #include <QToolButton> | 77 | #include <QToolButton> | ||
77 | #include <QTimer> | 78 | #include <QTimer> | ||
78 | #include <QFontDatabase> | 79 | #include <QFontDatabase> | ||
79 | #include <QDir> | 80 | #include <QDir> | ||
80 | 81 | | |||
81 | #include <ktexteditor/sessionconfiginterface.h> | 82 | #include <ktexteditor/sessionconfiginterface.h> | ||
83 | | ||||
82 | //END | 84 | //END | ||
83 | 85 | | |||
84 | KateMwModOnHdDialog *KateMainWindow::s_modOnHdDialog = nullptr; | 86 | KateMwModOnHdDialog *KateMainWindow::s_modOnHdDialog = nullptr; | ||
85 | 87 | | |||
86 | KateContainerStackedLayout::KateContainerStackedLayout(QWidget *parent) | 88 | KateContainerStackedLayout::KateContainerStackedLayout(QWidget *parent) | ||
87 | : QStackedLayout(parent) | 89 | : QStackedLayout(parent) | ||
88 | {} | 90 | {} | ||
89 | 91 | | |||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | 219 | { | |||
224 | connect(m_paShowTabBar, SIGNAL(toggled(bool)), this, SLOT(toggleShowTabBar())); | 226 | connect(m_paShowTabBar, SIGNAL(toggled(bool)), this, SLOT(toggleShowTabBar())); | ||
225 | m_paShowTabBar->setWhatsThis(i18n("Use this command to show or hide the tabs for the views")); | 227 | m_paShowTabBar->setWhatsThis(i18n("Use this command to show or hide the tabs for the views")); | ||
226 | 228 | | |||
227 | m_paShowPath = new KToggleAction(i18n("Sho&w Path in Titlebar"), this); | 229 | m_paShowPath = new KToggleAction(i18n("Sho&w Path in Titlebar"), this); | ||
228 | actionCollection()->addAction(QStringLiteral("settings_show_full_path"), m_paShowPath); | 230 | actionCollection()->addAction(QStringLiteral("settings_show_full_path"), m_paShowPath); | ||
229 | connect(m_paShowPath, SIGNAL(toggled(bool)), this, SLOT(updateCaption())); | 231 | connect(m_paShowPath, SIGNAL(toggled(bool)), this, SLOT(updateCaption())); | ||
230 | m_paShowPath->setWhatsThis(i18n("Show the complete document path in the window caption")); | 232 | m_paShowPath->setWhatsThis(i18n("Show the complete document path in the window caption")); | ||
231 | 233 | | |||
234 | // Load themes | ||||
235 | actionCollection()->addAction(QStringLiteral("colorscheme_menu"), new KateColorSchemeChooser(actionCollection())); | ||||
236 | | ||||
232 | QAction * a = actionCollection()->addAction(KStandardAction::Back, QStringLiteral("view_prev_tab")); | 237 | QAction * a = actionCollection()->addAction(KStandardAction::Back, QStringLiteral("view_prev_tab")); | ||
233 | a->setText(i18n("&Previous Tab")); | 238 | a->setText(i18n("&Previous Tab")); | ||
234 | a->setWhatsThis(i18n("Focus the previous tab.")); | 239 | a->setWhatsThis(i18n("Focus the previous tab.")); | ||
235 | actionCollection()->setDefaultShortcuts(a, a->shortcuts() << KStandardShortcut::tabPrev()); | 240 | actionCollection()->setDefaultShortcuts(a, a->shortcuts() << KStandardShortcut::tabPrev()); | ||
236 | connect(a, SIGNAL(triggered()), this, SLOT(slotFocusPrevTab())); | 241 | connect(a, SIGNAL(triggered()), this, SLOT(slotFocusPrevTab())); | ||
237 | 242 | | |||
238 | a = actionCollection()->addAction(KStandardAction::Forward, QStringLiteral("view_next_tab")); | 243 | a = actionCollection()->addAction(KStandardAction::Forward, QStringLiteral("view_next_tab")); | ||
239 | a->setText(i18n("&Next Tab")); | 244 | a->setText(i18n("&Next Tab")); | ||
▲ Show 20 Lines • Show All 939 Lines • Show Last 20 Lines |