KTextEditor

definitions.h
1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_DEFINITIONS_H
8#define KATEVI_DEFINITIONS_H
9
10#ifdef Q_OS_MACOS
11// From the Qt docs: On macOS, the ControlModifier value corresponds to the Command keys on the
12// keyboard, and the MetaModifier value corresponds to the Control keys.
13#define CONTROL_MODIFIER Qt::MetaModifier
14#define META_MODIFIER Qt::ControlModifier
15#else
16#define CONTROL_MODIFIER Qt::ControlModifier
17#define META_MODIFIER Qt::MetaModifier
18#endif
19
20namespace KateVi
21{
22/**
23 * The four vi modes supported by Kate's vi input mode
24 */
25enum ViMode {
26 NormalMode,
27 InsertMode,
28 VisualMode,
29 VisualLineMode,
30 VisualBlockMode,
31 ReplaceMode
32};
33
34enum OperationMode {
35 CharWise = 0,
36 LineWise,
37 Block
38};
39
40const unsigned int EOL = 99999;
41}
42
43#endif // KATEVI_DEFINITIONS_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.