/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial Usage ** This file contains pre-release code and may not be distributed. ** You may use this file in accordance with the terms and conditions ** contained in the either Technology Preview License Agreement or the ** Beta Release License Agreement. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain ** additional rights. These rights are described in the Nokia Qt LGPL ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this ** package. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3.0 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU General Public License version 3.0 requirements will be ** met: http://www.gnu.org/copyleft/gpl.html. ** ** If you are unsure which license is appropriate for your use, please ** contact the sales department at http://qt.nokia.com/contact. ** $QT_END_LICENSE$ ** ****************************************************************************/ #ifndef QMDIAREA_H #define QMDIAREA_H #include #include QT_BEGIN_HEADER QT_BEGIN_NAMESPACE QT_MODULE(Gui) #ifndef QT_NO_MDIAREA class QMdiSubWindow; class QMdiAreaPrivate; class Q_GUI_EXPORT QMdiArea : public QAbstractScrollArea { Q_OBJECT Q_ENUMS(ViewMode) Q_PROPERTY(QBrush background READ background WRITE setBackground) Q_PROPERTY(WindowOrder activationOrder READ activationOrder WRITE setActivationOrder) Q_PROPERTY(ViewMode viewMode READ viewMode WRITE setViewMode) #ifndef QT_NO_TABBAR Q_PROPERTY(bool documentMode READ documentMode WRITE setDocumentMode) #endif #ifndef QT_NO_TABWIDGET Q_PROPERTY(QTabWidget::TabShape tabShape READ tabShape WRITE setTabShape) Q_PROPERTY(QTabWidget::TabPosition tabPosition READ tabPosition WRITE setTabPosition) #endif Q_ENUMS(WindowOrder) public: enum AreaOption { DontMaximizeSubWindowOnActivation = 0x1 }; Q_DECLARE_FLAGS(AreaOptions, AreaOption) enum WindowOrder { CreationOrder, StackingOrder, ActivationHistoryOrder }; enum ViewMode { SubWindowView, TabbedView }; QMdiArea(QWidget *parent = 0); ~QMdiArea(); QSize sizeHint() const; QSize minimumSizeHint() const; QMdiSubWindow *currentSubWindow() const; QMdiSubWindow *activeSubWindow() const; QList subWindowList(WindowOrder order = CreationOrder) const; QMdiSubWindow *addSubWindow(QWidget *widget, Qt::WindowFlags flags = 0); void removeSubWindow(QWidget *widget); QBrush background() const; void setBackground(const QBrush &background); WindowOrder activationOrder() const; void setActivationOrder(WindowOrder order); void setOption(AreaOption option, bool on = true); bool testOption(AreaOption opton) const; void setViewMode(ViewMode mode); ViewMode viewMode() const; #ifndef QT_NO_TABBAR bool documentMode() const; void setDocumentMode(bool enabled); #endif #ifndef QT_NO_TABWIDGET void setTabShape(QTabWidget::TabShape shape); QTabWidget::TabShape tabShape() const; void setTabPosition(QTabWidget::TabPosition position); QTabWidget::TabPosition tabPosition() const; #endif Q_SIGNALS: void subWindowActivated(QMdiSubWindow *); public Q_SLOTS: void setActiveSubWindow(QMdiSubWindow *window); void tileSubWindows(); void cascadeSubWindows(); void closeActiveSubWindow(); void closeAllSubWindows(); void activateNextSubWindow(); void activatePreviousSubWindow(); protected Q_SLOTS: void setupViewport(QWidget *viewport); protected: bool event(QEvent *event); bool eventFilter(QObject *object, QEvent *event); void paintEvent(QPaintEvent *paintEvent); void childEvent(QChildEvent *childEvent); void resizeEvent(QResizeEvent *resizeEvent); void timerEvent(QTimerEvent *timerEvent); void showEvent(QShowEvent *showEvent); bool viewportEvent(QEvent *event); void scrollContentsBy(int dx, int dy); private: Q_DISABLE_COPY(QMdiArea) Q_DECLARE_PRIVATE(QMdiArea) Q_PRIVATE_SLOT(d_func(), void _q_deactivateAllWindows()) Q_PRIVATE_SLOT(d_func(), void _q_processWindowStateChanged(Qt::WindowStates, Qt::WindowStates)) Q_PRIVATE_SLOT(d_func(), void _q_currentTabChanged(int index)) }; Q_DECLARE_OPERATORS_FOR_FLAGS(QMdiArea::AreaOptions) QT_END_NAMESPACE QT_END_HEADER #endif // QT_NO_MDIAREA #endif // QMDIAREA_H nactive/post_open_fix'>inactive/post_open_fix Mirror from: https://github.com/HDFGroup/hdf5.git
summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* [svn-r19366] Updated autoconf to version 2.6.7, libtool to version 2.2.10, an...Larry Knox2010-09-105-5/+5
* [svn-r19361] Move Windows specific compile and link flags to macrosAllen Byrne2010-09-093-94/+9
* [svn-r19325] Added parallel build commands.Allen Byrne2010-08-314-11/+95
* [svn-r19086] Snapshot version 1.9 release 74HDF Tester2010-07-181-1/+1
* [svn-r19064] Snapshot version 1.9 release 73HDF Tester2010-07-111-1/+1
* [svn-r19059] Brought changes from hdf5_1_8 to add version information for for...Larry Knox2010-07-097-6/+137
* [svn-r19047] Snapshot version 1.9 release 72HDF Tester2010-07-041-1/+1
* [svn-r19037] Added executable Linker Flag for MSVC static builds: /NODEFAULTL...Allen Byrne2010-06-292-0/+27
* [svn-r19031] Snapshot version 1.9 release 71HDF Tester2010-06-281-1/+1
* [svn-r19022] Snapshot version 1.9 release 70HDF Tester2010-06-201-1/+1
* [svn-r18996] Updated config files and install commands per external developer...Allen Byrne2010-06-141-1/+1
* [svn-r18925] Updated install of fortran mod filesAllen Byrne2010-05-281-0/+25
* [svn-r18915] Description:Quincey Koziol2010-05-271-23/+27
* [svn-r18898] Added fortran /dbglibs option to fortran compile flags for windo...Allen Byrne2010-05-251-1/+1
* [svn-r18890] Update CMake fortran configure/build with changes from community.Allen Byrne2010-05-251-0/+10
* [svn-r18856] Added CPack commands for installtion programAllen Byrne2010-05-191-3/+3
* [svn-r18823] Snapshot version 1.9 release 69HDF Tester2010-05-161-1/+1
* [svn-r18793] Add files to support building library with CMakeAllen Byrne2010-05-134-0/+607
* [svn-r18709] Purpose:Mike McGreevy2010-05-055-5/+5
* [svn-r18684] Snapshot version 1.9 release 68HDF Tester2010-05-021-1/+1
* [svn-r18589] Snapshot version 1.9 release 67HDF Tester2010-04-181-1/+1
* [svn-r18579] Purpose:Mike McGreevy2010-04-155-7/+7
* [svn-r18551] Description:Scot Breitenfeld2010-04-132-0/+8
* [svn-r18545] Snapshot version 1.9 release 66HDF Tester2010-04-111-1/+1
* [svn-r18508] Snapshot version 1.9 release 65HDF Tester2010-04-041-1/+1
* [svn-r18465] Snapshot version 1.9 release 64HDF Tester2010-03-281-1/+1
* [svn-r18432] Snapshot version 1.9 release 63HDF Tester2010-03-211-1/+1
* [svn-r18406] Snapshot version 1.9 release 62HDF Tester2010-03-141-1/+1
* [svn-r18350] Snapshot version 1.9 release 61HDF Tester2010-02-281-1/+1
* [svn-r18226] Description:Scot Breitenfeld2010-02-101-6/+11
* [svn-r18217] Snapshot version 1.9 release 60HDF Tester2010-02-071-1/+1
* [svn-r18212] Description:Quincey Koziol2010-02-051-8/+10
* [svn-r18199] Snapshot version 1.9 release 59HDF Tester2010-01-311-1/+1
* [svn-r18197] Description:Quincey Koziol2010-01-3069-8036/+8036
* [svn-r18157] Description:Quincey Koziol2010-01-23