|
a/src/qtgui/preview_plaintorich.h |
|
b/src/qtgui/preview_plaintorich.h |
|
... |
|
... |
19 |
#include "autoconfig.h"
|
19 |
#include "autoconfig.h"
|
20 |
|
20 |
|
21 |
#include <map>
|
21 |
#include <map>
|
22 |
#include <string>
|
22 |
#include <string>
|
23 |
#include <vector>
|
23 |
#include <vector>
|
24 |
#include MEMORY_INCLUDE
|
24 |
#include <memory>
|
25 |
|
25 |
|
26 |
#include <QThread>
|
26 |
#include <QThread>
|
27 |
#include <QStringList>
|
27 |
#include <QStringList>
|
28 |
|
28 |
|
29 |
#include "plaintorich.h"
|
29 |
#include "plaintorich.h"
|
|
... |
|
... |
56 |
class ToRichThread : public QThread {
|
56 |
class ToRichThread : public QThread {
|
57 |
Q_OBJECT;
|
57 |
Q_OBJECT;
|
58 |
|
58 |
|
59 |
public:
|
59 |
public:
|
60 |
ToRichThread(const string &i, const HighlightData& hd,
|
60 |
ToRichThread(const string &i, const HighlightData& hd,
|
61 |
STD_SHARED_PTR<PlainToRichQtPreview> ptr,
|
61 |
std::shared_ptr<PlainToRichQtPreview> ptr,
|
62 |
QStringList& qrichlst, // Output
|
62 |
QStringList& qrichlst, // Output
|
63 |
QObject *parent = 0);
|
63 |
QObject *parent = 0);
|
64 |
virtual void run();
|
64 |
virtual void run();
|
65 |
|
65 |
|
66 |
private:
|
66 |
private:
|
67 |
const string &m_input;
|
67 |
const string &m_input;
|
68 |
const HighlightData &m_hdata;
|
68 |
const HighlightData &m_hdata;
|
69 |
STD_SHARED_PTR<PlainToRichQtPreview> m_ptr;
|
69 |
std::shared_ptr<PlainToRichQtPreview> m_ptr;
|
70 |
QStringList &m_output;
|
70 |
QStringList &m_output;
|
71 |
};
|
71 |
};
|
72 |
|
72 |
|
73 |
#endif /* _PREVIEW_PLAINTORICH_H_INCLUDED_ */
|
73 |
#endif /* _PREVIEW_PLAINTORICH_H_INCLUDED_ */
|