┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/terminal/terminalpanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/panels/terminal/terminalpanel.h')
-rw-r--r--src/panels/terminal/terminalpanel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panels/terminal/terminalpanel.h b/src/panels/terminal/terminalpanel.h
index 8eee3c10f..0aaf921c0 100644
--- a/src/panels/terminal/terminalpanel.h
+++ b/src/panels/terminal/terminalpanel.h
@@ -55,6 +55,8 @@ public:
public Q_SLOTS:
void terminalExited();
void dockVisibilityChanged();
+ void switchSync(bool syncUrl);
+ void setSwitchTerminalUrlSyncAction(QAction *urlToggle);
Q_SIGNALS:
void hideTerminalPanel();
@@ -77,11 +79,13 @@ private:
enum class HistoryPolicy { AddToHistory, SkipHistory };
void changeDir(const QUrl &url);
+ void emitUrlChanged(const QUrl &url);
void sendCdToTerminal(const QString &path, HistoryPolicy addToHistory = HistoryPolicy::AddToHistory);
void sendCdToTerminalKIOFuse(const QUrl &url);
private:
bool m_clearTerminal;
+ bool m_syncUrl;
KIO::StatJob *m_mostLocalUrlJob;
QVBoxLayout *m_layout;
@@ -92,6 +96,7 @@ private:
QString m_konsolePartCurrentDirectory;
QQueue<QString> m_sendCdToTerminalHistory;
org::kde::KIOFuse::VFS m_kiofuseInterface;
+ QAction *m_switchTerminalUrlSyncAction;
};
#endif // TERMINALPANEL_H