Commit 74631635 authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

Add copyInputChanged() and readOnlyChanged() signals

parent 416e6629
......@@ -1075,6 +1075,7 @@ void SessionController::copyInputToAllTabs()
_copyToGroup->setMasterMode(SessionGroup::CopyInputToAll);
snapshot();
emit copyInputChanged(this);
}
void SessionController::copyInputToSelectedTabs()
......@@ -1117,6 +1118,7 @@ void SessionController::copyInputToSelectedTabs()
_copyToGroup->setMasterStatus(_session, true);
_copyToGroup->setMasterMode(SessionGroup::CopyInputToAll);
snapshot();
emit copyInputChanged(this);
}
}
......@@ -1139,6 +1141,7 @@ void SessionController::copyInputToNone()
delete _copyToGroup;
_copyToGroup = nullptr;
snapshot();
emit copyInputChanged(this);
}
void SessionController::searchClosed()
......@@ -1651,6 +1654,7 @@ void SessionController::sessionReadOnlyChanged() {
if (terminalDisplay != _view.data()) {
terminalDisplay->updateReadOnlyState(isReadOnly());
}
emit readOnlyChanged(this);
}
}
......
......@@ -92,6 +92,10 @@ Q_SIGNALS:
void activity(ViewProperties *item);
/** Emitted when notification for a view changes */
void notificationChanged(ViewProperties *item, Session::Notification notification, bool enabled);
/** Emitted when read only state changes */
void readOnlyChanged(ViewProperties *item);
/** Emitted when "copy input" state changes */
void copyInputChanged(ViewProperties *item);
public Q_SLOTS:
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment