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 { NormalMode, InsertMode, VisualMode, VisualLineMode, VisualBlockMode, ReplaceMode };
26
27enum OperationMode { CharWise = 0, LineWise, Block };
28
29const unsigned int EOL = 99999;
30}
31
32#endif // KATEVI_DEFINITIONS_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.