Konsole
Part.cpp
Go to the documentation of this file.
360 connect(activeSession(), SIGNAL(stateChanged(int)), this, SLOT(sessionStateChanged(int)), Qt::UniqueConnection);
373 connect(activeSession(), SIGNAL(stateChanged(int)), this, SLOT(sessionStateChanged(int)), Qt::UniqueConnection);
A dialog which lists the available types of profiles and allows the user to add new profiles...
Definition: ManageProfilesDialog.h:50
Definition: Emulation.h:65
void overrideShortcut(QKeyEvent *event, bool &override)
Emitted when the key sequence for a shortcut, which is also a valid terminal key sequence, is pressed while the terminal has focus.
static SessionManager * instance()
Returns the session manager instance.
Definition: SessionManager.cpp:69
void setMonitorSilenceEnabled(bool enabled)
Toggles monitoring for silence in the active session.
Definition: Part.cpp:354
Q_SCRIPTABLE void setMonitorActivity(bool)
Enables monitoring for activity in the session.
Definition: Session.cpp:1101
Qt::KeyboardModifiers modifiers() const
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
Definition: Session.h:78
Provides the menu actions to manipulate a single terminal session and view pair.
Definition: SessionController.h:85
Q_SCRIPTABLE int foregroundProcessId()
Returns the process id of the terminal's foreground process.
Definition: Session.cpp:1393
void setShortcutContext(Qt::ShortcutContext context)
virtual void startProgram(const QString &program, const QStringList &arguments)
Reimplemented from TerminalInterface.
Definition: Part.cpp:131
void showManageProfilesDialog(QWidget *parent)
Shows the dialog used to manage profiles in Konsole.
Definition: Part.cpp:295
void setShortcutEditorVisible(bool visible)
Specifies whether the shortcut editor should be show.
Definition: ManageProfilesDialog.cpp:441
virtual QString foregroundProcessName()
Reimplemented from TerminalInterfaceV2.
Definition: Part.cpp:193
QPointer< TerminalDisplay > view()
Returns the view associated with this controller.
Definition: SessionController.h:112
void showEditCurrentProfileDialog(QWidget *parent)
Shows the dialog used to edit the profile used by the active session.
Definition: Part.cpp:303
void setMonitorActivityEnabled(bool enabled)
Toggles monitoring for activity in the active session.
Definition: Part.cpp:367
void setProgram(const QString &program)
Sets the program to be executed when run() is called.
Definition: Session.cpp:267
QString homePath()
void activityDetected()
Emitted when activity has been detected in the active session.
QString currentWorkingDirectory()
Returns the current directory of the foreground process in the session.
Definition: Session.cpp:282
A dialog which allows the user to edit a profile.
Definition: EditProfileDialog.h:61
Manages the terminal display widgets in a Konsole window or part.
Definition: ViewManager.h:66
Profile::Ptr defaultProfile() const
Returns a Profile object describing the default profile.
Definition: ProfileManager.cpp:308
Q_SCRIPTABLE void setMonitorSilence(bool)
Enables monitoring for silence in the session.
Definition: Session.cpp:1115
The emulation is currently receiving data from its terminal input.
Definition: Emulation.h:62
void createSession(const QString &profileName=QString(), const QString &directory=QString())
creates and run a session using the specified profile and directory
Definition: Part.cpp:211
void saveSettings()
Saves settings (favorites, shortcuts, default profile etc.) to disk.
Definition: ProfileManager.cpp:272
static ProfileManager * instance()
Returns the profile manager instance.
Definition: ProfileManager.cpp:114
bool isEmpty() const
bool isEmpty() const
void setInitialWorkingDirectory(const QString &dir)
Sets the initial working directory for the session when it is run This has no effect once the session...
Definition: Session.cpp:277
QPointer< Session > session()
Returns the session associated with this controller.
Definition: SessionController.h:108
A re-usable terminal emulator component using the KParts framework which can be used to embed termina...
Definition: Part.h:48
QString currentWorkingDirectory() const
Returns the current working directory of the active session.
Definition: Part.cpp:204
void currentDirectoryChanged(const QString &dir)
Emitted when the current working directory of the active session has changed.
Encapsulates user-visible information about the terminal session currently being displayed in a view...
Definition: ViewProperties.h:44
int key() const
void createView(Session *session)
Creates a new view to display the output from and deliver input to session.
Definition: ViewManager.cpp:587
QStringList profileNameList() const
Returns a list of names of all available profiles.
Definition: Part.cpp:228
void setSearchBar(IncrementalSearchBar *searchBar)
Sets the widget used for searches through the session's output.
Definition: SessionController.cpp:521
void setArguments(const QStringList &arguments)
Sets the command line arguments which the session's program will be passed when run() is called...
Definition: Session.cpp:272
void setProfile(Profile::Ptr profile)
Initializes the dialog with the settings for the specified session type.
Definition: EditProfileDialog.cpp:177
SessionController * activeViewController() const
Returns the controller for the active view.
Definition: ViewManager.cpp:533
The container has no navigation widget.
Definition: ViewManager.h:124
virtual void sendInput(const QString &text)
Reimplemented from TerminalInterface.
Definition: Part.cpp:169
QStringList availableProfileNames() const
Returns a list of names of all available profiles.
Definition: ProfileManager.cpp:202
Session * createSession(Profile::Ptr profile=Profile::Ptr())
Creates a new session using the settings specified by the specified profile.
Definition: SessionManager.cpp:88
Profile::Ptr loadProfile(const QString &path)
Loads a profile from the specified path and registers it with the ProfileManager. ...
Definition: ProfileManager.cpp:119
QString foregroundProcessName()
Returns the name of the current foreground process.
Definition: Session.cpp:1411
QWidget * widget() const
Return the main widget for the view manager which holds all of the views managed by this ViewManager ...
Definition: ViewManager.cpp:128
Q_SCRIPTABLE void sendText(const QString &text) const
Sends text to the current foreground terminal program.
Definition: Session.cpp:819
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void changeSessionSettings(const QString &text)
Sends a profile change command to the active session.
Definition: Part.cpp:313
QByteArray encodeName(const QString &fileName)
virtual void showShellInDir(const QString &dir)
Reimplemented from TerminalInterface.
Definition: Part.cpp:155
void silenceDetected()
Emitted when silence has been detected in the active session.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.