FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
code_editor.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #pragma once
17 
18 #include "gui.h"
19 #include <QtCore/QObject>
20 // QtWidgets
21 #include <QPlainTextEdit>
22 
23 QT_BEGIN_NAMESPACE
24 class QResizeEvent;
25 QT_END_NAMESPACE
26 
27 namespace qtgui {
28 
29 class QTTOOLS_GUI_EXPORT CodeEditor : public QPlainTextEdit
30 {
31  Q_OBJECT
32 
33 public:
34  CodeEditor(QWidget *parent = NULL);
35  ~CodeEditor();
36 
37 protected:
38  void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
39 
40 private:
41  class LineNumberArea;
42  class Private;
43  Private* const d;
44 };
45 
46 } // namespace qtgui
47 
Definition: abstract_length_editor.cpp:20
#define QTTOOLS_GUI_EXPORT
Definition: gui.h:27
Provides a text editor with a line numbering bar.
Definition: code_editor.h:29