diff options
| author | Frank Reininghaus <[email protected]> | 2012-04-26 08:31:46 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-04-26 08:31:59 +0200 |
| commit | 12c239ae149cfed254066248f411b114743f5836 (patch) | |
| tree | f6b27cede4b07376bcfaa71d48c7881326583881 /src/panels/terminal/terminalpanel.h | |
| parent | 640696db728ad3163384e19f789ebc022d183da6 (diff) | |
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
Diffstat (limited to 'src/panels/terminal/terminalpanel.h')
| -rw-r--r-- | src/panels/terminal/terminalpanel.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
