Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxElastixSyntaxHighlighter.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXELASTIXSYNTAXHIGHLIGHTER_H_
13 #define CXELASTIXSYNTAXHIGHLIGHTER_H_
14 
15 #include <QtWidgets>
16 
17 
18 namespace cx
19 {
20 
28 class ElastixSyntaxHighlighter : public QSyntaxHighlighter
29 {
30 public:
31  ElastixSyntaxHighlighter(QTextDocument* parent);
32  virtual void highlightBlock(const QString &text);
34 private:
35  void highlightTimestamp(const QString &text);
36  void applyFormat(const QString &text, const QTextCharFormat& format, const QString pattern);
37 };
38 
39 } /* namespace cx */
40 
41 #endif /* CXELASTIXSYNTAXHIGHLIGHTER_H_ */
ElastixSyntaxHighlighter(QTextDocument *parent)
virtual void highlightBlock(const QString &text)
Namespace for all CustusX production code.