diff libqterminal/QTerminal.h @ 15651:845cebf281aa

Added files of QConsole.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Mon, 30 Jan 2012 11:23:13 +0100
parents ba360324035e
children 2d6724358c12
line wrap: on
line diff
--- a/libqterminal/QTerminal.h	Mon Jan 30 02:18:59 2012 +0100
+++ b/libqterminal/QTerminal.h	Mon Jan 30 11:23:13 2012 +0100
@@ -1,67 +1,32 @@
-/*  Copyright (C) 2008 e_k (e_k@users.sourceforge.net)
-    Copyright (C) 2012 Jacob Dawid <jacob.dawid@googlemail.com>
+/*
+
+Copyright (C) 2012 Michael Goffioul.
+Copyright (C) 2012 Jacob Dawid.
 
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-		    
-    This library 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
-    Library General Public License for more details.
-			    
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
-						    
+This file is part of QTerminal.
 
-#ifndef Q_TERMINAL
-#define Q_TERMINAL
-
-#include <QtGui>
-#include "kpty.h"
-#include "TerminalModel.h"
-#include "TerminalView.h"
+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.
 
-class QTerminal : public QWidget
-{
-    Q_OBJECT
-public:
-    QTerminal(QWidget *parent = 0);
-    ~QTerminal();
-    
-    void setTerminalFont(QFont &font); 
-    void setArgs(QStringList &args);
-    void setTextCodec(QTextCodec *codec);
-    void setSize(int h, int v);
-    void setHistorySize(int lines);
-    void setReadOnly(bool);
-            
-signals:
-    void finished();
+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/>.
+
+*/
 
-public slots:
-    void copyClipboard();
-    void pasteClipboard();
-        
-protected:
-    void focusInEvent(QFocusEvent *focusEvent);
-    void showEvent(QShowEvent *);
-    virtual void resizeEvent(QResizeEvent *);
-    
-protected slots:
-    void sessionFinished();        
-    
-private:
-    void initialize();
-    void connectToPty();
+#ifndef QTERMINAL_H
+#define QTERMINAL_H
 
-    TerminalView *m_sessionView;
-    TerminalModel *m_sessionModel;
-    KPty *m_kpty;
-};
+#ifdef Q_OS_UNIX
+	#include "unix/QUnixTerminalImpl.h"
+#else
+	#include "win32/QWinTerminalImpl.h"
+#endif
 
-#endif // Q_TERMINAL
+#endif // QTERMINAL_H