KDE3Support
Go to the documentation of this file.
30 #include <QtGui/QApplication>
37 using namespace KParts;
41 class DockMainWindow3Private
44 DockMainWindow3Private()
47 m_bShellGUIActivated =
false;
50 ~DockMainWindow3Private()
54 QPointer<Part> m_activePart;
55 bool m_bShellGUIActivated;
63 d =
new DockMainWindow3Private();
64 PartBase::setPartObject(
this );
65 setAttribute( Qt::WA_DeleteOnClose );
75 kDebug(1000) <<
QString(
"DockMainWindow3::createGUI for %1").arg(part?part->name():
"0L");
79 setUpdatesEnabled(
false );
83 if ( d->m_activePart )
85 kDebug(1000) <<
QString(
"deactivating GUI for %1").arg(d->m_activePart->name());
88 QApplication::sendEvent( d->m_activePart, &ev );
92 disconnect( d->m_activePart, SIGNAL(setWindowCaption(
QString)),
94 disconnect( d->m_activePart, SIGNAL(setStatusBarText(
QString)),
98 if ( !d->m_bShellGUIActivated )
100 loadPlugins(
this,
this, KGlobal::mainComponent() );
102 d->m_bShellGUIActivated =
true;
108 connect( part, SIGNAL(setWindowCaption(
QString)),
110 connect( part, SIGNAL(setStatusBarText(
QString)),
116 QApplication::sendEvent( part, &ev );
120 setUpdatesEnabled(
true );
122 d->m_activePart = part;
132 assert( d->m_bShellGUIActivated != create );
133 d->m_bShellGUIActivated = create;
150 QApplication::sendEvent(
this, &ev );
158 QApplication::sendEvent(
this, &ev );
164 #include "dockmainwindow3.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:23:34 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.