KDE3Support
k3dockwidget.cpp
Go to the documentation of this file.
150 K3DockWidget* K3DockMainWindow::createDockWidget( const QString& name, const QPixmap &pixmap, QWidget* parent, const QString& strCaption, const QString& strTabPageLabel)
152 return new K3DockWidget( dockManager, name.toLatin1().constData(), pixmap, parent, strCaption, strTabPageLabel );
213 K3DockWidgetAbstractHeaderDrag::K3DockWidgetAbstractHeaderDrag( K3DockWidgetAbstractHeader* parent, K3DockWidget* dock, const char* name )
229 K3DockWidgetHeaderDrag::K3DockWidgetHeaderDrag( K3DockWidgetAbstractHeader* parent, K3DockWidget* dock, const char* name )
250 K3DockWidgetAbstractHeader::K3DockWidgetAbstractHeader( K3DockWidget* parent, const char* name )
534 K3DockWidget::K3DockWidget( K3DockManager* dockManager, const char* name, const QPixmap &pixmap, QWidget* parent, const QString& strCaption, const QString& strTabPageLabel, Qt::WindowFlags f)
1023 K3DockWidget* K3DockWidget::manualDock( K3DockWidget* target, DockPosition dockPos, int spliPos, QPoint pos, bool check, int tabIndex )
1204 QObject::connect(tab, SIGNAL(currentChanged(QWidget*)), d, SLOT(slotFocusEmbeddedWidget(QWidget*)));
1241 if ( dockPos == K3DockWidget::DockTop || dockPos == K3DockWidget::DockBottom ) panner = new K3DockSplitter( newDock, "_dock_split_", Qt::Horizontal, spliPos );
1242 if ( dockPos == K3DockWidget::DockLeft || dockPos == K3DockWidget::DockRight ) panner = new K3DockSplitter( newDock, "_dock_split_", Qt::Vertical , spliPos );
1428 emit ((K3DockWidget*)split->getAnother(parentOfTab))->docking( parentOfTab, K3DockWidget::DockLeft );
1430 emit ((K3DockWidget*)split->getAnother(parentOfTab))->docking( parentOfTab, K3DockWidget::DockTop );
1434 emit ((K3DockWidget*)split->getAnother(parentOfTab))->docking( parentOfTab, K3DockWidget::DockRight );
1436 emit ((K3DockWidget*)split->getAnother(parentOfTab))->docking( parentOfTab, K3DockWidget::DockBottom );
1455 /*********************************************************************************************/
1470 /*********************************************************************************************/
1513 /*********************************************************************************************/
1598 return ( !isGroup && !isTabGroup && f && isVisible() && ( eDocking != (int)K3DockWidget::DockNone ) );
1696 manualDock( formerBrotherDockWidget, formerDockPos, d->splitPosInPercent, QPoint(0,0), false, d->index);
1704 manualDock( ((K3DockMainWindow*)manager->main)->getMainDockWidget(), formerDockPos, d->splitPosInPercent, QPoint(0,0), false, d->index);
2053 if(( w->currentDockPos == K3DockWidget::DockLeft) || ( w->currentDockPos == K3DockWidget::DockRight)
2054 || ( w->currentDockPos == K3DockWidget::DockTop) || ( w->currentDockPos == K3DockWidget::DockBottom)) {
2140 if ( !currentMoveWidget && (!(currentDragWidget->eDocking & (int)K3DockWidget::DockDesktop)) ) {
2197 currentDragWidget->manualDock( currentMoveWidget, curPos , splitPos, QCursor::pos() - d->dragOffset );
2203 static QDomElement createStringEntry(QDomDocument &doc, const QString &tagName, const QString &str)
2224 static QDomElement createRectEntry(QDomDocument &doc, const QString &tagName, const QRect &rect)
2292 static Q3StrList listEntry(QDomElement &base, const QString &tagName, const QString &subTagName)
2367 groupEl.appendChild(createNumberEntry(doc, "separatorPos", ((K3DockSplitter*)obj->widget)->separatorPosInPercent()));
2376 groupEl.appendChild(createNumberEntry(doc, "currentTab", ((K3DockTabGroup*)obj->widget)->currentPageIndex()));
2378 groupEl.appendChild(createStringEntry(doc, "dockBackTo", obj->formerBrotherDockWidget ? obj->formerBrotherDockWidget->name() : ""));
2387 groupEl.appendChild(createStringEntry(doc, "dockBackTo", obj->formerBrotherDockWidget ? obj->formerBrotherDockWidget->name() : ""));
2395 groupEl.appendChild(createRectEntry(doc, "geometry", QRect(main->frameGeometry().topLeft(), main->size())));
2411 QString centralWidgetStr = QString(dmain->centralWidget()? dmain->centralWidget()->name() : "");
2413 QString mainDockWidgetStr = QString(dmain->getMainDockWidget()? dmain->getMainDockWidget()->name() : "");
2419 base.appendChild(createRectEntry(doc, "geometry", QRect(main->frameGeometry().topLeft(), main->size())));
2477 // secondly, now iterate again and create the groups and tabwidgets, apply the dockwidgets to them
2490 kDebug(282)<<"restoration of dockContainer is only supported for already existing dock containers";
2562 // iterate them again and link them with their corresponding dockwidget for the dockback action
2671 for (QObjectList::iterator it = d->containerDocks.begin() ;it != d->containerDocks.end(); ++it)
2694 /*************************************************************************************************/
2696 if ( (findList.indexOf( obj->firstName ) != -1) && (findList.indexOf( obj->lastName ) != -1 )){
2709 cg.writeEntry( cname+":sepPos", QVariant(((K3DockSplitter*)obj->widget)->separatorPosInPercent()) );
2717 /*************************************************************************************************/
2728 /*************************************************************************************************/
2735 cg.writeEntry( cname+":dockBackTo", obj->formerBrotherDockWidget ? obj->formerBrotherDockWidget->name() : "");
2744 cg.writeEntry( cname+":curTab", QVariant(((K3DockTabGroup*)obj->widget)->currentPageIndex()) );
2752 /*************************************************************************************************/
2759 cg.writeEntry( cname+":dockBackTo", obj->formerBrotherDockWidget ? obj->formerBrotherDockWidget->name() : "");
2781 cg.writeEntry( "Main:dock", dmain->getMainDockWidget() ? dmain->getMainDockWidget()->name() :"" );
2867 K3DockWidget* first = getDockWidgetFromName( cg.readEntry( oname + ":first_name", QString() ) );
2873 obj = first->manualDock( last, ( p == Qt::Vertical ) ? K3DockWidget::DockLeft : K3DockWidget::DockTop, sepPos );
2910 // iterate them again and link the toplevel ones of them with their corresponding dockwidget for the dockback action
3104 K3DockWidget* pDockWdgAtRect = (K3DockWidget*) QApplication::widgetAt( oldAndNewDragRect[i].topLeft() );
3184 K3DockWidget* K3DockArea::createDockWidget( const QString& name, const QPixmap &pixmap, QWidget* parent, const QString& strCaption, const QString& strTabPageLabel)
3186 return new K3DockWidget( dockManager, name.toLatin1().constData(), pixmap, parent, strCaption, strTabPageLabel );
3291 K3DockContainer::K3DockContainer(){m_overlapMode=false; m_childrenListBegin=0; m_childrenListEnd=0;}
void loseFormerBrotherDockWidget()
Does several things here when it has noticed that the former brother widget (closest neighbor) gets l...
Definition: k3dockwidget.cpp:1671
virtual void saveConfig(KConfigGroup *)
Provides saving the current configuration.
Definition: k3dockwidget.h:127
static int numberEntry(QDomElement &base, const QString &tagName)
Definition: k3dockwidget.cpp:2273
QString i18n(const char *text)
Like QSplitter but specially designed for dockwidgets stuff.
Definition: k3dockwidget_private.h:49
void dockWidgetHasUndocked(K3DockWidget *)
Signals a certain dockwidget is undocked now.
void setKeepSize(bool b=true)
If b is true, the splitter will keep its size on resize events.
Definition: k3dockwidget_private.cpp:612
void sync()
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3442
void activateDock()
It runs through all dockwidgets which are under control of the dockmanager and calls show() for every...
Definition: k3dockwidget.cpp:155
bool splitterHighResolution() const
Returns true if the splitter uses the high resolution, false otherwise.
Definition: k3dockwidget.cpp:3029
K3DockWidget * createDockWidget(const QString &name, const QPixmap &pixmap, QWidget *parent=0L, const QString &strCaption=QString(), const QString &strTabPageLabel=QLatin1String(" "))
Definition: k3dockwidget.cpp:3184
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3457
K3DockButton_Private * toDesktopButton
Definition: k3dockwidget_private.h:332
const char header[]
K3DockWidget * getMainDockWidget() const
Returns the main dockwidget.
Definition: k3dockwidget.cpp:132
virtual void resizeEvent(QResizeEvent *ev)
The resize event resizes child0, child1 and the divider.
Definition: k3dockwidget_private.cpp:240
K3DockWidget * findWidgetParentDock(QWidget *w) const
This method finds out what a widgets' dockwidget is.
Definition: k3dockwidget.cpp:3062
Q3PopupMenu * dockHideShowMenu() const
Returns a popup menu that contains entries for all controlled dockwidgets making hiding and showing t...
Definition: k3dockwidget.cpp:160
void makeWidgetDockVisible(QWidget *w)
Works like makeDockVisible() but can be called for widgets that covered by a dockwidget.
Definition: k3dockwidget.cpp:3076
void activateOverlapMode(int nonOverlapSize)
Definition: k3dockwidget.cpp:3310
virtual void load(KConfig *cfg, const QString &group_or_prefix)
Definition: k3dockwidget.cpp:3395
static QDomElement createListEntry(QDomDocument &doc, const QString &tagName, const QString &subTagName, const QStringList &list)
Definition: k3dockwidget.cpp:2245
QHBoxLayout * layout
A layout manager for placing the embedded buttons (close and stay)
Definition: k3dockwidget.h:320
void makeDockInvisible(K3DockWidget *dock)
This method hides the given dockwidget.
Definition: k3dockwidget.cpp:171
void setSpecialBottomDockContainer(K3DockWidget *container)
Definition: k3dockwidget.cpp:3161
void setMainDockWidget(K3DockWidget *)
Definition: k3dockwidget.cpp:3276
void makeWidgetDockVisible(QWidget *widget)
This is an overloaded member function, provided for convenience.
Definition: k3dockwidget.cpp:177
QWidget * latestK3DockContainer()
Definition: k3dockwidget.cpp:787
K3DockWidget * formerBrotherDockWidget
earlier closest neighbor widget, so it's possible to dock back to it.
Definition: k3dockwidget.h:785
static QRect rectEntry(QDomElement &base, const QString &tagName)
Definition: k3dockwidget.cpp:2279
void setToolTipString(const QString &ttStr)
Stores a string for a tooltip.
Definition: k3dockwidget.cpp:1612
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3463
A menu with keyboard searching and convenience methods for title items.
Definition: k3popupmenu.h:49
virtual void mousePressEvent(QMouseEvent *)
Definition: k3dockwidget.cpp:648
void setDockWindowType(NET::WindowType windowType)
Sets the type of the dock window.
Definition: k3dockwidget.cpp:933
virtual void paintEvent(QPaintEvent *)
Draws the drag panel (a double line)
Definition: k3dockwidget.cpp:238
virtual void save(KConfig *cfg, const QString &group_or_prefix)
Definition: k3dockwidget.cpp:3396
void toDesktop()
Docks the widget to the desktop (as a toplevel widget)
Definition: k3dockwidget.cpp:1353
virtual void setTopLevel(bool)
Provides things concerning to switching to toplevel mode.
Definition: k3dockwidget.h:121
void setSpecialRightDockContainer(K3DockWidget *container)
Definition: k3dockwidget.cpp:3156
static Q3StrList listEntry(QDomElement &base, const QString &tagName, const QString &subTagName)
Definition: k3dockwidget.cpp:2292
virtual void setToolTip(K3DockWidget *, QString &)
Definition: k3dockwidget.cpp:3393
Definition: k3dockwidget.h:459
void forceCloseButtonHidden(bool enable=true)
Definition: k3dockwidget.cpp:360
const char * name(StandardAction id)
void readDockConfig(QDomElement &base)
Reads the current dock window layout from a DOM tree below the given element.
Definition: k3dockwidget.cpp:187
static bool opaqueResize()
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3460
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
void addButton(K3DockButton_Private *)
add an arbitrary button to the dockwidget header NOT PART OF THE PUBLIC API (you don't have access th...
Definition: k3dockwidget.cpp:406
K3DockWidgetHeader(K3DockWidget *parent, const char *name=0L)
Constructs this.
Definition: k3dockwidget.cpp:255
virtual void loadConfig(KConfigGroup *)
Provides loading the current configuration.
Definition: k3dockwidget.h:132
virtual void show()
Add dockwidget management actions to QWidget::show.
Definition: k3dockwidget.cpp:914
K3DockManager(QWidget *mainWindow, const char *name=0L)
Constructs a dockmanager.
Definition: k3dockwidget.cpp:1731
virtual bool eventFilter(QObject *object, QEvent *event)
It's more or less a method that catches several events which are interesting for the dockmanager...
Definition: k3dockwidget.cpp:1815
void removeFromAutoCreateList(K3DockWidget *pDockWidget)
Definition: k3dockwidget.cpp:2621
K3DockWidgetHeaderDrag(K3DockWidgetAbstractHeader *parent, K3DockWidget *dock, const char *name=0L)
Constructs this.
Definition: k3dockwidget.cpp:229
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: k3dockwidget.cpp:708
void setSpecialTopDockContainer(K3DockWidget *container)
Definition: k3dockwidget.cpp:3152
static bool boolEntry(QDomElement &base, const QString &tagName)
Definition: k3dockwidget.cpp:2267
Q3PtrList< K3DockButton_Private > btns
Definition: k3dockwidget_private.h:336
static void setType(WId win, NET::WindowType windowType)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setView(QWidget *widget)
This method calls the base class method.
Definition: k3dockwidget.cpp:137
void setReadDockConfigMode(int mode)
Definition: k3dockwidget.cpp:2633
K3DockButton_Private * stayButton
a little button for enabling/disabling dragging the dockwidget with the mouse
Definition: k3dockwidget.h:330
void setDockDefaultPos()
Signals that the dock default position is set.
void makeDockVisible(K3DockWidget *dock)
This method shows the given dockwidget.
Definition: k3dockwidget.cpp:165
QString i18nc(const char *ctxt, const char *text)
KSharedConfigPtr config()
void dockBack()
Docks a dockwidget back to the dockwidget that was the neighbor widget before the current dock positi...
Definition: k3dockwidget.cpp:1680
virtual void undockWidget(K3DockWidget *)
Definition: k3dockwidget.cpp:3392
QWidget * getAnother(QWidget *w) const
If w is child0, return child1, otherwise child0.
Definition: k3dockwidget_private.cpp:579
K3DockWidget * createDockWidget(const QString &name, const QPixmap &pixmap, QWidget *parent=0L, const QString &strCaption=QString(), const QString &strTabPageLabel=QLatin1String(" "))
This is one of the most important methods! The K3DockMainWindow creates a new dockwidget object here ...
Definition: k3dockwidget.cpp:150
void setFormerBrotherDockWidget(K3DockWidget *)
Definition: k3dockwidget.cpp:1663
K3DockButton_Private * closeButton
a little button for closing (undocking and hiding) the dockwidget
Definition: k3dockwidget.h:325
void setSpecialLeftDockContainer(K3DockWidget *container)
Definition: k3dockwidget.cpp:3148
K3DockWidgetAbstractHeader * getHeader()
get the pointer to the header widget
Definition: k3dockwidget.cpp:796
void slotDockWidgetUndocked()
Called whenever one of the dockwidgets of this has been undocked.
Definition: k3dockwidget.cpp:204
A special kind of KMainWindow that is able to have dockwidget child widgets (and member of the dockwi...
Definition: k3dockwidget.h:1278
K3DockWidget * dockWidget() const
Definition: k3dockwidget.cpp:224
void slotStayClicked()
Sets dragging the dockwidget off when the stay button is pressed down and vice versa.
Definition: k3dockwidget.cpp:447
virtual bool dockDragEnter(K3DockWidget *dockWidget, QMouseEvent *event)
Definition: k3dockwidget.cpp:3337
bool splitterKeepSize() const
Returns true if the KeepSize is enabled, false otherwise.
Definition: k3dockwidget.cpp:3019
DockPosition formerDockPos
the former dock position when it really was at another position before.
Definition: k3dockwidget.h:793
K3DockWidget(K3DockManager *dockManager, const char *name, const QPixmap &pixmap, QWidget *parent=0L, const QString &strCaption=QString(), const QString &strTabPageLabel=QLatin1String(" "), Qt::WindowFlags f=0)
Construct a dockwidget.
Definition: k3dockwidget.cpp:534
K3DockButton_Private * dockbackButton
a little button for dock back the dockwidget to its previous dockwidget
Definition: k3dockwidget.h:335
bool blockHasUndockedSignal
Definition: k3dockwidget_private.h:299
This special widget is the panel one can grip with the mouses (and member of the dockwidget class set...
Definition: k3dockwidget.h:194
K3DockWidget::DockPosition currentDockPosition() const
Definition: k3dockwidget.cpp:1363
void makeDockInvisible(K3DockWidget *dock)
Definition: k3dockwidget.cpp:3205
Definition: k3dockwidget.h:456
void setMainDockWidget(K3DockWidget *dockwidget)
Sets a new main dockwidget.
Definition: k3dockwidget.cpp:125
K3DockWidgetHeaderDrag * dragPanel()
Get the drag panel of this header.
Definition: k3dockwidget.cpp:366
Q3PopupMenu * dockHideShowMenu() const
Definition: k3dockwidget.cpp:3081
void changeHideShowState()
Toggles the visibility state of the dockwidget if it is able to be shown or to be hidden...
Definition: k3dockwidget.cpp:1622
The manager that knows all dockwidgets and handles the dock process (and member of the dockwidget cla...
Definition: k3dockwidget.h:884
void setLatestK3DockContainer(QWidget *)
Definition: k3dockwidget.cpp:776
virtual bool dockDragLeave(K3DockWidget *dockWidget, QMouseEvent *event)
Definition: k3dockwidget.cpp:3339
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3448
void activate()
Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are pare...
Definition: k3dockwidget.cpp:1802
void setSplitterKeepSize(bool b=true)
Try to preserve the widget's size.
Definition: k3dockwidget.cpp:3014
void restoreFromForcedFixedSize()
Definition: k3dockwidget.cpp:1340
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3466
QWidget * transientTo()
Returns the widget this dockwidget is set transient to, otherwise 0.
Definition: k3dockwidget.cpp:948
K3DockManager * dockManager
A pointer to the manager for the dock process.
Definition: k3dockwidget.h:1429
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3451
K3DockWidget * findNearestDockWidget(DockPosition pos)
Lookup the nearest dockwidget docked left/right/top/bottom to this one or return 0.
Definition: k3dockwidget.cpp:995
virtual void setPixmap(K3DockWidget *, const QPixmap &)
Definition: k3dockwidget.cpp:3394
void writeDockConfig(QDomElement &base)
Saves the current dock window layout into a DOM tree below the given element.
Definition: k3dockwidget.cpp:182
QString toolTipStr
a string used as tooltip for the tab page header when in dock-centered mode.
Definition: k3dockwidget.h:797
CopyJob * move(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
An abstract class for all dockwidget drag-panels of a dockwidgets (and member of the dockwidget class...
Definition: k3dockwidget.h:149
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3445
virtual void saveConfig(KConfigGroup *c)
Saves the current button state to a KDE config container object.
Definition: k3dockwidget.cpp:478
K3DockArea(QWidget *parent=0L, const char *name=0L)
Definition: k3dockwidget.cpp:3166
void setHeader(K3DockWidgetAbstractHeader *ah)
Sets the header of this dockwidget.
Definition: k3dockwidget.cpp:800
virtual bool dockDragMove(K3DockWidget *dockWidget, QMouseEvent *event)
Definition: k3dockwidget.cpp:3338
void setSplitterHighResolution(bool b=true)
Operate the splitter with a higher resolution.
Definition: k3dockwidget.cpp:3024
K3DockWidget * manualDock(K3DockWidget *target, DockPosition dockPos, int spliPos=50, QPoint pos=QPoint(0, 0), bool check=false, int tabIndex=-1)
This is a key method of this class! Use it to dock dockwidgets to another dockwidget at the right pos...
Definition: k3dockwidget.cpp:1023
Definition: k3dockwidget.h:454
virtual void loadConfig(KConfigGroup *c)
Loads the current button state from a KDE config container object.
Definition: k3dockwidget.cpp:483
void setDockDefaultPos(K3DockWidget *)
Signals a dockwidget without parent (toplevel) is shown.
K3DockWidget * mainDockWidget
A pointer to the main dockwidget (where one can manualDock() to.
Definition: k3dockwidget.h:1424
void replaceDock(K3DockWidget *oldDock, K3DockWidget *newDock)
Signals a dockwidget is replaced with another one.
virtual void removeWidget(K3DockWidget *)
Definition: k3dockwidget.cpp:3375
bool forceCloseButtonHidden
Definition: k3dockwidget_private.h:337
void setMainDockWidget2(K3DockWidget *)
Definition: k3dockwidget.cpp:1780
QString tabPageTitle
a string used as title of the tab page when in tab page mode
Definition: k3dockwidget.h:801
An abstract base clase for all dockwidget headers (and member of the dockwidget class set)...
Definition: k3dockwidget.h:100
virtual void setTopLevel(bool t)
Hides the close button and stay button when switching to toplevel or vice versa shows them...
Definition: k3dockwidget.cpp:326
virtual K3DockWidget * parentDockWidget()
Definition: k3dockwidget.cpp:3342
Floatable widget that can be dragged around with the mouse and encapsulate the actual widgets (and me...
Definition: k3dockwidget.h:415
void setPixmap(const QPixmap &pixmap=QPixmap())
Allows changing the pixmap which is used for the caption or dock tabs.
Definition: k3dockwidget.cpp:584
void docking(K3DockWidget *dw, K3DockWidget::DockPosition dp)
Emitted when another dock widget is docking to this.
K3DockTabGroup * parentDockTabGroup() const
Definition: k3dockwidget.cpp:1295
QWidget * parentDockContainer() const
Definition: k3dockwidget.cpp:1303
Definition: k3dockwidget.h:453
void makeDockVisible(K3DockWidget *dock)
Definition: k3dockwidget.cpp:3199
static QDomElement createStringEntry(QDomDocument &doc, const QString &tagName, const QString &str)
Definition: k3dockwidget.cpp:2203
K3DockWidgetAbstractHeaderDrag(K3DockWidgetAbstractHeader *parent, K3DockWidget *dock, const char *name=0L)
Constructs this.
Definition: k3dockwidget.cpp:213
virtual void mouseMoveEvent(QMouseEvent *)
Definition: k3dockwidget.cpp:717
A mini-button usually placed in the dockpanel.
Definition: k3dockwidget_private.h:253
bool splitterOpaqueResize() const
Returns true if opaque resizing is enabled, false otherwise.
Definition: k3dockwidget.cpp:3009
void removeButton(K3DockButton_Private *)
remove an arbtrary button from the dockwidget header NOT PART OF THE PUBLIC API (you don't have acces...
Definition: k3dockwidget.cpp:439
The header (additional bar) for a K3DockWidget s (and member of the dockwidget class set)...
Definition: k3dockwidget.h:235
void installEventFilter(QWidget *filter)
void readConfig(KConfig *c=0L, const QString &group=QString())
Like writeConfig but reads the whole stuff in.
Definition: k3dockwidget.cpp:2788
K3DockTabGroup(QWidget *parent=0, const char *name=0)
Constructs this.
Definition: k3dockwidget.cpp:3411
static QDomElement createBoolEntry(QDomDocument &doc, const QString &tagName, bool b)
Definition: k3dockwidget.cpp:2212
void setTabPageLabel(const QString &label)
Sets a string that is used for the label of the tab page when in tab page mode.
Definition: k3dockwidget.cpp:1718
It just hides the special implementation of a dockwidget tab groups (and is member of the dockwidget ...
Definition: k3dockwidget.h:356
Definition: k3dockwidget.h:457
const QPixmap & pixmap() const
Returns the dockwidget's associated caption/dock tab pixmap.
Definition: k3dockwidget.cpp:600
Definition: k3dockwidget_p.h:43
KGuiItem cont()
K3DockWidget * getDockWidgetFromName(const QString &dockName)
Definition: k3dockwidget.cpp:2986
void makeWidgetDockVisible(QWidget *widget)
Definition: k3dockwidget.cpp:3211
DockPosition
The possible positions where a dockwidget can dock to another dockwidget.
Definition: k3dockwidget.h:451
void dockWidgetHasUndocked(K3DockWidget *)
Signals a certain dockwidget is undocked now.
void showUndockButton(bool show)
Definition: k3dockwidget.cpp:457
Definition: k3dockwidget.h:455
K3DockMainWindow(QWidget *parent=0L, const char *name=0L, Qt::WindowFlags f=Qt::Window)
Constructs a dockmainwindow.
Definition: k3dockwidget.cpp:105
static QString stringEntry(QDomElement &base, const QString &tagName)
Definition: k3dockwidget.cpp:2261
void setEnableDocking(int pos)
Specify where it is either possible or impossible for this to dock to another dockwidget.
Definition: k3dockwidget.cpp:820
void writeConfig(KConfig *c=0L, const QString &group=QString())
Saves the current state of the dockmanager and of all controlled widgets.
Definition: k3dockwidget.cpp:2639
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3454
Definition: k3dockwidget.h:458
virtual void insertWidget(K3DockWidget *, const QPixmap &, const QString &, int &)
Definition: k3dockwidget.cpp:3356
void updateHeader()
Checks some conditions and shows or hides the dockwidget header (drag panel).
Definition: k3dockwidget.cpp:845
void setDockWindowTransient(QWidget *parent, bool transientEnabled)
Definition: k3dockwidget.cpp:941
int separatorPosInPercent()
Return the separator position in percent (%), so the range is [0..100].
Definition: k3dockwidget_private.cpp:212
bool showToDesktopButton
Definition: k3dockwidget_private.h:334
T readEntry(const QString &key, const T &aDefault) const
static QDomElement createNumberEntry(QDomDocument &doc, const QString &tagName, int n)
Definition: k3dockwidget.cpp:2218
QStringList containedWidgets() const
Definition: k3dockwidget.cpp:3344
bool pendingFocusInEvent
Definition: k3dockwidget_private.h:298
int main(int argc, char **argv)
void setDragPanel(K3DockWidgetHeaderDrag *nd)
Sets the drag panel of this header.
Definition: k3dockwidget.cpp:370
virtual bool event(QEvent *)
Catches and processes some QWidget events that are interesting for dockwidgets.
Definition: k3dockwidget.cpp:952
static QDomElement createRectEntry(QDomDocument &doc, const QString &tagName, const QRect &rect)
Definition: k3dockwidget.cpp:2224
void activate(QWidget *c0, QWidget *c1=0L)
Initialize the splitter.
Definition: k3dockwidget_private.cpp:52
K3DockWidgetAbstractHeader(K3DockWidget *parent, const char *name=0L)
Constructs this.
Definition: k3dockwidget.cpp:250
void setDockSite(int pos)
Specify where it is either possible or impossible for another dockwidget to dock to this...
Definition: k3dockwidget.cpp:835
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.