Konsole
Konsole::MainWindow Class Reference
#include <MainWindow.h>

Detailed Description
The main window.This contains the menus and an area which contains the terminal displays.
The main window does not create the views or the container widgets which hold the views. This is done by the ViewManager class. When a MainWindow is instantiated, it creates a new ViewManager. The ViewManager can then be used to create new terminal displays inside the window.
Do not construct new main windows directly, use Application's newMainWindow() method.
Definition at line 55 of file MainWindow.h.
Signals | |
void | closeActiveSessionRequest () |
void | newSessionRequest (Profile::Ptr profile, const QString &directory, ViewManager *view) |
void | newWindowRequest (Profile::Ptr profile, const QString &directory) |
Public Member Functions | |
BookmarkHandler * | bookmarkHandler () const |
Profile::Ptr | defaultProfile () const |
MainWindow () | |
IncrementalSearchBar * | searchBar () const |
void | setDefaultProfile (Profile::Ptr profile) |
void | setSessionList (ProfileList *list) |
ViewManager * | viewManager () const |
Protected Member Functions | |
virtual bool | queryClose () |
Constructor & Destructor Documentation
MainWindow::MainWindow | ( | ) |
Constructs a new main window.
Do not create new main windows directly, use Application's newMainWindow() method instead.
Definition at line 59 of file MainWindow.cpp.
Member Function Documentation
BookmarkHandler * MainWindow::bookmarkHandler | ( | ) | const |
Returns the bookmark handler associated with this window.
Definition at line 292 of file MainWindow.cpp.
void Konsole::MainWindow::closeActiveSessionRequest | ( | ) | [signal] |
Emitted by the main window to request the current session to close.
Profile::Ptr MainWindow::defaultProfile | ( | ) | const |
Returns the default profile for this window.
Definition at line 152 of file MainWindow.cpp.
void Konsole::MainWindow::newSessionRequest | ( | Profile::Ptr | profile, | |
const QString & | directory, | |||
ViewManager * | view | |||
) | [signal] |
Emitted by the main window to request the creation of a new session.
- Parameters:
-
profile The profile to use to create the new session. directory Initial working directory for the new session or empty if the default working directory associated with the profile should be used. view The view manager owned by this main window
void Konsole::MainWindow::newWindowRequest | ( | Profile::Ptr | profile, | |
const QString & | directory | |||
) | [signal] |
Emitted by the main window to request the creation of a new session in a new window.
- Parameters:
-
profile The profile to use to create the first session in the new window. directory Initial working directory for the new window or empty if the default working directory associated with the profile should be used.
bool MainWindow::queryClose | ( | ) | [protected, virtual] |
Definition at line 342 of file MainWindow.cpp.
IncrementalSearchBar * MainWindow::searchBar | ( | ) | const |
void MainWindow::setDefaultProfile | ( | Profile::Ptr | profile | ) |
Sets the default profile for this window.
This is the default value for the profile argument when the newSessionRequest() and newWindow() signals are emitted.
Definition at line 148 of file MainWindow.cpp.
void MainWindow::setSessionList | ( | ProfileList * | list | ) |
Sets the list of sessions to be displayed in the File menu.
Definition at line 297 of file MainWindow.cpp.
ViewManager * MainWindow::viewManager | ( | ) | const |
Returns the view manager associated with this window.
The view manager can be used to create new views on particular session objects inside this window.
Definition at line 157 of file MainWindow.cpp.
The documentation for this class was generated from the following files: