]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/terminal/terminalpanel.h
Fix includes
[dolphin.git] / src / panels / terminal / terminalpanel.h
index b9508279ec94f58825b333ed27920b60158b0afe..6a0b38f5b5a218be46f7dec28f07a415d6bcda97 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2007-2010 by Peter Penz <peter.penz@gmx.at>             *
+ *   Copyright (C) 2007-2010 by Peter Penz <peter.penz19@gmail.com>        *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
@@ -22,7 +22,7 @@
 
 #include <panels/panel.h>
 
-class TerminalInterfaceV2;
+class TerminalInterface;
 class QVBoxLayout;
 class QWidget;
 
@@ -30,6 +30,10 @@ namespace KIO {
     class StatJob;
 }
 
+namespace KParts {
+    class ReadOnlyPart;
+}
+class KJob;
 /**
  * @brief Shows the terminal which is synchronized with the URL of the
  *        active view.
@@ -42,15 +46,18 @@ public:
     TerminalPanel(QWidget* parent = 0);
     virtual ~TerminalPanel();
 
-    /** @see QWidget::sizeHint() */
-    virtual QSize sizeHint() const;
-
 public slots:
     void terminalExited();
+    void dockVisibilityChanged();
 
 signals:
     void hideTerminalPanel();
 
+    /**
+     * Is emitted if the an URL change is requested.
+     */
+    void changeUrl(const KUrl& url);
+
 protected:
     /** @see Panel::urlChanged() */
     virtual bool urlChanged();
@@ -60,6 +67,7 @@ protected:
 
 private slots:
     void slotMostLocalUrlResult(KJob* job);
+    void slotKonsolePartCurrentDirectoryChanged(const QString& dir);
 
 private:
     void changeDir(const KUrl& url);
@@ -70,8 +78,10 @@ private:
     KIO::StatJob* m_mostLocalUrlJob;
 
     QVBoxLayout* m_layout;
-    TerminalInterfaceV2* m_terminal;
+    TerminalInterface* m_terminal;
     QWidget* m_terminalWidget;
+    KParts::ReadOnlyPart* m_konsolePart;
+    QString m_konsolePartCurrentDirectory;
 };
 
 #endif // TERMINALPANEL_H