64 #include <QtGui/qapplication.h> 65 #include <private/qmdisubwindow_p.h> 66 #include <private/qabstractscrollarea_p.h> 128 static void getCandidatePlacements(
131 static QPoint findBestPlacement(
133 static void findNonInsiders(
135 static void findMaxOverlappers(
152 #ifndef QT_NO_RUBBERBAND 171 #ifndef QT_NO_TABWIDGET 191 void _q_deactivateAllWindows(
QMdiSubWindow *aboutToActivate = 0);
192 void _q_processWindowStateChanged(Qt::WindowStates oldState, Qt::WindowStates newState);
193 void _q_currentTabChanged(
int index);
194 void _q_closeTab(
int index);
195 void _q_moveTab(
int from,
int to);
201 void arrangeMinimizedSubWindows();
203 void activateCurrentWindow();
204 void activateHighlightedWindow();
207 void updateActiveWindow(
int removedIndex,
bool activeRemoved);
208 void updateScrollBars();
210 bool scrollBarsEnabled()
const;
211 bool lastWindowAboutToBeDestroyed()
const;
212 void setChildActivationEnabled(
bool enable =
true,
bool onlyNextActivationEvent =
false)
const;
213 QRect resizeToMinimumTileSize(
const QSize &minSubWindowSize,
int subWindowCount);
216 int removed = -1,
int fromIndex = -1)
const;
217 void highlightNextSubWindow(
int increaseFactor);
219 void disconnectSubWindow(
QObject *subWindow);
222 void updateTabBarGeometry();
223 void refreshTabBar();
229 if (resizeTimerId > 0)
230 q->killTimer(resizeTimerId);
231 resizeTimerId = q->startTimer(200);
237 if (tabToPreviousTimerId > 0)
238 q->killTimer(tabToPreviousTimerId);
253 return subWindow->d_func()->isExplicitlyDeactivated;
259 subWindow->d_func()->setActive(active, changeFocus);
262 #ifndef QT_NO_RUBBERBAND 265 if (!subWindow || !rubberBand)
274 if (rubberBand && rubberBand->
isVisible())
276 indexToHighlighted = -1;
278 #endif // QT_NO_RUBBERBAND 281 #endif // QT_NO_MDIAREA 285 #endif // QMDIAREA_P_H
static int keyboardInputInterval()
QList< QMdi::Rearranger * > pendingRearrangements
QMdi::Rearranger * regularTiler
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QMdiSubWindow > aboutToBecomeActive
bool showActiveWindowMaximized
QMdiArea::AreaOptions options
bool ignoreWindowStateChange
virtual void rearrange(QList< QWidget *> &widgets, const QRect &domain) const =0
void showRubberBandFor(QMdiSubWindow *subWindow)
ViewMode
This enum describes the view mode of the area; i.
QList< QPointer< QMdiSubWindow > > pendingPlacements
The QObject class is the base class of all Qt objects.
QMdiArea::ViewMode viewMode
QList< QPointer< QMdiSubWindow > > childWindows
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setGeometry(const QRect &r)
Sets the geometry of the rubber band to rect, specified in the coordinate system of its parent widget...
int indexToPreviousWindow
bool tileCalledFromResizeEvent
The QMdiArea widget provides an area in which MDI windows are displayed.
QMdi::Rearranger * cascader
QPointer< QMdiSubWindow > active
virtual Type type() const =0
bool windowStaysOnTop(QMdiSubWindow *subWindow) const
bool ignoreGeometryChange
QTabWidget::TabShape tabShape
The QBrush class defines the fill pattern of shapes drawn by QPainter.
#define Q_DECLARE_PUBLIC(Class)
void startTabToPreviousTimer()
void setActive(QMdiSubWindow *subWindow, bool active=true, bool changeFocus=true) const
QList< int > indicesToActivatedChildren
The QPoint class defines a point in the plane using integer precision.
WindowOrder
Specifies the criteria to use for ordering the list of child windows returned by subWindowList().
The QRect class defines a rectangle in the plane using integer precision.
bool isExplicitlyDeactivated(QMdiSubWindow *subWindow) const
The QSize class defines the size of a two-dimensional object using integer point precision.
QMdi::Rearranger * iconTiler
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary...
QTabWidget::TabPosition tabPosition
QMdiArea::WindowOrder activationOrder
The QMdiSubWindow class provides a subwindow class for QMdiArea.