Konsole
MainWindow.cpp
Go to the documentation of this file.
305 _newTabMenuAction = new KActionMenu(KIcon("tab-new"), i18nc("@action:inmenu", "&New Tab"), collection);
339 _toggleMenuBarAction = KStandardAction::showMenubar(menuBar(), SLOT(setVisible(bool)), collection);
479 session->addEnvironmentEntry(QString("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(_viewManager->managerId()));
635 KShortcutsDialog dialog(KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcutsDisallowed, this);
A dialog which lists the available types of profiles and allows the user to add new profiles...
Definition: ManageProfilesDialog.h:50
text
virtual void saveGlobalProperties(KConfig *config)
Definition: MainWindow.cpp:614
static SessionManager * instance()
Returns the session manager instance.
Definition: SessionManager.cpp:69
virtual void showEvent(QShowEvent *event)
Definition: MainWindow.cpp:809
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
QString & append(QChar ch)
static int tabBarPosition()
Get Control the position of the tab bar.
Definition: KonsoleSettings.h:224
void setContentsMargins(int left, int top, int right, int bottom)
QWidget * activeView() const
Returns the view manager's active view.
Definition: ViewManager.cpp:118
iterator remove(iterator pos)
virtual bool focusNextPrevChild(bool next)
Definition: MainWindow.cpp:826
QList< QAction * > actions()
Returns a list of actions representing profiles.
Definition: ProfileList.cpp:167
void newWindowRequest(Profile::Ptr profile, const QString &directory)
Emitted by the main window to request the creation of a new session in a new window.
void setShowMenuAction(QAction *action)
Sets the action displayed in the session's context menu to hide or show the menu bar.
Definition: SessionController.cpp:550
Definition: TabBarSettings.h:29
font
QString readLine(qint64 maxlen)
void setNavigationPosition(int position)
Definition: MainWindow.cpp:724
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QVariant data() const
void setIcon(const QIcon &icon)
void setMenuBarInitialVisibility(bool visible)
Set the initial visibility of the menubar.
Definition: MainWindow.cpp:805
static bool tabBarUseUserStyleSheet()
Get Use a user-defined .css file for the tab bar.
Definition: KonsoleSettings.h:278
void setActiveView(ViewProperties *view)
Definition: BookmarkHandler.cpp:149
ProfileList provides a list of actions which represent session profiles that a SessionManager can cre...
Definition: ProfileList.h:51
Session * createSSHSession(Profile::Ptr profile, const KUrl &url)
create a new SSH session.
Definition: MainWindow.cpp:490
void setShowQuickButtons(bool show)
Definition: ViewManager.cpp:1123
static QSet< SessionController * > allControllers()
Returns the set of all controllers that exist.
Definition: SessionController.h:168
QList< Session * > sessions()
Returns a list of sessions in this ViewManager.
Definition: ViewManager.h:178
static bool showQuickButtons()
Get Control the visibility of quick buttons on the tab bar.
Definition: KonsoleSettings.h:332
static QString tabBarStyleSheet()
Get Control the visual style of the tab bar.
Definition: KonsoleSettings.h:251
Profile::Ptr sessionProfile(Session *session) const
Returns the profile associated with a session.
Definition: SessionManager.cpp:141
void saveSessions(KConfig *config)
Definition: SessionManager.cpp:273
int size() const
void setNavigationStyleSheetFromFile(const KUrl &stylesheetfile)
Definition: MainWindow.cpp:739
Definition: GeneralSettings.h:29
static bool showWindowTitleOnTitleBar()
Get Show window title on the titlebar.
Definition: KonsoleSettings.h:62
Manages the terminal display widgets in a Konsole window or part.
Definition: ViewManager.h:66
void setNavigationPosition(int position)
Definition: ViewManager.cpp:1103
Profile::Ptr defaultProfile() const
Returns a Profile object describing the default profile.
Definition: ProfileManager.cpp:308
void setBold(bool enable)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
void createView(Session *session)
create view for the specified session
Definition: MainWindow.cpp:519
void append(const T &value)
static ProfileManager * instance()
Returns the profile manager instance.
Definition: ProfileManager.cpp:114
virtual void readProperties(const KConfigGroup &group)
Definition: MainWindow.cpp:609
bool atEnd() const
void setLayout(QLayout *layout)
void restoreSessions(const KConfigGroup &group)
Definition: ViewManager.cpp:967
Item next()
This class handles the communication between the bookmark menu and the active session, providing a suggested title and URL when the user clicks the "Add Bookmark" item in the bookmarks menu.
Definition: BookmarkHandler.h:52
void setFocus()
ViewManager * viewManager() const
Returns the view manager associated with this window.
Definition: MainWindow.cpp:201
bool isEmpty() const
void setNavigationVisibility(int visibility)
Definition: ViewManager.cpp:1093
static KUrl tabBarUserStyleSheetFile()
Get The .css file to use for the tab bar style.
Definition: KonsoleSettings.h:305
void setNavigationStyleSheet(const QString &styleSheet)
Definition: ViewManager.cpp:1114
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
virtual void saveProperties(KConfigGroup &group)
Definition: MainWindow.cpp:604
void viewDetached(Session *session)
Emitted when a view for one session is detached from this window.
T & first()
void viewFullScreen(bool fullScreen)
Definition: MainWindow.cpp:362
const Key & key() const
Encapsulates user-visible information about the terminal session currently being displayed in a view...
Definition: ViewProperties.h:44
A widget which allows users to search incrementally through a document for a a text string or regular...
Definition: IncrementalSearchBar.h:56
void setData(const QVariant &userData)
static bool showAppNameOnTitleBar()
Get Show "- Konsole" on the titlebar.
Definition: KonsoleSettings.h:89
void setShortcut(const QKeySequence &shortcut)
void setNavigationBehavior(int behavior)
Definition: ViewManager.cpp:1141
void createView(Session *session)
Creates a new view to display the output from and deliver input to session.
Definition: ViewManager.cpp:587
void setNavigationBehavior(int behavior)
Definition: MainWindow.cpp:734
void setSearchBar(IncrementalSearchBar *searchBar)
Sets the widget used for searches through the session's output.
Definition: SessionController.cpp:521
virtual void readGlobalProperties(KConfig *config)
Definition: MainWindow.cpp:619
T & last()
static int tabBarVisibility()
Get Control the visibility of the whole tab bar.
Definition: KonsoleSettings.h:197
void addEnvironmentEntry(const QString &entry)
Adds one entry for the environment of this session entry should be like VARIABLE=VALUE.
Definition: Session.cpp:894
Session * createSession(Profile::Ptr profile=Profile::Ptr())
Creates a new session using the settings specified by the specified profile.
Definition: SessionManager.cpp:88
void setShowQuickButtons(bool show)
Definition: MainWindow.cpp:761
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
static bool saveGeometryOnExit()
Get Use current window size on next startup.
Definition: KonsoleSettings.h:170
void setNavigationVisibility(int visibility)
Definition: MainWindow.cpp:719
Session * createSession(Profile::Ptr profile, const QString &directory)
Create a new session.
Definition: MainWindow.cpp:469
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
QString toString() const
QWidgetList topLevelWidgets()
void setSpacing(int spacing)
QString program() const
Returns the program name of the shell process started when run() is called.
Definition: Session.cpp:1087
bool hasNext() const
void setNavigationStyleSheet(const QString &stylesheet)
Definition: MainWindow.cpp:729
void restoreSessions(KConfig *config)
Definition: SessionManager.cpp:300
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.