| 1 | /* |
| 2 | * File: LogsWidget.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: July 1, 2010 |
| 6 | * |
| 7 | * Copyright (c) 2010 Jacob Dekel |
| 8 | * $Id: |
| 9 | * |
| 10 | * Multiple QTextEdit wrapper with selection tab |
| 11 | * |
| 12 | * This program is free software: you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation, either version 3 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #ifndef LOGSWIDGET_H_ |
| 28 | #define LOGSWIDGET_H_cxx . . $ `HercStudio/LogWidget.h:28:9`! |
| 29 | |
| 30 | #include <QTextEdit> |
| 31 | #include <QResizeEvent> |
| 32 | #include <QString> |
| 33 | |
| 34 | class QTabWidgetcxx . . $ QTabWidget#; |
| 35 | class PlainLogWidgetcxx . . $ PlainLogWidget# : public QTextEditcxx . . $ QTextEdit# |
| 36 | { |
| 37 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 38 | public: |
| 39 | enum WriteTypecxx . . $ PlainLogWidget#WriteType# |
| 40 | { |
| 41 | MenuCommandcxx . . $ PlainLogWidget#MenuCommand., |
| 42 | Overflowcxx . . $ PlainLogWidget#Overflow., |
| 43 | Shutdowncxx . . $ PlainLogWidget#Shutdown. |
| 44 | } ; |
| 45 | PlainLogWidgetcxx . . $ PlainLogWidget#PlainLogWidget(d4d784ff5f449b0d).(QWidgetcxx . . $ QWidget# * parent, const char * suffix=""); |
| 46 | virtual void appendcxx . . $ PlainLogWidget#append(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# & text); |
| 47 | virtual QStringcxx . . $ QString# toPlainTextcxx . . $ PlainLogWidget#toPlainText(4365c3963150523e).(); |
| 48 | virtual bool isOSLogcxx . . $ PlainLogWidget#isOSLog(c9857a73d68e59ba).(); |
| 49 | virtual void writeToFilecxx . . $ PlainLogWidget#writeToFile(c5c4b58b43b7b49).(WriteTypecxx . . $ PlainLogWidget#WriteType# type); |
| 50 | virtual void preferencesChangedcxx . . $ PlainLogWidget#preferencesChanged(49f6e7a06ebc5aa8).(); |
| 51 | virtual void setIpledcxx . . $ PlainLogWidget#setIpled(b45ddcbc8423892c).(bool ipled); |
| 52 | virtual void clearcxx . . $ PlainLogWidget#clear(49f6e7a06ebc5aa8).(); |
| 53 | virtual bool textIsSelectedcxx . . $ PlainLogWidget#textIsSelected(c9857a73d68e59ba).(); // text to be copied available |
| 54 | virtual QStringcxx . . $ QString# copySelectedTextcxx . . $ PlainLogWidget#copySelectedText(4365c3963150523e).(); // copies selected text to clipboard |
| 55 | |
| 56 | |
| 57 | protected: |
| 58 | |
| 59 | void getTimeStampcxx . . $ PlainLogWidget#getTimeStamp(b45ddcbc8423892c).(bool withDate); |
| 60 | void setLogFileNamecxx . . $ PlainLogWidget#setLogFileName(4c89b026053e4d32). (QStringcxx . . $ QString#& suffix); |
| 61 | char mTimeStampcxx . . $ PlainLogWidget#mTimeStamp.[64]; |
| 62 | int mLogFileLinescxx . . $ PlainLogWidget#mLogFileLines.; |
| 63 | bool mIpledcxx . . $ PlainLogWidget#mIpled.; |
| 64 | bool mSaveLogcxx . . $ PlainLogWidget#mSaveLog.; |
| 65 | QStringcxx . . $ QString# mLogFileNamecxx . . $ PlainLogWidget#mLogFileName.; |
| 66 | QColorcxx . . $ QColor# mGreencxx . . $ PlainLogWidget#mGreen., mYellowcxx . . $ PlainLogWidget#mYellow., mRedcxx . . $ PlainLogWidget#mRed., mBlackcxx . . $ PlainLogWidget#mBlack., mWhitecxx . . $ PlainLogWidget#mWhite.; |
| 67 | long mLinesWrittencxx . . $ PlainLogWidget#mLinesWritten.; |
| 68 | bool mDarkBackgroundcxx . . $ PlainLogWidget#mDarkBackground.; |
| 69 | bool mSelectedTextExistscxx . . $ PlainLogWidget#mSelectedTextExists.; |
| 70 | |
| 71 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 72 | void keepSelectioncxx . . $ PlainLogWidget#keepSelection(b45ddcbc8423892c).(bool selected); |
| 73 | |
| 74 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 75 | void logCopycxx . . $ PlainLogWidget#logCopy(49f6e7a06ebc5aa8).(); |
| 76 | }; |
| 77 | |
| 78 | |
| 79 | class LogWidgetcxx . . $ LogWidget# : public PlainLogWidgetcxx . . $ PlainLogWidget# |
| 80 | { |
| 81 | Q_OBJECTcxx . . $ QString#QString(e1217c004a86c950). |
| 82 | public: |
| 83 | LogWidgetcxx . . $ LogWidget#LogWidget(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# * parent); |
| 84 | virtual ~cxx . . $ LogWidget#`~LogWidget`(49f6e7a06ebc5aa8).LogWidgetcxx . . $ LogWidget#(); |
| 85 | |
| 86 | int activecxx . . $ LogWidget#active(b126dc7c1de90089).(); |
| 87 | void setActivecxx . . $ LogWidget#setActive(d4f767463ce0a6b3).(int i); |
| 88 | void setReadOnlycxx . . $ LogWidget#setReadOnly(b45ddcbc8423892c).(bool readOnly); |
| 89 | void setFontcxx . . $ LogWidget#setFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont# & font); |
| 90 | void setTextBackgroundColorcxx . . $ LogWidget#setTextBackgroundColor(129a55e114526ad3). (const QColorcxx . . $ QColor# &); |
| 91 | void setTextColorcxx . . $ LogWidget#setTextColor(129a55e114526ad3). (const QColorcxx . . $ QColor# &); |
| 92 | QTabWidgetcxx . . $ QTabWidget# * tabWidgetcxx . . $ LogWidget#tabWidget(b0d9db5e8d60deb8).(); |
| 93 | virtual bool emptycxx . . $ LogWidget#empty(c9857a73d68e59ba).(); |
| 94 | virtual void clearcxx . . $ LogWidget#clear(49f6e7a06ebc5aa8).(); |
| 95 | virtual bool textIsSelectedcxx . . $ LogWidget#textIsSelected(c9857a73d68e59ba).(); |
| 96 | virtual QStringcxx . . $ QString# copySelectedTextcxx . . $ LogWidget#copySelectedText(4365c3963150523e).(); |
| 97 | |
| 98 | virtual void appendcxx . . $ LogWidget#append(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# & text); |
| 99 | virtual QStringcxx . . $ QString# toPlainTextcxx . . $ LogWidget#toPlainText(4365c3963150523e).(); |
| 100 | virtual bool isOSLogcxx . . $ LogWidget#isOSLog(c9857a73d68e59ba).(); |
| 101 | virtual void writeToFilecxx . . $ LogWidget#writeToFile(c5c4b58b43b7b49).(PlainLogWidgetcxx . . $ PlainLogWidget#::WriteTypecxx . . $ PlainLogWidget#WriteType# writeType); |
| 102 | virtual void preferencesChangedcxx . . $ LogWidget#preferencesChanged(49f6e7a06ebc5aa8).(); |
| 103 | virtual void setIpledcxx . . $ LogWidget#setIpled(b45ddcbc8423892c).(bool ipled); |
| 104 | |
| 105 | private: |
| 106 | const int cHercIndexcxx . . $ LogWidget#cHercIndex.; |
| 107 | const int cOsIndexcxx . . $ LogWidget#cOsIndex.; |
| 108 | QTabWidgetcxx . . $ QTabWidget# * mTabWidgetcxx . . $ LogWidget#mTabWidget.; |
| 109 | PlainLogWidgetcxx . . $ PlainLogWidget# * mLogscxx . . $ LogWidget#mLogs.[2]; |
| 110 | int mActivecxx . . $ LogWidget#mActive.; |
| 111 | bool mIpledcxx . . $ LogWidget#mIpled.; |
| 112 | }; |
| 113 | |
| 114 | #endif /* LOGSWIDGET_H_ */ |