16#include "kateconfigpage.h"
17#include "katehighlight.h"
18#include "kateviewhelpers.h"
20#include <ktexteditor/attribute.h>
21#include <ktexteditor/document.h>
23#include <sonnet/configwidget.h>
24#include <sonnet/dictionarycombobox.h>
64class TextareaAppearanceConfigWidget;
65class BordersAppearanceConfigWidget;
66class NavigationConfigWidget;
67class EditConfigWidget;
68class IndentationConfigWidget;
69class OpenSaveConfigWidget;
70class OpenSaveConfigAdvWidget;
71class CompletionConfigTab;
72class SpellCheckConfigWidget;
73class StatusbarConfigWidget;
76class KateGotoBar :
public KateViewBarWidget
81 void closed()
override;
100 int m_wheelDelta = 0;
103class KateDictionaryBar :
public KateViewBarWidget
106 explicit KateDictionaryBar(KTextEditor::ViewPrivate *view,
QWidget *
parent =
nullptr);
107 ~KateDictionaryBar()
override;
113 void dictionaryChanged(
const QString &dictionary);
116 KTextEditor::ViewPrivate *m_view;
120class KateIndentConfigTab :
public KateConfigPage
124 ~KateIndentConfigTab()
override;
128 Ui::IndentationConfigWidget *ui;
131 void apply()
override;
132 void reload()
override;
133 void reset()
override
136 void defaults()
override
142 void showWhatsThis(
const QString &text);
145class KateCompletionConfigTab :
public KateConfigPage
149 ~KateCompletionConfigTab()
override;
153 Ui::CompletionConfigTab *ui;
156 void apply()
override;
157 void reload()
override;
158 void reset()
override
161 void defaults()
override
166 void showWhatsThis(
const QString &text);
169class KateEditGeneralConfigTab :
public KateConfigPage
173 ~KateEditGeneralConfigTab()
override;
177 Ui::EditConfigWidget *ui;
179 enum SetOfCharsToEncloseSelection {
188 void apply()
override;
189 void reload()
override;
190 void reset()
override
193 void defaults()
override
198class KateNavigationConfigTab :
public KateConfigPage
202 ~KateNavigationConfigTab()
override;
206 Ui::NavigationConfigWidget *ui;
208 void initMulticursorModifierComboBox();
211 void apply()
override;
212 void reload()
override;
213 void reset()
override
216 void defaults()
override
221class KateSpellCheckConfigTab :
public KateConfigPage
225 ~KateSpellCheckConfigTab()
override;
229 Ui::SpellCheckConfigWidget *ui;
233 void apply()
override;
234 void reload()
override;
235 void reset()
override
238 void defaults()
override
243 void showWhatsThis(
const QString &text);
246class KateEditConfigTab :
public KateConfigPage
250 ~KateEditConfigTab()
override;
252 QString fullName()
const override;
253 QIcon icon()
const override;
256 void apply()
override;
257 void reload()
override;
258 void reset()
override;
259 void defaults()
override;
262 KateEditGeneralConfigTab *editConfigTab;
263 KateNavigationConfigTab *navigationConfigTab;
264 KateIndentConfigTab *indentConfigTab;
265 KateCompletionConfigTab *completionConfigTab;
266 KateSpellCheckConfigTab *spellCheckConfigTab;
267 std::vector<KateConfigPage *> m_inputModeConfigTabs;
270class KateViewDefaultsConfig :
public KateConfigPage
274 ~KateViewDefaultsConfig()
override;
276 QString fullName()
const override;
277 QIcon icon()
const override;
280 void apply()
override;
281 void reload()
override;
282 void reset()
override;
283 void defaults()
override;
286 Ui::TextareaAppearanceConfigWidget *
const textareaUi;
287 Ui::BordersAppearanceConfigWidget *
const bordersUi;
288 Ui::StatusbarConfigWidget *
const statusBarUi;
291class KateSaveConfigTab :
public KateConfigPage
295 ~KateSaveConfigTab()
override;
297 QString fullName()
const override;
298 QIcon icon()
const override;
301 void apply()
override;
302 void reload()
override;
303 void reset()
override;
304 void defaults()
override;
305 void swapFileModeChanged(
int);
311 QCheckBox *replaceTabs, *removeSpaces, *allowEolDetection;
313 class QLabel *blockCountLabel;
316 Ui::OpenSaveConfigWidget *ui;
317 Ui::OpenSaveConfigAdvWidget *uiadv;
318 ModeConfigPage *modeConfigPage;
342 void saveAsTriggered();
343 void ignoreTriggered();
344 void reloadTriggered();
345 void autoReloadTriggered();
346 void closeTriggered();
355 void slotDataAvailable();
Backend of KTextEditor::Document related public KTextEditor interfaces.
ModifiedOnDiskReason
Reasons why a document is modified on disk.
A text widget with KXMLGUIClient that represents a Document.
This dialog will prompt the user for what do with a file that is modified on disk.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
QObject * parent() const const