1 /**************************************************************************** 2 ** $Id: qt/qgrid.h 3.3.8 edited Jan 11 14:38 $ 3 ** 4 ** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved. 5 ** 6 ** This file is part of the widgets module of the Qt GUI Toolkit. 7 ** 8 ** This file may be distributed under the terms of the Q Public License 9 ** as defined by Trolltech ASA of Norway and appearing in the file 10 ** LICENSE.QPL included in the packaging of this file. 11 ** 12 ** This file may be distributed and/or modified under the terms of the 13 ** GNU General Public License version 2 as published by the Free Software 14 ** Foundation and appearing in the file LICENSE.GPL included in the 15 ** packaging of this file. 16 ** 17 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition 18 ** licenses may use this file in accordance with the Qt Commercial License 19 ** Agreement provided with the Software. 20 ** 21 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 22 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 23 ** 24 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for 25 ** information about Qt Commercial License Agreements. 26 ** See http://www.trolltech.com/qpl/ for QPL licensing information. 27 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 28 ** 29 ** Contact info@trolltech.com if any conditions of this licensing are 30 ** not clear to you. 31 ** 32 **********************************************************************/ 33 34 #ifndef QGRID_H 35 #define QGRID_H 36 37 #ifndef QT_H 38 #include "qframe.h" 39 #endif // QT_H 40 41 #ifndef QT_NO_GRID 42 43 class QGridLayout; 44 45 class Q_EXPORT QGrid : public QFrame 46 { 47 Q_OBJECT 48 public: 49 QGrid( int n, QWidget* parent=0, const char* name=0, WFlags f = 0 ); 50 QGrid( int n, Orientation orient, QWidget* parent=0, const char* name=0, 51 WFlags f = 0 ); 52 53 void setSpacing( int ); 54 QSize sizeHint() const; 55 56 #ifndef QT_NO_COMPAT 57 typedef Orientation Direction; 58 #endif 59 60 protected: 61 void frameChanged(); 62 63 private: 64 QGridLayout *lay; 65 private: // Disabled copy constructor and operator= 66 #if defined(Q_DISABLE_COPY) 67 QGrid( const QGrid & ); 68 QGrid& operator=( const QGrid & ); 69 #endif 70 }; 71 72 #endif // QT_NO_GRID 73 74 #endif // QGRID_H 75