• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KParts

KParts::MainWindow

KParts::MainWindow Class Reference

A KPart-aware main window, whose user interface is described in XML. More...

#include <mainwindow.h>

Inheritance diagram for KParts::MainWindow:

Inheritance graph
[legend]

List of all members.


Public Slots

virtual void configureToolbars ()

Public Member Functions

KDE_CONSTRUCTOR_DEPRECATED MainWindow (QWidget *parent, const char *name=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS)
 MainWindow (QWidget *parent=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS)
virtual ~MainWindow ()

Protected Slots

void createGUI (KParts::Part *part)
void saveNewToolbarConfig ()
virtual void slotSetStatusBarText (const QString &)

Protected Member Functions

virtual void createShellGUI (bool create=true)

Detailed Description

A KPart-aware main window, whose user interface is described in XML.

Inherit your main window from this class and don't forget to call setXMLFile() in the inherited constructor.

It implements all internal interfaces in the case of a KMainWindow as host: the builder and servant interface (for menu merging).

Definition at line 46 of file mainwindow.h.


Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0,
Qt::WindowFlags  f = KDE_DEFAULT_WINDOWFLAGS 
) [explicit]

Constructor, same signature as KMainWindow.

Definition at line 61 of file mainwindow.cpp.

MainWindow::MainWindow ( QWidget *  parent,
const char *  name = 0,
Qt::WindowFlags  f = KDE_DEFAULT_WINDOWFLAGS 
) [explicit]

Deprecated:
, remove the name argument and use setObjectName instead

Definition at line 67 of file mainwindow.cpp.

MainWindow::~MainWindow (  )  [virtual]

Destructor.

Definition at line 74 of file mainwindow.cpp.


Member Function Documentation

void KParts::MainWindow::configureToolbars (  )  [virtual, slot]

Definition at line 178 of file mainwindow.cpp.

void MainWindow::createGUI ( KParts::Part *  part  )  [protected, slot]

Create the GUI (by merging the host's and the active part's) You _must_ call this in order to see any GUI being created.

In a main window with multiple parts being shown (e.g. as in Konqueror) you need to connect this slot to the KPartManager::activePartChanged() signal

Parameters:
part The active part (set to 0L if no part).

Definition at line 79 of file mainwindow.cpp.

void MainWindow::createShellGUI ( bool  create = true  )  [protected, virtual]

Definition at line 138 of file mainwindow.cpp.

void KParts::MainWindow::saveNewToolbarConfig (  )  [protected, slot]

Rebuilds the GUI after KEditToolbar changed the toolbar layout.

See also:
configureToolbars() KDE4: make this virtual. (For now we rely on the fact that it's called as a slot, so the metaobject finds it here).

Definition at line 171 of file mainwindow.cpp.

void MainWindow::slotSetStatusBarText ( const QString &  text  )  [protected, virtual, slot]

Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items).

Definition at line 133 of file mainwindow.cpp.


The documentation for this class was generated from the following files:
  • mainwindow.h
  • mainwindow.cpp

KParts

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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