8#ifndef KATEVI_COMMAND_H
9#define KATEVI_COMMAND_H
11#include <QRegularExpression>
22 SHOULD_NOT_RESET = 0x4,
24 IS_NOT_LINEWISE = 0x10,
25 CAN_CHANGE_WHOLE_VISUAL_MODE_SELECTION = 0x20,
27 CAN_LAND_INSIDE_FOLDING_RANGE = 0x40
33 Command(
const QString &pattern,
bool (NormalViMode::*pt2Func)(),
unsigned int flags = 0);
36 bool matches(
const QString &pattern)
const;
37 bool matchesExact(
const QString &pattern)
const;
38 bool execute(NormalViMode *mode)
const;
43 bool isRegexPattern()
const
45 return m_flags & REGEX_PATTERN;
47 bool needsMotion()
const
49 return m_flags & NEEDS_MOTION;
51 bool shouldReset()
const
53 return !(m_flags & SHOULD_NOT_RESET);
57 return m_flags & IS_CHANGE;
59 bool isLineWise()
const
61 return !(m_flags & IS_NOT_LINEWISE);
63 bool canChangeWholeVisualModeSelection()
const
65 return m_flags & CAN_CHANGE_WHOLE_VISUAL_MODE_SELECTION;
67 bool canLandInsideFoldingRange()
const
69 return m_flags & CAN_LAND_INSIDE_FOLDING_RANGE;
75 const unsigned int m_flags;
76 bool (NormalViMode::*m_ptr2commandMethod)();
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.