1 /***************************************************************************
2  *   copyright       : (C) 2003-2017 by Pascal Brachet                     *
3  *   http://www.xm1math.net/texmaker/                                      *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  ***************************************************************************/
11 
12 #ifndef UNICODEVIEW_H
13 #define UNICODEVIEW_H
14 
15 #include <QWidget>
16 #include <QFont>
17 #include <QColor>
18 #include <QStackedWidget>
19 #include <QToolBar>
20 #include <QLabel>
21 #include <QSplitter>
22 #include "lightlatexeditor.h"
23 #include "lightlinenumberwidget.h"
24 #include "lightfindwidget.h"
25 #include "lightgotolinewidget.h"
26 #include "minisplitter.h"
27 
28 class UnicodeView : public QWidget  {
29    Q_OBJECT
30 public:
31 UnicodeView(QWidget *parent, QFont & efont,bool line, QList<QColor> edcolors, QList<QColor> hicolors);
32 ~UnicodeView();
33   LightLatexEditor *editor;
34   QToolBar *centralToolBar;
35   void changeSettings(QFont & new_font,bool line);
36 private:
37   MiniSplitter *splitter;
38   LightLineNumberWidget* m_lineNumberWidget;
39   void setLineNumberWidgetVisible( bool );
40   QStackedWidget *Stack;
41   QLabel* titleLabel;
42   LightFindWidget *findwidget;
43   LightGotoLineWidget *gotolinewidget;
44   QString lastdocument;
45 private slots:
46   void fileSave();
47   void showFind();
48   void showGoto();
49 };
50 
51 #endif
52