// This is the SIP interface definition for QDockArea. // // Copyright (c) 2007 // Riverbank Computing Limited // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // // PyQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // PyQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. %ExportedDoc QDockArea (Qt v3+) bool hasDockWindow const QDockWindow *w int *index = 0 This takes the w parameter and returns the index of the QDockWIndow or -1 if the QDockArea does not contain the QDockWindow. %End %If (Qt_3_0_0 -) class QDockArea : QWidget { %TypeHeaderCode #include %End public: enum HandlePosition { Normal, Reverse }; QDockArea(Orientation,HandlePosition = Normal, QWidget * /TransferThis/ = 0,const char * = 0); void moveDockWindow(QDockWindow *,const QPoint &,const QRect &,bool); void removeDockWindow(QDockWindow *,bool,bool,bool = 1); void moveDockWindow(QDockWindow *,int = -1); int hasDockWindow(QDockWindow *); %MethodCode // The Python interface returns the index. Py_BEGIN_ALLOW_THREADS sipCpp -> QDockArea::hasDockWindow(a0,&sipRes); Py_END_ALLOW_THREADS %End void invalidNextOffset(QDockWindow *); Orientation orientation() const; HandlePosition handlePosition() const; bool eventFilter(QObject *,QEvent *); bool isEmpty() const; int count() const; QPtrList dockWindowList() const; bool isDockWindowAccepted(QDockWindow *); void setAcceptDockWindow(QDockWindow *,bool); public slots: void lineUp(bool); private: QDockArea(const QDockArea &); }; %End