sublime
Sublime::MainWindow Class Reference
#include <mainwindow.h>
Inherits MainWindow.
Inherited by Example2Main.
Detailed Description
Sublime Main Window.The area-enabled mainwindow to show Sublime views and toolviews.
To use, a controller and constructed areas are necessary:
MainWindow w(controller); controller->showArea(area, &w);
Definition at line 47 of file mainwindow.h.
Public Slots | |
| void | activateView (Sublime::View *view) |
Signals | |
| void | activeToolViewChanged (Sublime::View *) |
| void | activeViewChanged (Sublime::View *) |
| void | areaChanged (Sublime::Area *) |
| void | areaCleared (Sublime::Area *) |
| void | settingsLoaded () |
Public Member Functions | |
| View * | activeToolView () |
| View * | activeView () |
| Area * | area () const |
| Controller * | controller () const |
| void | enableAreaSettingsSave () |
| virtual void | loadSettings () |
| MainWindow (Controller *controller, Qt::WindowFlags flags=KDE_DEFAULT_WINDOWFLAGS) | |
| virtual bool | queryClose () |
| virtual void | saveSettings () |
| QList< View * > | toolDocks () const |
Constructor & Destructor Documentation
| Sublime::MainWindow::MainWindow | ( | Controller * | controller, | |
| Qt::WindowFlags | flags = KDE_DEFAULT_WINDOWFLAGS | |||
| ) | [explicit] |
Member Function Documentation
| void Sublime::MainWindow::activateView | ( | Sublime::View * | view | ) | [slot] |
| View * Sublime::MainWindow::activeToolView | ( | ) |
| void Sublime::MainWindow::activeToolViewChanged | ( | Sublime::View * | ) | [signal] |
Emitted when the active toolview is changed.
| View * Sublime::MainWindow::activeView | ( | ) |
| void Sublime::MainWindow::activeViewChanged | ( | Sublime::View * | ) | [signal] |
Emitted when the active view is changed.
| Area * Sublime::MainWindow::area | ( | ) | const |
- Returns:
- area which mainwindow currently shows or 0 if no area has been set.
Definition at line 95 of file mainwindow.cpp.
| void Sublime::MainWindow::areaChanged | ( | Sublime::Area * | ) | [signal] |
Emitted after the new area has been shown in this mainwindow.
| void Sublime::MainWindow::areaCleared | ( | Sublime::Area * | ) | [signal] |
Emitted before the area is cleared from this mainwindow.
| Controller * Sublime::MainWindow::controller | ( | ) | const |
| void Sublime::MainWindow::enableAreaSettingsSave | ( | ) |
Enable saving of per-area UI settings (like toolbar properties and position) whenever area is changed.
This should be called after all areas are restored, and main window area is set, to prevent saving a half-broken state.
Definition at line 271 of file mainwindow.cpp.
| void Sublime::MainWindow::loadSettings | ( | ) | [virtual] |
Loads size/toolbar/menu/statusbar settings to the global configuration file.
Reimplement in subclasses to load more and don't forget to call inherited method.
Definition at line 150 of file mainwindow.cpp.
| bool Sublime::MainWindow::queryClose | ( | ) | [virtual] |
| void Sublime::MainWindow::saveSettings | ( | ) | [virtual] |
Saves size/toolbar/menu/statusbar settings to the global configuration file.
Reimplement in subclasses to save more and don't forget to call inherited method.
Definition at line 138 of file mainwindow.cpp.
| void Sublime::MainWindow::settingsLoaded | ( | ) | [signal] |
Emitted when the user interface settings have changed.
- Returns:
- the list of dockwidgets that contain area's toolviews.
Definition at line 90 of file mainwindow.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference