Changeset View
Changeset View
Standalone View
Standalone View
src/view/katestatusbar.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
65 | 65 | | |||
66 | public Q_SLOTS: | 66 | public Q_SLOTS: | ||
67 | void updateStatus(); | 67 | void updateStatus(); | ||
68 | 68 | | |||
69 | void viewModeChanged(); | 69 | void viewModeChanged(); | ||
70 | 70 | | |||
71 | void cursorPositionChanged(); | 71 | void cursorPositionChanged(); | ||
72 | 72 | | |||
73 | void updateDictionary(); | ||||
74 | | ||||
73 | void selectionChanged(); | 75 | void selectionChanged(); | ||
74 | 76 | | |||
75 | void modifiedChanged(); | 77 | void modifiedChanged(); | ||
76 | 78 | | |||
77 | void documentConfigChanged(); | 79 | void documentConfigChanged(); | ||
78 | 80 | | |||
79 | void modeChanged(); | 81 | void modeChanged(); | ||
80 | 82 | | |||
81 | void wordCountChanged(int, int, int, int); | 83 | void wordCountChanged(int, int, int, int); | ||
82 | 84 | | |||
83 | void toggleWordCount(bool on); | 85 | void toggleWordCount(bool on); | ||
84 | 86 | | |||
85 | void configChanged(); | 87 | void configChanged(); | ||
86 | 88 | | |||
89 | void changeDictionary(QAction *action); | ||||
90 | | ||||
87 | protected: | 91 | protected: | ||
88 | bool eventFilter(QObject *obj, QEvent *event) override; | 92 | bool eventFilter(QObject *obj, QEvent *event) override; | ||
89 | void contextMenuEvent(QContextMenuEvent *event) override; | 93 | void contextMenuEvent(QContextMenuEvent *event) override; | ||
90 | 94 | | |||
91 | private: | 95 | private: | ||
92 | KTextEditor::ViewPrivate *const m_view; | 96 | KTextEditor::ViewPrivate *const m_view; | ||
93 | StatusBarButton *m_cursorPosition = nullptr; | 97 | StatusBarButton *m_cursorPosition = nullptr; | ||
94 | QString m_wordCount; | 98 | QString m_wordCount; | ||
95 | StatusBarButton *m_modified = nullptr; | 99 | StatusBarButton *m_modified = nullptr; | ||
96 | StatusBarButton *m_inputMode = nullptr; | 100 | StatusBarButton *m_inputMode = nullptr; | ||
97 | StatusBarButton *m_mode = nullptr; | 101 | StatusBarButton *m_mode = nullptr; | ||
98 | StatusBarButton *m_encoding = nullptr; | 102 | StatusBarButton *m_encoding = nullptr; | ||
99 | StatusBarButton *m_tabsIndent = nullptr; | 103 | StatusBarButton *m_tabsIndent = nullptr; | ||
104 | StatusBarButton *m_dictionary = nullptr; | ||||
105 | QActionGroup *m_dictionaryGroup = nullptr; | ||||
106 | KateStatusBarOpenUpMenu *m_dictionaryMenu = nullptr; | ||||
100 | QMenu *m_indentSettingsMenu; | 107 | QMenu *m_indentSettingsMenu; | ||
101 | unsigned int m_modifiedStatus; | 108 | unsigned int m_modifiedStatus; | ||
102 | unsigned int m_selectionMode; | 109 | unsigned int m_selectionMode; | ||
103 | QActionGroup *m_tabGroup; | 110 | QActionGroup *m_tabGroup; | ||
104 | QActionGroup *m_indentGroup; | 111 | QActionGroup *m_indentGroup; | ||
105 | QAction *m_mixedAction; | 112 | QAction *m_mixedAction; | ||
106 | QAction *m_hardAction; | 113 | QAction *m_hardAction; | ||
107 | QAction *m_softAction; | 114 | QAction *m_softAction; | ||
Show All 15 Lines |