Mercurial > octave-nkf
comparison libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.h @ 19628:fe689210525c gui-release
maint: Periodic merge of stable to gui-release.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:05:42 -0500 |
parents | 6e81b59d657c 446c46af4b42 |
children | 0e1f5a750d00 |
comparison
equal
deleted
inserted
replaced
19624:6d75f1683ce8 | 19628:fe689210525c |
---|---|
3 | 3 |
4 This library is free software; you can redistribute it and/or | 4 This library is free software; you can redistribute it and/or |
5 modify it under the terms of the GNU Library General Public | 5 modify it under the terms of the GNU Library General Public |
6 License as published by the Free Software Foundation; either | 6 License as published by the Free Software Foundation; either |
7 version 2 of the License, or (at your option) any later version. | 7 version 2 of the License, or (at your option) any later version. |
8 | 8 |
9 This library is distributed in the hope that it will be useful, | 9 This library is distributed in the hope that it will be useful, |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 Library General Public License for more details. | 12 Library General Public License for more details. |
13 | 13 |
14 You should have received a copy of the GNU Library General Public License | 14 You should have received a copy of the GNU Library General Public License |
15 along with this library; see the file COPYING.LIB. If not, write to | 15 along with this library; see the file COPYING.LIB. If not, write to |
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 Boston, MA 02110-1301, USA. | 17 Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
20 | 20 |
21 #ifndef Q_UNIXTERMINALIMPL | 21 #ifndef Q_UNIXTERMINALIMPL |
22 #define Q_UNIXTERMINALIMPL | 22 #define Q_UNIXTERMINALIMPL |
23 | 23 |
24 #include <QtGui> | 24 #include <QtGui> |
35 | 35 |
36 public: | 36 public: |
37 QUnixTerminalImpl(QWidget *parent = 0); | 37 QUnixTerminalImpl(QWidget *parent = 0); |
38 virtual ~QUnixTerminalImpl(); | 38 virtual ~QUnixTerminalImpl(); |
39 | 39 |
40 void setTerminalFont(const QFont &font); | 40 void setTerminalFont(const QFont &font); |
41 void setSize(int h, int v); | 41 void setSize(int h, int v); |
42 void sendText(const QString& text); | 42 void sendText(const QString& text); |
43 | 43 |
44 void setCursorType(CursorType type, bool blinking); | 44 void setCursorType(CursorType type, bool blinking); |
45 | 45 |
55 void pasteClipboard(); | 55 void pasteClipboard(); |
56 void selectAll(); | 56 void selectAll(); |
57 | 57 |
58 protected: | 58 protected: |
59 void showEvent(QShowEvent *); | 59 void showEvent(QShowEvent *); |
60 virtual void resizeEvent(QResizeEvent *); | 60 virtual void resizeEvent(QResizeEvent *); |
61 | 61 |
62 private: | 62 private: |
63 void initialize(); | 63 void initialize(); |
64 void connectToPty(); | 64 void connectToPty(); |
65 | 65 |