Differences From Artifact [61a5454776]:
- File QtWidgets/QtWidget.h — part of check-in [d43a881019] at 2017-04-15 02:16:34 on branch trunk — Add QtAction and add more methods to QtWidget (user: js, size: 5761) [annotate] [blame] [check-ins using]
To Artifact [986333abc0]:
- File QtWidgets/QtWidget.h — part of check-in [3ece549448] at 2017-04-15 17:18:52 on branch trunk — Make toOF/toQt more powerful and complete QtWidget (user: js, size: 8625) [annotate] [blame] [check-ins using]
- File
src/QtWidgets/QtWidget.h
— part of check-in
[baf52ea3b1]
at
2017-04-17 23:25:45
on branch trunk
— Add a proper build system
Also lowers the minimum required Qt version to 5.5. (user: js, size: 8625) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
35 36 37 38 39 40 41 | @property bool autoFillBackground; @property of_dimension_t baseSize; @property (readonly) of_rectangle_t childrenRect; @property (readonly) QRegion childrenRegion; @property Qt::ContextMenuPolicy contextMenuPolicy; @property QCursor cursor; @property (getter=isEnabled) bool enabled; | < | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | @property bool autoFillBackground; @property of_dimension_t baseSize; @property (readonly) of_rectangle_t childrenRect; @property (readonly) QRegion childrenRegion; @property Qt::ContextMenuPolicy contextMenuPolicy; @property QCursor cursor; @property (getter=isEnabled) bool enabled; @property Qt::FocusPolicy focusPolicy; @property const QFont &font; @property (readonly) of_rectangle_t frameGeometry; @property (readonly) of_dimension_t frameSize; @property (readonly, getter=isFullScreen) bool fullScreen; @property of_rectangle_t geometry; @property (readonly) int height; |
︙ | ︙ | |||
74 75 76 77 78 79 80 | @property (copy) OFString *styleSheet; @property (copy) OFString *toolTip; @property int toolTipDuration; @property bool updatesEnabled; @property (getter=isVisible) bool visible; @property (copy) OFString *whatsThis; @property (readonly) int width; | < | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | @property (copy) OFString *styleSheet; @property (copy) OFString *toolTip; @property int toolTipDuration; @property bool updatesEnabled; @property (getter=isVisible) bool visible; @property (copy) OFString *whatsThis; @property (readonly) int width; @property Qt::WindowFlags windowFlags; @property QIcon windowIcon; @property Qt::WindowModality windowModality; @property (getter=isWindowModified) bool windowModified; @property double windowOpacity; @property (copy) OFString *windowTitle; @property (readonly) int x; |
︙ | ︙ | |||
97 98 99 100 101 102 103 | - (QPalette::ColorRole)backgroundRole; - (QBackingStore*)backingStore; - (QtWidget*)childAt: (of_point_t)point; - (void)clearFocus; - (void)clearMask; - (QMargins)contentsMargins; - (of_rectangle_t)contentsRect; | | | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - (QPalette::ColorRole)backgroundRole; - (QBackingStore*)backingStore; - (QtWidget*)childAt: (of_point_t)point; - (void)clearFocus; - (void)clearMask; - (QMargins)contentsMargins; - (of_rectangle_t)contentsRect; - (WId)effectiveWinID; - (void)ensurePolished; - (QtWidget*)focusProxy; - (QtWidget*)focusWidget; - (QFontInfo)fontInfo; - (QFontMetrics)fontMetrics; - (QPalette::ColorRole)foregroundRole; - (QPixmap)grabRectangle: (of_rectangle_t)rectangle; |
︙ | ︙ | |||
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | - (int)grabShortcutWithKey: (const QKeySequence&)key context: (Qt::ShortcutContext)context; - (QGraphicsEffect*)graphicsEffect; - (QGraphicsProxyWidget*)graphicsProxyWidget; #ifdef QT_KEYPAD_NAVIGATION - (bool)hasEditFocus; #endif - (bool)hasHeightForWidth; - (int)heightForWidth: (int)w; - (QVariant)queryInputMethod: (Qt::InputMethodQuery)query; - (void)insertAction: (QtAction*)action before: (QtAction*)before; - (void)insertActions: (OFArray OF_GENERIC(QtAction*)*)actions before: (QtAction*)before; - (bool)isAncestorOf: (QtWidget*)child; - (bool)isEnabledTo: (QtWidget*)ancestor; - (bool)isHidden; - (bool)isVisibleTo: (QtWidget*)ancestor; - (bool)isWindow; | > > | | | > | | | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | - (int)grabShortcutWithKey: (const QKeySequence&)key context: (Qt::ShortcutContext)context; - (QGraphicsEffect*)graphicsEffect; - (QGraphicsProxyWidget*)graphicsProxyWidget; #ifdef QT_KEYPAD_NAVIGATION - (bool)hasEditFocus; #endif - (bool)hasFocus; - (bool)hasHeightForWidth; - (int)heightForWidth: (int)w; - (QVariant)queryInputMethod: (Qt::InputMethodQuery)query; - (void)insertAction: (QtAction*)action before: (QtAction*)before; - (void)insertActions: (OFArray OF_GENERIC(QtAction*)*)actions before: (QtAction*)before; - (bool)isAncestorOf: (QtWidget*)child; - (bool)isEnabledTo: (QtWidget*)ancestor; - (bool)isHidden; - (bool)isVisibleTo: (QtWidget*)ancestor; - (bool)isWindow; - (of_point_t)mapPosition: (of_point_t)pos from: (QtWidget*)parent; - (of_point_t)mapPositionFromGlobal: (of_point_t)pos; - (of_point_t)mapPositionFromParent: (of_point_t)pos; - (of_point_t)mapPosition: (of_point_t)pos to: (QtWidget*)parent; - (of_point_t)mapPositionToGlobal: (of_point_t)pos; - (of_point_t)mapPositionToParent: (of_point_t)pos; - (QRegion)mask; - (QtWidget*)nativeParentWidget; - (QtWidget*)nextInFocusChain; - (void)overrideWindowFlags: (Qt::WindowFlags)flags; - (QtWidget*)parentWidget; - (QtWidget*)previousInFocusChain; - (void)releaseKeyboard; - (void)releaseMouse; - (void)releaseShortcut: (int)ID; - (void)removeAction: (QtAction*)action; - (void)renderIntoPaintDevice: (QtObject <QtPaintDevice>*)target targetOffset: (of_point_t)targetOffset sourceRegion: (QRegion)sourceRegion; - (void)renderIntoPaintDevice: (QtObject <QtPaintDevice>*)target targetOffset: (of_point_t)targetOffset sourceRegion: (QRegion)sourceRegion flags: (QWidget::RenderFlags)renderFlags; - (void)renderIntoPainter: (QPainter*)target targetOffset: (of_point_t)targetOffset sourceRegion: (QRegion)sourceRegion; - (void)renderIntoPainter: (QPainter*)target targetOffset: (of_point_t)targetOffset sourceRegion: (QRegion)sourceRegion flags: (QWidget::RenderFlags)renderFlags; - (void)repaintInRectangle: (of_rectangle_t)rect; - (void)repaintInRegion: (const QRegion&)region; - (bool)restoreGeometry: (OFDataArray*)geometry; - (OFDataArray*)saveGeometry; - (void)scrollRight: (int)dx down: (int)dy; - (void)scrollRight: (int)dx down: (int)dy inRectangle: (of_rectangle_t)rect; - (void)setAttribute: (Qt::WidgetAttribute)attribute to: (bool)on; #ifdef QT_KEYPAD_NAVIGATION - (void)setEditFocus: (bool)enable; #endif - (void)setFixedHeight: (int)height; - (void)setFixedSize: (of_dimension_t)size; - (void)setFixedWidth: (int)width; - (void)setFocus: (Qt::FocusReason)reason; - (void)setFocusProxy: (QtWidget*)widget; - (void)setForegroundRole: (QPalette::ColorRole)role; - (void)setGraphicsEffect: (QGraphicsEffect*)effect; - (void)setLayout: (QLayout*)layout; - (void)setMaskFromBitmap: (const QBitmap&)bitmap; - (void)setMask: (const QRegion&)region; - (void)setParent: (QtWidget*)parent; - (void)setParent: (QtWidget*)parent flags: (Qt::WindowFlags)flags; - (void)setAutoRepeat: (bool)enable forShortcut: (int)ID; - (void)setEnabled: (bool)enable forShortcut: (int)ID; - (void)setStyle: (QStyle*)style; - (void)setWindowRole: (OFString*)role; - (void)setWindowState: (Qt::WindowStates)windowState; - (void)stackUnder: (QtWidget*)widget; - (QStyle*)style; - (bool)testAttribute: (Qt::WidgetAttribute)attribute; - (bool)isUnderMouse; - (void)ungrabGesture: (Qt::GestureType)gesture; - (void)unsetCursor; - (void)unsetLayoutDirection; - (void)unsetLocale; - (void)updateInRectangle: (of_rectangle_t)rect; - (void)updateInRegion: (const QRegion&)region; - (void)updateGeometry; - (QRegion)visibleRegion; - (WId)winID; - (QtWidget*)window; - (QWindow*)windowHandle; - (OFString*)windowRole; - (Qt::WindowStates)windowState; - (Qt::WindowType)windowType; @end @interface QtWidget (QtPaintDevice) <QtPaintDevice> @end namespace ObjQt { static OF_INLINE QtWidget* toOF(QWidget *qWidget) { return [[[QtWidget alloc] initWithQWidget: qWidget] autorelease]; } static OF_INLINE QWidget* toQt(QtWidget *widget) { return [widget qWidget]; } } |