From 12c239ae149cfed254066248f411b114743f5836 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Thu, 26 Apr 2012 08:31:46 +0200 Subject: Update the view when changing the directory using 'cd' in the terminal Thanks to Jekyll Wu for helping to implement this feature! FEATURE: 156732 FIXED-IN: 4.9.0 --- src/panels/terminal/terminalpanel.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/panels/terminal/terminalpanel.h') diff --git a/src/panels/terminal/terminalpanel.h b/src/panels/terminal/terminalpanel.h index cc27212e8..374476e1c 100644 --- a/src/panels/terminal/terminalpanel.h +++ b/src/panels/terminal/terminalpanel.h @@ -30,6 +30,10 @@ namespace KIO { class StatJob; } +namespace KParts { + class ReadOnlyPart; +} + /** * @brief Shows the terminal which is synchronized with the URL of the * active view. @@ -49,6 +53,11 @@ public slots: signals: void hideTerminalPanel(); + /** + * Is emitted if the an URL change is requested. + */ + void changeUrl(const KUrl& url); + protected: /** @see Panel::urlChanged() */ virtual bool urlChanged(); @@ -58,6 +67,7 @@ protected: private slots: void slotMostLocalUrlResult(KJob* job); + void slotKonsolePartCurrentDirectoryChanged(const QString& dir); private: void changeDir(const KUrl& url); @@ -70,6 +80,8 @@ private: QVBoxLayout* m_layout; TerminalInterfaceV2* m_terminal; QWidget* m_terminalWidget; + KParts::ReadOnlyPart* m_konsolePart; + QString m_konsolePartCurrentDirectory; }; #endif // TERMINALPANEL_H -- cgit v1.3.1