8 #include <QPlainTextEdit>
55 MacroReaderThread(
int macNum, QString macPath, QPlainTextEdit* macBox, QPlainTextEdit* macText) {
64 void run () Q_DECL_OVERRIDE;
114 void startWorkInAThread(
int macroNumber, QString macroPath, QPlainTextEdit* macBox, QPlainTextEdit* macText);
126 #endif // MACROREADER_H
The MacroReader class creates a worker thread object. It does a connect do delayed deletion of thread...
QPlainTextEdit * macroText
macroText is the other textpane used in the UI while typing new macros. That variable is used for set...
QString macroPath
macroPath holds the path for the notify channel
void run() Q_DECL_OVERRIDE
run is the notification reader main loop.
The MacroReaderThread class is responsible for reading Macro Key Values. It is created as a separate ...
MacroReaderThread(int macNum, QString macPath, QPlainTextEdit *macBox, QPlainTextEdit *macText)
MacroReaderThread saves the four params to local vars with similar varNames.
QPlainTextEdit * macroBox
macroBox will receive the Macro Key Values sent from the keyboard while defining a new macro...
int macroNumber
macroNumber Filenames of nofity channels have the structure <input-device-path>/ckb1/notify<number> F...
MacroReaderThread * macroReaderThread
void readMacro(QString line)
readMacro is called for each line received by the worker thread. The method ist called via signal (me...