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;}
QLayout * layout() const
void loseFormerBrotherDockWidget()
Does several things here when it has noticed that the former brother widget (closest neighbor) gets l...
Definition: k3dockwidget.cpp:1671
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
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)
void releaseMouse()
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()
QSize size() const
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
QString & append(QChar ch)
QSize size() const
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3457
K3DockButton_Private * toDesktopButton
Definition: k3dockwidget_private.h:332
Type type() const
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
void setIcon(const QPixmap &i)
K3DockWidget * findWidgetParentDock(QWidget *w) const
This method finds out what a widgets' dockwidget is.
Definition: k3dockwidget.cpp:3062
int width() const
Q3PopupMenu * dockHideShowMenu() const
Returns a popup menu that contains entries for all controlled dockwidgets making hiding and showing t...
Definition: k3dockwidget.cpp:160
bool end()
void setCursor(const QCursor &)
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
void setFixedWidth(int w)
void makeDockInvisible(K3DockWidget *dock)
This method hides the given dockwidget.
Definition: k3dockwidget.cpp:171
void updateGeometry()
void setSpecialBottomDockContainer(K3DockWidget *container)
Definition: k3dockwidget.cpp:3161
void setMainDockWidget(K3DockWidget *)
Definition: k3dockwidget.cpp:3276
QDomNode appendChild(const QDomNode &newChild)
void makeWidgetDockVisible(QWidget *widget)
This is an overloaded member function, provided for convenience.
Definition: k3dockwidget.cpp:177
QWidget * page(int index) const
QWidget * latestK3DockContainer()
Definition: k3dockwidget.cpp:787
virtual void clear()
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
QString data() const
virtual void paintEvent(QPaintEvent *)
Draws the drag panel (a double line)
Definition: k3dockwidget.cpp:238
type * first()
void setFocusPolicy(Qt::FocusPolicy policy)
virtual void save(KConfig *cfg, const QString &group_or_prefix)
Definition: k3dockwidget.cpp:3396
QObject * sender() const
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
Display * display()
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
void setSizeConstraint(SizeConstraint)
static Q3StrList listEntry(QDomElement &base, const QString &tagName, const QString &subTagName)
Definition: k3dockwidget.cpp:2292
virtual void setToolTip(K3DockWidget *, QString &)
Definition: k3dockwidget.cpp:3393
void setMinimumWidth(int minw)
const QObjectList & children() const
Definition: k3dockwidget.h:459
void forceCloseButtonHidden(bool enable=true)
Definition: k3dockwidget.cpp:360
bool isVisible() const
QPoint mapToGlobal(const QPoint &pos) const
void readDockConfig(QDomElement &base)
Reads the current dock window layout from a DOM tree below the given element.
Definition: k3dockwidget.cpp:187
void setAttribute(Qt::WidgetAttribute attribute, bool on)
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)
bool isTopLevel() const
iterator erase(iterator pos)
int height() const
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
int x() const
int y() const
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
const QPixmap * icon() const
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
QWidget * topLevelAt(const QPoint &point)
QString & remove(int position, int n)
void setSpecialTopDockContainer(K3DockWidget *container)
Definition: k3dockwidget.cpp:3152
static bool boolEntry(QDomElement &base, const QString &tagName)
Definition: k3dockwidget.cpp:2267
int indexOf(QWidget *w) const
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 moveTopLeft(const QPoint &position)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual void mouseReleaseEvent(QMouseEvent *event)
count
void setView(QWidget *widget)
This method calls the base class method.
Definition: k3dockwidget.cpp:137
void setIcon(const QIcon &icon)
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 setParent(QWidget *parent)
virtual void setCentralWidget(QWidget *w)
void setDockDefaultPos()
Signals that the dock default position is set.
void makeDockVisible(K3DockWidget *dock)
This method shows the given dockwidget.
Definition: k3dockwidget.cpp:165
void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption &option)
int x() const
int y() const
type * current() const
QString i18nc(const char *ctxt, const char *text)
void setGeometry(int x, int y, int w, int h)
KSharedConfigPtr config()
bool isNull() const
bool isVisibleTo(QWidget *ancestor) const
void changeTab(QWidget *widget, const QString &label)
void dockBack()
Docks a dockwidget back to the dockwidget that was the neighbor widget before the current dock positi...
Definition: k3dockwidget.cpp:1680
type * next()
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
void initFrom(const QWidget *widget)
void append(const type *item)
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
int width() const
QDomElement toElement() const
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
size
void drawRect(const QRectF &rectangle)
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
const char * name() const
QWidget * centralWidget() const
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
void setEnabled(bool)
QString number(int n, int base)
QWidget * widgetAt(const QPoint &point)
virtual void paintEvent(QPaintEvent *event)
void append(const T &value)
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
void installEventFilter(QObject *filterObj)
QDomDocument ownerDocument() const
QWidget * topLevelWidget() const
virtual void mousePressEvent(QMouseEvent *event)
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
int x() const
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
bool inherits(const char *className) const
void makeDockInvisible(K3DockWidget *dock)
Definition: k3dockwidget.cpp:3205
void setFocus()
Definition: k3dockwidget.h:456
void setMainDockWidget(K3DockWidget *dockwidget)
Sets a new main dockwidget.
Definition: k3dockwidget.cpp:125
int toInt(bool *ok, int base) const
bool isEmpty() const
void setObjectName(const QString &name)
virtual void mouseMoveEvent(QMouseEvent *event)
bool isEmpty() const
K3DockWidgetHeaderDrag * dragPanel()
Get the drag panel of this header.
Definition: k3dockwidget.cpp:366
int removeAll(const T &value)
bool removeRef(const type *item)
Q3PopupMenu * dockHideShowMenu() const
Definition: k3dockwidget.cpp:3081
const char * constData() const
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 setOverrideCursor(const QCursor &cursor)
void setLatestK3DockContainer(QWidget *)
Definition: k3dockwidget.cpp:776
void move(int x, int y)
virtual bool dockDragLeave(K3DockWidget *dockWidget, QMouseEvent *event)
Definition: k3dockwidget.cpp:3339
uint containsRef(const type *item) const
type * current() const
void restoreOverrideCursor()
typedef Iterator
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
virtual bool eventFilter(QObject *watched, QEvent *event)
void setSplitterKeepSize(bool b=true)
Try to preserve the widget's size.
Definition: k3dockwidget.cpp:3014
void setCentralWidget(QWidget *widget)
void restoreFromForcedFixedSize()
Definition: k3dockwidget.cpp:1340
WId winId() const
int insertTab(int index, QWidget *page, const QString &label)
frameGeometry
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3466
QString tabLabel(QWidget *widget) const
void setCheckable(bool)
void setTabToolTip(int index, const QString &tip)
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
void hide()
void setMargin(int margin)
QPoint mapFromParent(const QPoint &pos) const
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3451
void addWidget(QWidget *w)
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
QWidget * widget(int index) const
void setName(const char *name)
QDomText createTextNode(const QString &value)
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
iterator end()
Qt::WindowType windowType() const
virtual void saveConfig(KConfigGroup *c)
Saves the current button state to a KDE config container object.
Definition: k3dockwidget.cpp:478
bool blockSignals(bool block)
QDomNode removeChild(const QDomNode &oldChild)
QDomNode namedItem(const QString &name) const
K3DockArea(QWidget *parent=0L, const char *name=0L)
Definition: k3dockwidget.cpp:3166
void setFixedSize(const QSize &s)
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
bool isNull() const
void setSplitterHighResolution(bool b=true)
Operate the splitter with a higher resolution.
Definition: k3dockwidget.cpp:3024
void repaint()
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
bool isChecked() const
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
bool activate()
QDomNode firstChild() const
QByteArray toLatin1() const
int width() const
void setMaximumWidth(int maxw)
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
QPoint pos()
virtual QSize minimumSize() const
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
bool isVisibleToTLW() const
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 setMaximumHeight(int maxh)
void grabMouse()
void setPixmap(const QPixmap &pixmap=QPixmap())
Allows changing the pixmap which is used for the caption or dock tabs.
Definition: k3dockwidget.cpp:584
void setFixedHeight(int h)
void removePage(QWidget *widget)
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
QWidget * parentWidget() const
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
QPoint mapFromGlobal(const QPoint &pos) const
windowTitle
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
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
int height() const
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
QPoint topLeft() const
int length() const
void setMinimumHeight(int minh)
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
void setX(int x)
void setY(int y)
void setMouseTracking(bool enable)
bool begin(QWidget *widget)
bool isA(const char *className) const
void init(const QWidget *widget)
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
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
typedef WindowFlags
Definition: k3dockwidget.h:457
void showPage(QWidget *widget)
int indexOf(const QRegExp &rx, int from) const
const QPixmap & pixmap() const
Returns the dockwidget's associated caption/dock tab pixmap.
Definition: k3dockwidget.cpp:600
Definition: k3dockwidget_p.h:43
KGuiItem cont()
void setAutoFillBackground(bool enabled)
void show()
K3DockWidget * getDockWidgetFromName(const QString &dockName)
Definition: k3dockwidget.cpp:2986
QString tagName() const
void makeWidgetDockVisible(QWidget *widget)
Definition: k3dockwidget.cpp:3211
const QPoint & pos() const
void setToolTip(const QString &)
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
virtual void resizeEvent(QResizeEvent *event)
K3DockMainWindow(QWidget *parent=0L, const char *name=0L, Qt::WindowFlags f=Qt::Window)
Constructs a dockmainwindow.
Definition: k3dockwidget.cpp:105
QDomElement createElement(const QString &tagName)
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 setTabLabel(QWidget *widget, const QString &label)
bool isWidgetType() const
QDomText toText() const
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
virtual void virtual_hook(int id, void *data)
Definition: k3dockwidget.cpp:3454
Definition: k3dockwidget.h:458
bool begin(QPaintDevice *device)
virtual void leaveEvent(QEvent *event)
virtual void insertWidget(K3DockWidget *, const QPixmap &, const QString &, int &)
Definition: k3dockwidget.cpp:3356
virtual QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *option, const QWidget *widget) const =0
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
virtual bool event(QEvent *event)
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)
iterator begin()
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
height
void activate(QWidget *c0, QWidget *c1=0L)
Initialize the splitter.
Definition: k3dockwidget_private.cpp:52
type * at(uint index)
K3DockWidgetAbstractHeader(K3DockWidget *parent, const char *name=0L)
Constructs this.
Definition: k3dockwidget.cpp:250
bool ownCursor() const
void setDockSite(int pos)
Specify where it is either possible or impossible for another dockwidget to dock to this...
Definition: k3dockwidget.cpp:835
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.