| 1 | /****************************************************************************
|
|---|
| 2 | **
|
|---|
| 3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
|---|
| 4 | ** All rights reserved.
|
|---|
| 5 | ** Contact: Nokia Corporation ([email protected])
|
|---|
| 6 | **
|
|---|
| 7 | ** This file is part of the QtGui module of the Qt Toolkit.
|
|---|
| 8 | **
|
|---|
| 9 | ** $QT_BEGIN_LICENSE:LGPL$
|
|---|
| 10 | ** Commercial Usage
|
|---|
| 11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
|---|
| 12 | ** accordance with the Qt Commercial License Agreement provided with the
|
|---|
| 13 | ** Software or, alternatively, in accordance with the terms contained in
|
|---|
| 14 | ** a written agreement between you and Nokia.
|
|---|
| 15 | **
|
|---|
| 16 | ** GNU Lesser General Public License Usage
|
|---|
| 17 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
|---|
| 18 | ** General Public License version 2.1 as published by the Free Software
|
|---|
| 19 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
|---|
| 20 | ** packaging of this file. Please review the following information to
|
|---|
| 21 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
|---|
| 22 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|---|
| 23 | **
|
|---|
| 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 | **
|
|---|
| 28 | ** GNU General Public License Usage
|
|---|
| 29 | ** Alternatively, this file may be used under the terms of the GNU
|
|---|
| 30 | ** General Public License version 3.0 as published by the Free Software
|
|---|
| 31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
|---|
| 32 | ** packaging of this file. Please review the following information to
|
|---|
| 33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
|---|
| 34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
|---|
| 35 | **
|
|---|
| 36 | ** If you have questions regarding the use of this file, please contact
|
|---|
| 37 | ** Nokia at [email protected].
|
|---|
| 38 | ** $QT_END_LICENSE$
|
|---|
| 39 | **
|
|---|
| 40 | ****************************************************************************/
|
|---|
| 41 |
|
|---|
| 42 | //
|
|---|
| 43 | // W A R N I N G
|
|---|
| 44 | // -------------
|
|---|
| 45 | //
|
|---|
| 46 | // This file is not part of the Qt API. It exists for the convenience
|
|---|
| 47 | // of qapplication_*.cpp, qwidget*.cpp, qcolor_x11.cpp, qfiledialog.cpp
|
|---|
| 48 | // and many other. This header file may change from version to version
|
|---|
| 49 | // without notice, or even be removed.
|
|---|
| 50 | //
|
|---|
| 51 | // We mean it.
|
|---|
| 52 | //
|
|---|
| 53 |
|
|---|
| 54 | // Private AppKit class (dumped from classdump).
|
|---|
| 55 |
|
|---|
| 56 | #import <Cocoa/Cocoa.h>
|
|---|
| 57 | #import "qnstitledframe_mac_p.h"
|
|---|
| 58 |
|
|---|
| 59 | @interface NSThemeFrame : NSTitledFrame
|
|---|
| 60 | {
|
|---|
| 61 | NSButton *toolbarButton;
|
|---|
| 62 | int toolbarVisibleStatus;
|
|---|
| 63 | NSImage *showToolbarTransitionImage;
|
|---|
| 64 | NSSize showToolbarPreWindowSize;
|
|---|
| 65 | NSButton *modeButton;
|
|---|
| 66 | int leftGroupTrackingTagNum;
|
|---|
| 67 | int rightGroupTrackingTagNum;
|
|---|
| 68 | char mouseInsideLeftGroup;
|
|---|
| 69 | char mouseInsideRightGroup;
|
|---|
| 70 | int widgetState;
|
|---|
| 71 | NSString *displayName;
|
|---|
| 72 | }
|
|---|
| 73 |
|
|---|
| 74 | + (void)initialize;
|
|---|
| 75 | + (float)_windowBorderThickness:(unsigned int)fp8;
|
|---|
| 76 | + (float)_minXWindowBorderWidth:(unsigned int)fp8;
|
|---|
| 77 | + (float)_maxXWindowBorderWidth:(unsigned int)fp8;
|
|---|
| 78 | + (float)_minYWindowBorderHeight:(unsigned int)fp8;
|
|---|
| 79 | + (float)_windowTitlebarButtonSpacingWidth:(unsigned int)fp8;
|
|---|
| 80 | + (float)_windowFileButtonSpacingWidth:(unsigned int)fp8;
|
|---|
| 81 | + (float)_minXTitlebarWidgetInset:(unsigned int)fp8;
|
|---|
| 82 | + (float)_maxXTitlebarWidgetInset:(unsigned int)fp8;
|
|---|
| 83 | + (float)minFrameWidthWithTitle:fp8 styleMask:(unsigned int)fp12;
|
|---|
| 84 | + (float)_windowSideTitlebarTitleMinWidth:(unsigned int)fp8;
|
|---|
| 85 | + (float)_windowTitlebarTitleMinHeight:(unsigned int)fp8;
|
|---|
| 86 | + (float)_sideTitlebarWidth:(unsigned int)fp8;
|
|---|
| 87 | + (float)_titlebarHeight:(unsigned int)fp8;
|
|---|
| 88 | + (float)_resizeHeight:(unsigned int)fp8;
|
|---|
| 89 | + (char)_resizeFromEdge;
|
|---|
| 90 | + (struct _NSSize)sizeOfTitlebarButtons:(unsigned int)fp8;
|
|---|
| 91 | + (float)_contentToFrameMinXWidth:(unsigned int)fp8;
|
|---|
| 92 | + (float)_contentToFrameMaxXWidth:(unsigned int)fp8;
|
|---|
| 93 | + (float)_contentToFrameMinYHeight:(unsigned int)fp8;
|
|---|
| 94 | + (float)_contentToFrameMaxYHeight:(unsigned int)fp8;
|
|---|
| 95 | + (unsigned int)_validateStyleMask:(unsigned int)fp8;
|
|---|
| 96 | - (struct _NSSize)_topCornerSize;
|
|---|
| 97 | - (struct _NSSize)_bottomCornerSize;
|
|---|
| 98 | - (void *)_createWindowOpaqueShape;
|
|---|
| 99 | - (void)shapeWindow;
|
|---|
| 100 | - (void)_recursiveDisplayRectIfNeededIgnoringOpacity:(NSRect)fp8 isVisibleRect:(char)fp24 rectIsVisibleRectForView:fp28 topView:(char)fp32;
|
|---|
| 101 | - (void *)_regionForOpaqueDescendants:(NSRect)fp8 forMove:(char)fp24;
|
|---|
| 102 | - (void)_drawFrameInterior:(NSRect *)fp8 clip:(NSRect)fp12;
|
|---|
| 103 | - (void)_setTextShadow:(char)fp8;
|
|---|
| 104 | - (void)_drawTitleBar:(NSRect)fp8;
|
|---|
| 105 | - (void)_drawResizeIndicators:(NSRect)fp8;
|
|---|
| 106 | - (void)_drawFrameRects:(NSRect)fp8;
|
|---|
| 107 | - (void)drawFrame:(NSRect)fp8;
|
|---|
| 108 | - contentFill;
|
|---|
| 109 | - (void)viewDidEndLiveResize;
|
|---|
| 110 | - (float)contentAlpha;
|
|---|
| 111 | - (void)setThemeFrameWidgetState:(int)fp8;
|
|---|
| 112 | - (char)constrainResizeEdge:(int *)fp8 withDelta:(struct _NSSize)fp12 elapsedTime:(float)fp20;
|
|---|
| 113 | - (void)addFileButton:fp8;
|
|---|
| 114 | - (void)_updateButtons;
|
|---|
| 115 | - (void)_updateButtonState;
|
|---|
| 116 | - newCloseButton;
|
|---|
| 117 | - newZoomButton;
|
|---|
| 118 | - newMiniaturizeButton;
|
|---|
| 119 | - newToolbarButton;
|
|---|
| 120 | - newFileButton;
|
|---|
| 121 | - (void)_resetTitleBarButtons;
|
|---|
| 122 | - (void)setDocumentEdited:(char)fp8;
|
|---|
| 123 | - toolbarButton;
|
|---|
| 124 | - modeButton;
|
|---|
| 125 | - initWithFrame:(NSRect)fp8 styleMask:(unsigned int)fp24 owner:fp28;
|
|---|
| 126 | - (void)dealloc;
|
|---|
| 127 | - (void)setFrameSize:(struct _NSSize)fp8;
|
|---|
| 128 | - (char)_canHaveToolbar;
|
|---|
| 129 | - (char)_toolbarIsInTransition;
|
|---|
| 130 | - (char)_toolbarIsShown;
|
|---|
| 131 | - (char)_toolbarIsHidden;
|
|---|
| 132 | - _toolbarView;
|
|---|
| 133 | - _toolbar;
|
|---|
| 134 | - (float)_distanceFromToolbarBaseToTitlebar;
|
|---|
| 135 | - (unsigned int)_shadowFlags;
|
|---|
| 136 | - (NSRect)frameRectForContentRect:(NSRect)fp8 styleMask:(unsigned int)fp24;
|
|---|
| 137 | - (NSRect)contentRectForFrameRect:(NSRect)fp8 styleMask:(unsigned int)fp24;
|
|---|
| 138 | - (struct _NSSize)minFrameSizeForMinContentSize:(struct _NSSize)fp8 styleMask:(unsigned int)fp16;
|
|---|
| 139 | - (NSRect)contentRect;
|
|---|
| 140 | - (NSRect)_contentRectExcludingToolbar;
|
|---|
| 141 | - (NSRect)_contentRectIncludingToolbarAtHome;
|
|---|
| 142 | - (void)_setToolbarShowHideResizeWeightingOptimizationOn:(char)fp8;
|
|---|
| 143 | - (char)_usingToolbarShowHideWeightingOptimization;
|
|---|
| 144 | - (void)handleSetFrameCommonRedisplay;
|
|---|
| 145 | - (void)_startLiveResizeAsTopLevel;
|
|---|
| 146 | - (void)_endLiveResizeAsTopLevel;
|
|---|
| 147 | - (void)_growContentReshapeContentAndToolbarView:(int)fp8 animate:(char)fp12;
|
|---|
| 148 | - (char)_growWindowReshapeContentAndToolbarView:(int)fp8 animate:(char)fp12;
|
|---|
| 149 | - (void)_reshapeContentAndToolbarView:(int)fp8 resizeWindow:(char)fp12 animate:(char)fp16;
|
|---|
| 150 | - (void)_toolbarFrameSizeChanged:fp8 oldSize:(struct _NSSize)fp12;
|
|---|
| 151 | - (void)_syncToolbarPosition;
|
|---|
| 152 | - (void)_showHideToolbar:(int)fp8 resizeWindow:(char)fp12 animate:(char)fp16;
|
|---|
| 153 | - (void)_showToolbarWithAnimation:(char)fp8;
|
|---|
| 154 | - (void)_hideToolbarWithAnimation:(char)fp8;
|
|---|
| 155 | - (void)_drawToolbarTransitionIfNecessary;
|
|---|
| 156 | - (void)drawRect:(NSRect)fp8;
|
|---|
| 157 | - (void)resetCursorRects;
|
|---|
| 158 | - (char)shouldBeTreatedAsInkEvent:fp8;
|
|---|
| 159 | - (char)_shouldBeTreatedAsInkEventInInactiveWindow:fp8;
|
|---|
| 160 | //- hitTest:(struct _NSPoint)fp8; // collides with hittest in qcocoasharedwindowmethods_mac_p.h
|
|---|
| 161 | - (NSRect)_leftGroupRect;
|
|---|
| 162 | - (NSRect)_rightGroupRect;
|
|---|
| 163 | - (void)_updateWidgets;
|
|---|
| 164 | - (void)_updateMouseTracking;
|
|---|
| 165 | - (void)mouseEntered:fp8;
|
|---|
| 166 | - (void)mouseExited:fp8;
|
|---|
| 167 | - (void)_setMouseEnteredGroup:(char)fp8 entered:(char)fp12;
|
|---|
| 168 | - (char)_mouseInGroup:fp8;
|
|---|
| 169 | - (struct _NSSize)miniaturizedSize;
|
|---|
| 170 | - (float)_minXTitlebarDecorationMinWidth;
|
|---|
| 171 | - (float)_maxXTitlebarDecorationMinWidth;
|
|---|
| 172 | - (struct _NSSize)minFrameSize;
|
|---|
| 173 | - (float)_windowBorderThickness;
|
|---|
| 174 | - (float)_windowTitlebarXResizeBorderThickness;
|
|---|
| 175 | - (float)_windowTitlebarYResizeBorderThickness;
|
|---|
| 176 | - (float)_windowResizeBorderThickness;
|
|---|
| 177 | - (float)_minXWindowBorderWidth;
|
|---|
| 178 | - (float)_maxXWindowBorderWidth;
|
|---|
| 179 | - (float)_minYWindowBorderHeight;
|
|---|
| 180 | - (float)_maxYWindowBorderHeight;
|
|---|
| 181 | - (float)_minYTitlebarButtonsOffset;
|
|---|
| 182 | - (float)_minYTitlebarTitleOffset;
|
|---|
| 183 | - (float)_sideTitlebarWidth;
|
|---|
| 184 | - (float)_titlebarHeight;
|
|---|
| 185 | - (NSRect)_titlebarTitleRect;
|
|---|
| 186 | - (NSRect)titlebarRect;
|
|---|
| 187 | - (float)_windowTitlebarTitleMinHeight;
|
|---|
| 188 | - (struct _NSSize)_sizeOfTitlebarFileButton;
|
|---|
| 189 | - (struct _NSSize)sizeOfTitlebarToolbarButton;
|
|---|
| 190 | - (float)_windowTitlebarButtonSpacingWidth;
|
|---|
| 191 | - (float)_windowFileButtonSpacingWidth;
|
|---|
| 192 | - (float)_minXTitlebarWidgetInset;
|
|---|
| 193 | - (float)_maxXTitlebarWidgetInset;
|
|---|
| 194 | - (float)_minXTitlebarButtonsWidth;
|
|---|
| 195 | - (float)_maxXTitlebarButtonsWidth;
|
|---|
| 196 | - (struct _NSPoint)_closeButtonOrigin;
|
|---|
| 197 | - (struct _NSPoint)_zoomButtonOrigin;
|
|---|
| 198 | - (struct _NSPoint)_collapseButtonOrigin;
|
|---|
| 199 | - (struct _NSPoint)_toolbarButtonOrigin;
|
|---|
| 200 | - (struct _NSPoint)_fileButtonOrigin;
|
|---|
| 201 | - (void)_tileTitlebar;
|
|---|
| 202 | - (NSRect)_commandPopupRect;
|
|---|
| 203 | - (void)_resetDragMargins;
|
|---|
| 204 | - (float)_maxYTitlebarDragHeight;
|
|---|
| 205 | - (float)_minXTitlebarDragWidth;
|
|---|
| 206 | - (float)_maxXTitlebarDragWidth;
|
|---|
| 207 | - (float)_contentToFrameMinXWidth;
|
|---|
| 208 | - (float)_contentToFrameMaxXWidth;
|
|---|
| 209 | - (float)_contentToFrameMinYHeight;
|
|---|
| 210 | - (float)_contentToFrameMaxYHeight;
|
|---|
| 211 | - (float)_windowResizeCornerThickness;
|
|---|
| 212 | - (NSRect)_minYResizeRect;
|
|---|
| 213 | - (NSRect)_minYminXResizeRect;
|
|---|
| 214 | - (NSRect)_minYmaxXResizeRect;
|
|---|
| 215 | - (NSRect)_minXResizeRect;
|
|---|
| 216 | - (NSRect)_minXminYResizeRect;
|
|---|
| 217 | - (NSRect)_minXmaxYResizeRect;
|
|---|
| 218 | - (NSRect)_maxYResizeRect;
|
|---|
| 219 | - (NSRect)_maxYminXResizeRect;
|
|---|
| 220 | - (NSRect)_maxYmaxXResizeRect;
|
|---|
| 221 | - (NSRect)_maxXResizeRect;
|
|---|
| 222 | - (NSRect)_maxXminYResizeRect;
|
|---|
| 223 | - (NSRect)_maxXmaxYResizeRect;
|
|---|
| 224 | - (NSRect)_minXTitlebarResizeRect;
|
|---|
| 225 | - (NSRect)_maxXTitlebarResizeRect;
|
|---|
| 226 | - (NSRect)_minXBorderRect;
|
|---|
| 227 | - (NSRect)_maxXBorderRect;
|
|---|
| 228 | - (NSRect)_maxYBorderRect;
|
|---|
| 229 | - (NSRect)_minYBorderRect;
|
|---|
| 230 | - (void)_setUtilityWindow:(char)fp8;
|
|---|
| 231 | - (char)_isUtility;
|
|---|
| 232 | - (float)_sheetHeightAdjustment;
|
|---|
| 233 | - (void)_setSheet:(char)fp8;
|
|---|
| 234 | - (char)_isSheet;
|
|---|
| 235 | - (char)_isResizable;
|
|---|
| 236 | - (char)_isClosable;
|
|---|
| 237 | - (char)_isMiniaturizable;
|
|---|
| 238 | - (char)_hasToolbar;
|
|---|
| 239 | - (NSRect)_growBoxRect;
|
|---|
| 240 | - (void)_drawGrowBoxWithClip:(NSRect)fp8;
|
|---|
| 241 | - (char)_inactiveButtonsNeedMask;
|
|---|
| 242 | - (void)mouseDown:fp8;
|
|---|
| 243 | - _displayName;
|
|---|
| 244 | - (void)_setDisplayName:fp8;
|
|---|
| 245 |
|
|---|
| 246 | @end
|
|---|