/***************************************************************************
- * 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 *
#include <panels/panel.h>
-class TerminalInterfaceV2;
+class TerminalInterface;
class QVBoxLayout;
class QWidget;
class StatJob;
}
+namespace KParts {
+ class ReadOnlyPart;
+}
+class KJob;
/**
* @brief Shows the terminal which is synchronized with the URL of the
* active view.
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();
private slots:
void slotMostLocalUrlResult(KJob* job);
+ void slotKonsolePartCurrentDirectoryChanged(const QString& dir);
private:
void changeDir(const KUrl& url);
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