Changeset 561 for trunk/src/gui/widgets/qdockarealayout_p.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/widgets/qdockarealayout_p.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 104 104 QSize sizeHint() const; 105 105 bool expansive(Qt::Orientation o) const; 106 bool hasFixedSize(Qt::Orientation o) const; 106 107 107 108 QLayoutItem *widgetItem; … … 136 137 QSize size() const; 137 138 138 bool insertGap( QList<int>path, QLayoutItem *dockWidgetItem);139 QLayoutItem *plug( QList<int>path);140 QLayoutItem *unplug( QList<int>path);139 bool insertGap(const QList<int> &path, QLayoutItem *dockWidgetItem); 140 QLayoutItem *plug(const QList<int> &path); 141 QLayoutItem *unplug(const QList<int> &path); 141 142 enum TabMode { NoTabs, AllowTabs, ForceTabs }; 142 143 QList<int> gapIndex(const QPoint &pos, bool nestingEnabled, 143 144 TabMode tabMode) const; 144 void remove( QList<int>path);145 void remove(const QList<int> &path); 145 146 void unnest(int index); 146 147 void split(int index, Qt::Orientation orientation, QLayoutItem *dockWidgetItem); 147 148 void tab(int index, QLayoutItem *dockWidgetItem); 148 QDockAreaLayoutItem &item( QList<int>path);149 QDockAreaLayoutInfo *info( QList<int>path);149 QDockAreaLayoutItem &item(const QList<int> &path); 150 QDockAreaLayoutInfo *info(const QList<int> &path); 150 151 QDockAreaLayoutInfo *info(QWidget *widget); 151 152 … … 162 163 int changeSize(int index, int size, bool below); 163 164 QRect itemRect(int index) const; 164 QRect itemRect( QList<int>path) const;165 QRect itemRect(const QList<int> &path) const; 165 166 QRect separatorRect(int index) const; 166 QRect separatorRect( QList<int>path) const;167 QRect separatorRect(const QList<int> &path) const; 167 168 168 169 void clear(); 169 170 bool isEmpty() const; 171 bool hasFixedSize() const; 170 172 QList<int> findSeparator(const QPoint &pos) const; 171 173 int next(int idx) const; … … 180 182 const QPoint &mouse) const; 181 183 QRegion separatorRegion() const; 182 int separatorMove(int index, int delta , QVector<QLayoutStruct> *cache);184 int separatorMove(int index, int delta); 183 185 184 186 QLayoutItem *itemAt(int *x, int index) const; … … 189 191 190 192 int sep; 191 QVector<QWidget*> separatorWidgets;193 mutable QVector<QWidget*> separatorWidgets; 192 194 QInternal::DockPosition dockPos; 193 195 Qt::Orientation o; … … 195 197 QMainWindow *mainWindow; 196 198 QList<QDockAreaLayoutItem> item_list; 197 199 #ifndef QT_NO_TABBAR 198 200 void updateSeparatorWidgets() const; 199 201 QSet<QWidget*> usedSeparatorWidgets() const; 202 #endif //QT_NO_TABBAR 200 203 201 204 #ifndef QT_NO_TABBAR … … 232 235 QDockAreaLayoutInfo docks[4]; 233 236 int sep; // separator extent 234 QVector<QWidget*> separatorWidgets; 237 bool fallbackToSizeHints; //determines if we should use the sizehint for the dock areas (true until the layout is restored or the central widget is set) 238 mutable QVector<QWidget*> separatorWidgets; 235 239 236 240 bool isValid() const; … … 245 249 QList<int> findSeparator(const QPoint &pos) const; 246 250 247 QDockAreaLayoutItem &item( QList<int>path);248 QDockAreaLayoutInfo *info( QList<int>path);249 const QDockAreaLayoutInfo *info( QList<int>path) const;251 QDockAreaLayoutItem &item(const QList<int> &path); 252 QDockAreaLayoutInfo *info(const QList<int> &path); 253 const QDockAreaLayoutInfo *info(const QList<int> &path) const; 250 254 QDockAreaLayoutInfo *info(QWidget *widget); 251 QRect itemRect( QList<int>path) const;255 QRect itemRect(const QList<int> &path) const; 252 256 QRect separatorRect(int index) const; 253 QRect separatorRect( QList<int>path) const;254 255 bool insertGap( QList<int>path, QLayoutItem *dockWidgetItem);256 QLayoutItem *plug( QList<int>path);257 QLayoutItem *unplug( QList<int>path);258 void remove( QList<int>path);257 QRect separatorRect(const QList<int> &path) const; 258 259 bool insertGap(const QList<int> &path, QLayoutItem *dockWidgetItem); 260 QLayoutItem *plug(const QList<int> &path); 261 QLayoutItem *unplug(const QList<int> &path); 262 void remove(const QList<int> &path); 259 263 260 264 void fitLayout(); … … 276 280 const QPoint &mouse) const; 277 281 QRegion separatorRegion() const; 278 int separatorMove( QList<int> separator, const QPoint &origin, const QPoint &dest,279 QVector<QLayoutStruct> *cache); 282 int separatorMove(const QList<int> &separator, const QPoint &origin, const QPoint &dest); 283 #ifndef QT_NO_TABBAR 280 284 void updateSeparatorWidgets() const; 285 #endif //QT_NO_TABBAR 281 286 282 287 QLayoutItem *itemAt(int *x, int index) const; … … 289 294 QVector<QLayoutStruct> *hor_struct_list); 290 295 291 QRect gapRect( QList<int>path) const;296 QRect gapRect(const QList<int> &path) const; 292 297 293 298 void keepSize(QDockWidget *w); 294 299 #ifndef QT_NO_TABBAR 295 300 QSet<QTabBar*> usedTabBars() const; 296 301 QSet<QWidget*> usedSeparatorWidgets() const; 302 #endif //QT_NO_TABBAR 297 303 }; 298 304
Note:
See TracChangeset
for help on using the changeset viewer.