Mercurial > octave-nkf
annotate libqterminal/QTerminal.h @ 15646:f570d3baa6fb
Removed unused code.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Fri, 27 Jan 2012 23:21:08 +0100 |
parents | 0fad530cb34e |
children | a044a259c423 |
rev | line source |
---|---|
15631 | 1 /* Copyright (C) 2008 e_k (e_k@users.sourceforge.net) |
2 | |
3 This library is free software; you can redistribute it and/or | |
4 modify it under the terms of the GNU Library General Public | |
5 License as published by the Free Software Foundation; either | |
6 version 2 of the License, or (at your option) any later version. | |
7 | |
8 This library is distributed in the hope that it will be useful, | |
9 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
11 Library General Public License for more details. | |
12 | |
13 You should have received a copy of the GNU Library General Public License | |
14 along with this library; see the file COPYING.LIB. If not, write to | |
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
16 Boston, MA 02110-1301, USA. | |
17 */ | |
18 | |
19 | |
15633
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
20 #ifndef Q_TERMINAL |
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
21 #define Q_TERMINAL |
15631 | 22 |
23 #include <QtGui> | |
15638
95a3b4c4a729
Renamed classes.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15637
diff
changeset
|
24 #include "SessionModel.h" |
95a3b4c4a729
Renamed classes.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15637
diff
changeset
|
25 #include "SessionView.h" |
15631 | 26 |
27 class QTerminal : public QWidget | |
28 { | |
29 Q_OBJECT | |
30 public: | |
15633
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
31 QTerminal(QWidget *parent = 0); |
15631 | 32 ~QTerminal(); |
33 | |
15633
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
34 void setTerminalFont(QFont &font); |
15631 | 35 void setArgs(QStringList &args); |
36 void setTextCodec(QTextCodec *codec); | |
37 void setSize(int h, int v); | |
15633
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
38 void setHistorySize(int lines); |
15631 | 39 void setReadOnly(bool); |
40 | |
41 signals: | |
42 void finished(); | |
43 | |
44 public slots: | |
45 void copyClipboard(); | |
46 void pasteClipboard(); | |
47 | |
15646
f570d3baa6fb
Removed unused code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15639
diff
changeset
|
48 protected: |
f570d3baa6fb
Removed unused code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15639
diff
changeset
|
49 void focusInEvent(QFocusEvent *focusEvent); |
15631 | 50 virtual void resizeEvent(QResizeEvent *); |
51 | |
52 protected slots: | |
53 void sessionFinished(); | |
54 | |
55 private: | |
15633
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
56 void init(); |
15639
0fad530cb34e
Intermediate commit.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15638
diff
changeset
|
57 SessionView *m_sessionView; |
0fad530cb34e
Intermediate commit.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15638
diff
changeset
|
58 SessionModel *m_sessionModel; |
15631 | 59 }; |
60 | |
15633
36110925f67b
Simplified code.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
15631
diff
changeset
|
61 #endif // Q_TERMINAL |