12 #ifndef CXFILEPREVIEWWIDGET_H_
13 #define CXFILEPREVIEWWIDGET_H_
15 #include "cxResourceWidgetsExport.h"
21 #include <QSyntaxHighlighter>
45 template<
class SYNTAXHIGHLIGHTER>
48 delete mSyntaxHighlighter;
49 mSyntaxHighlighter =
new SYNTAXHIGHLIGHTER(mTextDocument);
53 virtual void previewFileSlot(
const QString& absoluteFilePath);
55 void textChangedSlot();
58 void fileinterfaceChanged();
62 void createAndAddEditorLayout(QGridLayout *gridLayout,
int row);
66 QTextDocument* mTextDocument;
69 QSyntaxHighlighter* mSyntaxHighlighter;
71 QPushButton* mSaveButton;