Mercurial > hg > octave-lyh
changeset 15661:ccef87280af6
Added missing file.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 31 Jan 2012 15:36:05 +0100 |
parents | a6df0e2a082a |
children | 5758e0013246 |
files | libqterminal/QTerminalInterface.h |
diffstat | 1 files changed, 49 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/libqterminal/QTerminalInterface.h @@ -0,0 +1,49 @@ +/* + +Copyright (C) 2012 Michael Goffioul. +Copyright (C) 2012 Jacob Dawid. + +This file is part of QTerminal. + +Foobar is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +QTerminal is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Foobar. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#ifndef QTERMINALINTERFACE_H +#define QTERMINALINTERFACE_H + +#include <QWidget> + +class QTerminalInterface : public QWidget +{ + Q_OBJECT +public: + QTerminalInterface(QWidget *parent = 0) : QWidget(parent) { } + virtual ~QTerminalInterface() { } + + virtual void setTerminalFont(QFont &font) = 0; + virtual void setSize(int h, int v) = 0; + virtual void sendText(QString text) = 0; + +public slots: + virtual void copyClipboard() = 0; + virtual void pasteClipboard() = 0; + +protected: + virtual void focusInEvent(QFocusEvent *focusEvent) = 0; + virtual void showEvent(QShowEvent *) = 0; + virtual void resizeEvent(QResizeEvent *) = 0; +}; + +#endif // QTERMINALINTERFACE_H