• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

sublime

Sublime::MainWindow

Sublime::MainWindow Class Reference

#include <mainwindow.h>

Inherits MainWindow.

Inherited by Example2Main.

List of all members.


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]

Creates a mainwindow and adds it to the controller.

Definition at line 42 of file mainwindow.cpp.


Member Function Documentation

void Sublime::MainWindow::activateView ( Sublime::View *  view  )  [slot]

Shows the view and makes it active.

Definition at line 115 of file mainwindow.cpp.

View * Sublime::MainWindow::activeToolView (  ) 

Returns:
active toolview inside this mainwindow.

Definition at line 110 of file mainwindow.cpp.

void Sublime::MainWindow::activeToolViewChanged ( Sublime::View *   )  [signal]

Emitted when the active toolview is changed.

View * Sublime::MainWindow::activeView (  ) 

Returns:
active view inside this mainwindow.

Definition at line 105 of file mainwindow.cpp.

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

Returns:
controller for this mainwindow.

Definition at line 100 of file mainwindow.cpp.

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]

Reimplemented to save settings.

Definition at line 221 of file mainwindow.cpp.

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.

QList< View * > Sublime::MainWindow::toolDocks (  )  const

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:
  • mainwindow.h
  • mainwindow.cpp

sublime

Skip menu "sublime"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal