| 1 | /* |
| 2 | * File: FreeConfigurationEditor.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Apr 19, 2011 |
| 6 | * |
| 7 | * Copyright (c) 2011 Jacob Dekel. |
| 8 | * Adapted from Nokia sample CodeEditor - |
| 9 | * (Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)) |
| 10 | * $Id: TerminalProperties.h 67 2010-09-13 14:06:31Z dekeljacob $ |
| 11 | * |
| 12 | * This object manages the terminal configuration properties |
| 13 | * |
| 14 | * This program is free software: you can redistribute it and/or modify |
| 15 | * it under the terms of the GNU General Public License as published by |
| 16 | * the Free Software Foundation, either version 3 of the License, or |
| 17 | * (at your option) any later version. |
| 18 | * |
| 19 | * This program is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License |
| 25 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 26 | * |
| 27 | */ |
| 28 | |
| 29 | #ifndef FREECONFIGURATIONEDITOR_H |
| 30 | #define FREECONFIGURATIONEDITOR_Hcxx . . $ `HercConfiguration/ConfigurationFreeEditor.h:30:9`! |
| 31 | |
| 32 | #include <QPlainTextEdit> |
| 33 | |
| 34 | class ConfigurationFreeEditorcxx . . $ ConfigurationFreeEditor# : public QPlainTextEditcxx . . $ QPlainTextEdit# |
| 35 | { |
| 36 | Q_OBJECTcxx . . $ QString#QString(e1217c004a86c950). |
| 37 | public: |
| 38 | explicit ConfigurationFreeEditorcxx . . $ ConfigurationFreeEditor#ConfigurationFreeEditor(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 39 | void lineNumberAreaPaintEventcxx . . $ ConfigurationFreeEditor#lineNumberAreaPaintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent# *event); |
| 40 | int lineNumberAreaWidthcxx . . $ ConfigurationFreeEditor#lineNumberAreaWidth(b126dc7c1de90089).(); |
| 41 | |
| 42 | protected: |
| 43 | void resizeEventcxx . . $ ConfigurationFreeEditor#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent# *event); |
| 44 | |
| 45 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 46 | void updateLineNumberAreaWidthcxx . . $ ConfigurationFreeEditor#updateLineNumberAreaWidth(d4f767463ce0a6b3).(int newBlockCount); |
| 47 | void highlightCurrentLinecxx . . $ ConfigurationFreeEditor#highlightCurrentLine(49f6e7a06ebc5aa8).(); |
| 48 | void updateLineNumberAreacxx . . $ ConfigurationFreeEditor#updateLineNumberArea(6958f325edff4c53).(const QRectcxx . . $ QRect# &, int); |
| 49 | |
| 50 | private: |
| 51 | QWidgetcxx . . $ QWidget# *mLineNumberAreacxx . . $ ConfigurationFreeEditor#mLineNumberArea.; |
| 52 | }; |
| 53 | |
| 54 | class LineNumberAreacxx . . $ LineNumberArea# : public QWidgetcxx . . $ QWidget# |
| 55 | { |
| 56 | public: |
| 57 | LineNumberAreacxx . . $ LineNumberArea#LineNumberArea(f9321fa66e8053).(ConfigurationFreeEditorcxx . . $ ConfigurationFreeEditor# *editor) : QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(editor) { |
| 58 | freeConfigurationEditorcxx . . $ LineNumberArea#freeConfigurationEditor. = editor; |
| 59 | } |
| 60 | |
| 61 | QSizecxx . . $ QSize# sizeHintcxx . . $ LineNumberArea#sizeHint(4b3b776e5ee2b367).() const { |
| 62 | return QSizecxx . . $ QSize#QSize(3e454b8ccf442868).(freeConfigurationEditorcxx . . $ LineNumberArea#freeConfigurationEditor.->lineNumberAreaWidthcxx . . $ ConfigurationFreeEditor#lineNumberAreaWidth(b126dc7c1de90089).(), 0); |
| 63 | } |
| 64 | |
| 65 | protected: |
| 66 | void paintEventcxx . . $ LineNumberArea#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent# *event) { |
| 67 | freeConfigurationEditorcxx . . $ LineNumberArea#freeConfigurationEditor.->lineNumberAreaPaintEventcxx . . $ ConfigurationFreeEditor#lineNumberAreaPaintEvent(f239c9e85d61a220).(event); |
| 68 | } |
| 69 | |
| 70 | private: |
| 71 | ConfigurationFreeEditorcxx . . $ ConfigurationFreeEditor# *freeConfigurationEditorcxx . . $ LineNumberArea#freeConfigurationEditor.; |
| 72 | }; |
| 73 | |
| 74 | #endif // FREECONFIGURATIONEDITOR_H |