File indexing completed on 2024-04-21 03:58:06

0001 /*
0002     SPDX-FileCopyrightText: KDE Developers
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KATEVI_DEFINITIONS_H
0008 #define KATEVI_DEFINITIONS_H
0009 
0010 #ifdef Q_OS_MACOS
0011 // From the Qt docs: On macOS, the ControlModifier value corresponds to the Command keys on the
0012 // keyboard, and the MetaModifier value corresponds to the Control keys.
0013 #define CONTROL_MODIFIER Qt::MetaModifier
0014 #define META_MODIFIER Qt::ControlModifier
0015 #else
0016 #define CONTROL_MODIFIER Qt::ControlModifier
0017 #define META_MODIFIER Qt::MetaModifier
0018 #endif
0019 
0020 namespace KateVi
0021 {
0022 /**
0023  * The four vi modes supported by Kate's vi input mode
0024  */
0025 enum ViMode { NormalMode, InsertMode, VisualMode, VisualLineMode, VisualBlockMode, ReplaceMode };
0026 
0027 enum OperationMode { CharWise = 0, LineWise, Block };
0028 
0029 const unsigned int EOL = 99999;
0030 }
0031 
0032 #endif // KATEVI_DEFINITIONS_H