MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / MacroStep

Method MacroStep

src/MacroStep.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138};
139
140MacroStep::MacroStep(Message message, uptr_t wParam, sptr_t lParam) :
141 message(message),
142 wParam(wParam)
143{
144 if (message == Message::ReplaceSel || message == Message::InsertText) {
145 // wParam is 0 for replace, and position for insert
146 this->str = QByteArray(reinterpret_cast<const char*>(lParam));
147 }
148 else if (message == Message::AddText || message == Message::AppendText) {
149 // wParam is length of text
150 this->str = QByteArray(reinterpret_cast<const char*>(lParam), wParam);
151 }
152 else {
153 this->lParam = lParam;
154 }
155}
156
157MacroStep::~MacroStep()
158{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected