Changeset View
Changeset View
Standalone View
Standalone View
src/utils/katesedcmd.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
122 | 122 | | |||
123 | private: | 123 | private: | ||
124 | const QString m_findPattern; | 124 | const QString m_findPattern; | ||
125 | const QString m_replacePattern; | 125 | const QString m_replacePattern; | ||
126 | bool m_onlyOnePerLine; | 126 | bool m_onlyOnePerLine; | ||
127 | int m_endLine; | 127 | int m_endLine; | ||
128 | KTextEditor::DocumentPrivate *m_doc; | 128 | KTextEditor::DocumentPrivate *m_doc; | ||
129 | KateRegExpSearch m_regExpSearch; | 129 | KateRegExpSearch m_regExpSearch; | ||
130 | Qt::CaseSensitivity m_caseSensitive; | ||||
130 | 131 | | |||
131 | int m_numReplacementsDone; | 132 | int m_numReplacementsDone; | ||
132 | int m_numLinesTouched; | 133 | int m_numLinesTouched; | ||
133 | int m_lastChangedLineNum; | 134 | int m_lastChangedLineNum; | ||
134 | 135 | | |||
135 | KTextEditor::Cursor m_currentSearchPos; | 136 | KTextEditor::Cursor m_currentSearchPos; | ||
136 | const QVector<KTextEditor::Range> fullCurrentMatch(); | 137 | const QVector<KTextEditor::Range> fullCurrentMatch(); | ||
137 | QString replacementTextForCurrentMatch(); | 138 | QString replacementTextForCurrentMatch(); | ||
138 | }; | 139 | }; | ||
139 | 140 | | |||
140 | protected: | 141 | protected: | ||
141 | virtual bool interactiveSedReplace(KTextEditor::ViewPrivate *kateView, QSharedPointer<InteractiveSedReplacer> interactiveSedReplace); | 142 | virtual bool interactiveSedReplace(KTextEditor::ViewPrivate *kateView, QSharedPointer<InteractiveSedReplacer> interactiveSedReplace); | ||
142 | }; | 143 | }; | ||
143 | 144 | | |||
144 | } // namespace KateCommands | 145 | } // namespace KateCommands | ||
145 | #endif | 146 | #endif |