- Timestamp:
- Jul 31, 2009, 1:13:57 AM (16 years ago)
- Location:
- trunk/src/gui
- Files:
-
- 13 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/gui.pro
r92 r95 5 5 win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x65000000 6 6 7 !win32:! embedded:!mac:CONFIG += x117 !win32:!os2:!embedded:!mac:CONFIG += x11 8 8 9 9 unix:QMAKE_PKGCONFIG_REQUIRES = QtCore … … 20 20 21 21 #modules 22 # @todo on OS/2, temporarily disable some modules until implemented 23 os2 { 24 include(kernel/kernel.pri) 25 } else { 26 include(kernel/kernel.pri) 27 include(image/image.pri) 28 include(painting/painting.pri) 29 include(text/text.pri) 30 include(styles/styles.pri) 31 include(widgets/widgets.pri) 32 include(dialogs/dialogs.pri) 33 include(accessible/accessible.pri) 34 include(itemviews/itemviews.pri) 35 include(inputmethod/inputmethod.pri) 36 include(graphicsview/graphicsview.pri) 37 include(util/util.pri) 38 } 22 include(kernel/kernel.pri) 23 include(image/image.pri) 24 include(painting/painting.pri) 25 include(text/text.pri) 26 include(styles/styles.pri) 27 include(widgets/widgets.pri) 28 include(dialogs/dialogs.pri) 29 include(accessible/accessible.pri) 30 include(itemviews/itemviews.pri) 31 include(inputmethod/inputmethod.pri) 32 include(graphicsview/graphicsview.pri) 33 include(util/util.pri) 39 34 40 35 embedded: QT += network -
trunk/src/gui/image/image.pri
r2 r95 50 50 win32 { 51 51 SOURCES += image/qpixmap_win.cpp 52 } 53 os2 { 54 SOURCES += image/qpixmap_pm.cpp 52 55 } 53 56 embedded { -
trunk/src/gui/image/qpixmap.cpp
r2 r95 1844 1844 #elif defined(Q_WS_WIN) 1845 1845 return 32; // XXX 1846 #elif defined(Q_WS_PM) 1847 return 32; // @todo check this 1846 1848 #elif defined(Q_WS_MAC) 1847 1849 return 32; -
trunk/src/gui/image/qpixmapdatafactory.cpp
r2 r95 51 51 # include <private/qpixmap_raster_p.h> 52 52 #endif 53 #ifdef Q_WS_PM 54 # include <private/qpixmap_raster_p.h> // @todo check this 55 #endif 53 56 #ifdef Q_WS_MAC 54 57 # include <private/qpixmap_mac_p.h> … … 78 81 #elif defined(Q_WS_WIN) 79 82 return new QRasterPixmapData(type); 83 #elif defined(Q_WS_PM) 84 return new QRasterPixmapData(type); // @todo check this 80 85 #elif defined(Q_WS_MAC) 81 86 return new QMacPixmapData(type); -
trunk/src/gui/kernel/kernel.pri
r92 r95 92 92 93 93 os2 { 94 # @todo override everything since most things are not ready...95 HEADERS = \96 kernel/qapplication.h \97 kernel/qapplication_p.h \98 kernel/qwidget.h \99 kernel/qwidget_p.h100 SOURCES = \101 kernel/qapplication.cpp \102 kernel/qwidget.cpp103 104 94 SOURCES += \ 105 95 kernel/qapplication_pm.cpp \ 96 kernel/qclipboard_pm.cpp \ 97 kernel/qcursor_pm.cpp \ 98 kernel/qdesktopwidget_pm.cpp \ 99 kernel/qdnd_pm.cpp \ 100 kernel/qkeymapper_pm.cpp \ 101 kernel/qsound_pm.cpp \ 106 102 kernel/qwidget_pm.cpp 107 103 } -
trunk/src/gui/kernel/qapplication.cpp
r92 r95 127 127 QApplicationPrivate *QApplicationPrivate::self = 0; 128 128 129 #ifndef QT_NO_IM 129 130 QInputContext *QApplicationPrivate::inputContext; 131 #endif 130 132 131 133 bool QApplicationPrivate::quitOnLastWindowClosed = true; … … 2056 2058 focus_widget = focus; 2057 2059 2060 #ifndef QT_NO_IM 2058 2061 if (prev && ((reason != Qt::PopupFocusReason && reason != Qt::MenuBarFocusReason 2059 2062 && prev->testAttribute(Qt::WA_InputMethodEnabled)) … … 2068 2071 } 2069 2072 } 2073 #endif 2070 2074 2071 2075 if(focus_widget) … … 2089 2093 } 2090 2094 if(focus && QApplicationPrivate::focus_widget == focus) { 2095 #ifndef QT_NO_IM 2091 2096 if (focus->testAttribute(Qt::WA_InputMethodEnabled)) { 2092 2097 QInputContext *qic = focus->inputContext(); … … 2094 2099 qic->setFocusWidget( focus_widget ); 2095 2100 } 2101 #endif 2096 2102 QFocusEvent in(QEvent::FocusIn, reason); 2097 2103 QPointer<QWidget> that = focus; … … 4903 4909 void QApplication::setInputContext(QInputContext *inputContext) 4904 4910 { 4911 #ifndef QT_NO_IM 4905 4912 Q_D(QApplication); 4906 4913 Q_UNUSED(d);// only static members being used. … … 4912 4919 delete d->inputContext; 4913 4920 d->inputContext = inputContext; 4921 #endif 4914 4922 } 4915 4923 … … 4921 4929 QInputContext *QApplication::inputContext() const 4922 4930 { 4931 #ifndef QT_NO_IM 4923 4932 Q_D(const QApplication); 4924 4933 Q_UNUSED(d);// only static members being used. … … 4936 4945 #endif 4937 4946 return d->inputContext; 4947 #else 4948 return 0; 4949 #endif 4938 4950 } 4939 4951 -
trunk/src/gui/kernel/qapplication_p.h
r92 r95 317 317 } 318 318 #endif 319 #ifndef QT_NO_IM 319 320 static QInputContext *inputContext; 320 321 #endif 321 322 static Qt::MouseButtons mouse_buttons; 322 323 static Qt::KeyboardModifiers modifier_buttons; -
trunk/src/gui/kernel/qapplication_pm.cpp
r92 r95 82 82 static bool qt_try_modal(QWidget *, QMSG *, int& ret); 83 83 84 static QWidget *qt_button_down = 0; // widget got last button-down 84 QWidget *qt_button_down = 0; // widget got last button-down 85 QPointer<QWidget> qt_last_mouse_receiver = 0; 85 86 86 87 static HWND autoCaptureWnd = NULLHANDLE; … … 273 274 *****************************************************************************/ 274 275 276 void QApplicationPrivate::createEventDispatcher() 277 { 278 // @todo implement 279 } 280 275 281 /***************************************************************************** 276 282 Platform specific QApplication members … … 286 292 } 287 293 294 void QApplication::setCursorFlashTime(int msecs) 295 { 296 // @todo implement 297 } 298 299 300 int QApplication::cursorFlashTime() 301 { 302 // @todo implement 303 return 0; 304 } 305 306 void QApplication::setDoubleClickInterval(int ms) 307 { 308 // @todo implement 309 } 310 311 int QApplication::doubleClickInterval() 312 { 313 // @todo implement 314 return 0; 315 } 316 317 318 void QApplication::setKeyboardInputInterval(int ms) 319 { 320 // @todo implement 321 } 322 323 int QApplication::keyboardInputInterval() 324 { 325 // @todo implement 326 return 0; 327 } 328 329 #ifndef QT_NO_WHEELEVENT 330 void QApplication::setWheelScrollLines(int n) 331 { 332 // @todo implement 333 } 334 335 int QApplication::wheelScrollLines() 336 { 337 // @todo implement 338 return 0; 339 } 340 #endif //QT_NO_WHEELEVENT 341 342 void QApplication::setEffectEnabled(Qt::UIEffect effect, bool enable) 343 { 344 // @todo implement 345 } 346 347 bool QApplication::isEffectEnabled(Qt::UIEffect effect) 348 { 349 // @todo implement 350 return false; 351 } 352 353 void QApplication::beep() 354 { 355 // @todo implement 356 } 357 358 void QApplication::alert(QWidget *widget, int duration) 359 { 360 // @todo implement 361 } 362 288 363 /***************************************************************************** 289 364 QApplication cursor stack 290 365 *****************************************************************************/ 291 366 367 #ifndef QT_NO_CURSOR 368 369 void QApplication::setOverrideCursor(const QCursor &cursor) 370 { 371 // @todo implement 372 } 373 374 void QApplication::restoreOverrideCursor() 375 { 376 // @todo implement 377 } 378 379 #endif 380 292 381 /***************************************************************************** 293 382 Routines to find a Qt widget from a screen position 294 383 *****************************************************************************/ 295 384 385 QWidget *QApplication::topLevelAt(const QPoint &pos) 386 { 387 // @todo implement 388 return 0; 389 } 390 296 391 /***************************************************************************** 297 392 Main event loop 298 393 *****************************************************************************/ 394 395 // QtWndProc() receives all messages from the main event loop 396 397 extern "C" 398 MRESULT EXPENTRY QtWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 399 { 400 // @todo implement 401 return FALSE; 402 } 299 403 300 404 /***************************************************************************** … … 315 419 *****************************************************************************/ 316 420 421 bool QApplicationPrivate::modalState() 422 { 423 // @todo implement 424 return false; 425 } 426 427 void QApplicationPrivate::enterModal_sys(QWidget *widget) 428 { 429 // @todo implement 430 } 431 432 void QApplicationPrivate::leaveModal_sys(QWidget *widget) 433 { 434 // @todo implement 435 } 436 317 437 /***************************************************************************** 318 438 Popup widget mechanism … … 329 449 *****************************************************************************/ 330 450 451 void QApplicationPrivate::openPopup(QWidget *popup) 452 { 453 // @todo implement 454 } 455 456 void QApplicationPrivate::closePopup(QWidget *popup) 457 { 458 // @todo implement 459 } 460 331 461 /***************************************************************************** 332 462 Event translation; translates PM events to Qt events -
trunk/src/gui/kernel/qclipboard.cpp
r2 r95 160 160 #endif 161 161 162 #if ndef Q_WS_WIN32162 #if !defined(Q_WS_WIN32) && !defined(Q_WS_PM) 163 163 /*! 164 164 \internal … … 230 230 231 231 \value Selection indicates that data should be stored and retrieved from 232 the global mouse selection. Support for \c Selection is provided only on 232 the global mouse selection. Support for \c Selection is provided only on 233 233 systems with a global mouse selection (e.g. X11). 234 234 … … 346 346 image is retrieved from the global clipboard. If \a mode is 347 347 QClipboard::Selection, the image is retrieved from the global 348 mouse selection. 348 mouse selection. 349 349 350 350 \sa setImage() pixmap() mimeData(), QImage::isNull() … … 461 461 */ 462 462 463 /*! 463 /*! 464 464 \fn void QClipboard::clear(Mode mode) 465 465 Clear the clipboard contents. … … 469 469 function clears the the global clipboard contents. If \a mode is 470 470 QClipboard::Selection, this function clears the global mouse 471 selection contents. If \a mode is QClipboard::FindBuffer, this 471 selection contents. If \a mode is QClipboard::FindBuffer, this 472 472 function clears the search string buffer. 473 473 … … 562 562 } 563 563 564 /*! 564 /*! 565 565 \internal 566 566 \fn bool QClipboard::supportsMode(Mode mode) const; … … 569 569 */ 570 570 571 /*! 571 /*! 572 572 \internal 573 573 \fn bool QClipboard::ownsMode(Mode mode) const; … … 576 576 */ 577 577 578 /*! 578 /*! 579 579 \internal 580 580 Emits the appropriate changed signal for \a mode. -
trunk/src/gui/kernel/qwidget.cpp
r92 r95 298 298 void QWidget::setInputContext(QInputContext *context) 299 299 { 300 #ifndef QT_NO_IM 300 301 Q_D(QWidget); 301 302 if (!testAttribute(Qt::WA_InputMethodEnabled)) 302 303 return; 303 #ifndef QT_NO_IM304 304 if (d->ic) 305 305 delete d->ic; … … 323 323 void QWidget::resetInputContext() 324 324 { 325 #ifndef QT_NO_IM 325 326 if (!hasFocus()) 326 327 return; 327 #ifndef QT_NO_IM328 328 QInputContext *qic = this->inputContext(); 329 329 if(qic) … … 9822 9822 #endif 9823 9823 case Qt::WA_NativeWindow: { 9824 #ifndef QT_NO_IM 9824 9825 QInputContext *ic = 0; 9825 9826 if (on && !internalWinId() && testAttribute(Qt::WA_InputMethodEnabled) && hasFocus()) { … … 9828 9829 ic->setFocusWidget(0); 9829 9830 } 9831 #endif 9830 9832 if (!qApp->testAttribute(Qt::AA_DontCreateNativeWidgetSiblings) && parentWidget()) 9831 9833 parentWidget()->d_func()->enforceNativeChildren(); 9832 9834 if (on && !internalWinId() && testAttribute(Qt::WA_WState_Created)) 9833 9835 d->createWinId(); 9836 #ifndef QT_NO_IM 9834 9837 if (ic) 9835 9838 ic->setFocusWidget(this); 9839 #endif 9836 9840 break; 9837 9841 } … … 9867 9871 QInputContextPrivate::updateImeStatus(this, true); 9868 9872 #endif 9873 #ifndef QT_NO_IM 9869 9874 QInputContext *ic = d->ic; 9870 9875 if (!ic) { … … 9881 9886 } 9882 9887 } 9888 #endif 9883 9889 break; 9884 9890 } -
trunk/src/gui/kernel/qwidget_p.h
r92 r95 594 594 #endif 595 595 596 #if defined(Q_WS_X11) || defined (Q_WS_WIN) 596 #if defined(Q_WS_X11) || defined (Q_WS_WIN) || defined (Q_WS_PM) || defined(Q_WS_MAC) 597 597 #ifdef Q_WS_MAC 598 598 void setWSGeometry(bool dontShow=false, const QRect &oldRect = QRect()); -
trunk/src/gui/kernel/qwidget_pm.cpp
r92 r95 64 64 *****************************************************************************/ 65 65 66 void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyOldWindow) 67 { 68 // @todo implement 69 } 70 71 void QWidget::destroy(bool destroyWindow, bool destroySubWindows) 72 { 73 // @todo implement 74 } 75 76 void QWidgetPrivate::setParent_sys(QWidget *parent, Qt::WindowFlags f) 77 { 78 // @todo implement 79 } 80 81 QPoint QWidget::mapToGlobal(const QPoint &pos) const 82 { 83 // @todo implement 84 return QPoint(); 85 } 86 87 QPoint QWidget::mapFromGlobal(const QPoint &pos) const 88 { 89 // @todo implement 90 return QPoint(); 91 } 92 93 void QWidgetPrivate::updateSystemBackground() {} 94 95 #ifndef QT_NO_CURSOR 96 void QWidgetPrivate::setCursor_sys(const QCursor &cursor) 97 { 98 // @todo implement 99 } 100 101 void QWidgetPrivate::unsetCursor_sys() 102 { 103 // @todo implement 104 } 105 #endif 106 107 void QWidgetPrivate::setWindowTitle_sys(const QString &caption) 108 { 109 // @todo implement 110 } 111 112 void QWidgetPrivate::setWindowIcon_sys(bool forceReset) 113 { 114 // @todo implement 115 } 116 117 void QWidgetPrivate::setWindowIconText_sys(const QString &iconText) 118 { 119 Q_UNUSED(iconText); 120 } 121 122 void QWidget::grabMouse() 123 { 124 // @todo implement 125 } 126 127 void QWidget::grabMouse(const QCursor &cursor) 128 { 129 // @todo implement 130 } 131 132 void QWidget::releaseMouse() 133 { 134 // @todo implement 135 } 136 137 void QWidget::grabKeyboard() 138 { 139 // @todo implement 140 } 141 142 void QWidget::releaseKeyboard() 143 { 144 // @todo implement 145 } 146 147 QWidget *QWidget::mouseGrabber() 148 { 149 // @todo implement 150 return 0; 151 } 152 153 QWidget *QWidget::keyboardGrabber() 154 { 155 // @todo implement 156 return 0; 157 } 158 159 void QWidget::activateWindow() 160 { 161 // @todo implement 162 } 163 164 void QWidget::setWindowState(Qt::WindowStates newstate) 165 { 166 // @todo implement 167 } 168 169 void QWidgetPrivate::hide_sys() 170 { 171 // @todo implement 172 } 173 174 void QWidgetPrivate::show_sys() 175 { 176 // @todo implement 177 } 178 179 void QWidgetPrivate::setFocus_sys() 180 { 181 // @todo implement 182 } 183 184 void QWidgetPrivate::raise_sys() 185 { 186 // @todo implement 187 } 188 189 void QWidgetPrivate::lower_sys() 190 { 191 // @todo implement 192 } 193 194 void QWidgetPrivate::stackUnder_sys(QWidget* w) 195 { 196 // @todo implement 197 } 198 199 /* 200 Helper function for non-toplevel widgets. Helps to map Qt's 32bit 201 coordinate system to Windpws's 16bit coordinate system. 202 203 This code is duplicated from the X11 code, so any changes there 204 should also (most likely) be reflected here. 205 206 (In all comments below: s/X/PM/g) 207 */ 208 209 void QWidgetPrivate::setWSGeometry(bool dontShow) 210 { 211 // @todo implement 212 } 213 214 void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) 215 { 216 // @todo implement 217 } 218 219 void QWidgetPrivate::setConstraints_sys() 220 { 221 // @todo implement 222 } 223 224 void QWidgetPrivate::scroll_sys(int dx, int dy) 225 { 226 // @todo implement 227 } 228 229 void QWidgetPrivate::scroll_sys(int dx, int dy, const QRect &r) 230 { 231 // @todo implement 232 } 233 234 int QWidget::metric(PaintDeviceMetric m) const 235 { 236 // @todo implement 237 return 0; 238 } 239 240 void QWidgetPrivate::createSysExtra() 241 { 242 // @todo implement 243 } 244 245 void QWidgetPrivate::deleteSysExtra() 246 { 247 // @todo implement 248 } 249 250 void QWidgetPrivate::createTLSysExtra() 251 { 252 // @todo implement 253 } 254 255 void QWidgetPrivate::deleteTLSysExtra() 256 { 257 // @todo implement 258 } 259 260 void QWidgetPrivate::registerDropSite(bool on) 261 { 262 // @todo implement 263 } 264 265 void QWidgetPrivate::setMask_sys(const QRegion ®ion) 266 { 267 // @todo implement 268 } 269 270 void QWidgetPrivate::updateFrameStrut() 271 { 272 // @todo implement 273 } 274 275 void QWidgetPrivate::setWindowOpacity_sys(qreal level) 276 { 277 // @todo implement 278 } 279 280 QPaintEngine *QWidget::paintEngine() const 281 { 282 // @todo implement 283 return 0; 284 } 285 286 QWindowSurface *QWidgetPrivate::createDefaultWindowSurface_sys() 287 { 288 // @todo implement 289 return 0; 290 } 291 292 void QWidgetPrivate::setModal_sys() 293 { 294 // @todo implement 295 } 296 66 297 QT_END_NAMESPACE -
trunk/src/gui/painting/painting.pri
r2 r95 112 112 } 113 113 114 os2 { 115 SOURCES += \ 116 painting/qcolormap_pm.cpp \ 117 painting/qpaintdevice_pm.cpp \ 118 painting/qregion_pm.cpp 119 } 120 114 121 embedded { 115 122 HEADERS += \ … … 170 177 } 171 178 172 win32| x11|mac|embedded {179 win32|os2|x11|mac|embedded { 173 180 SOURCES += painting/qbackingstore.cpp 174 181 HEADERS += painting/qbackingstore_p.h -
trunk/src/gui/painting/qgraphicssystem.cpp
r2 r95 48 48 # include <private/qpixmap_raster_p.h> 49 49 #endif 50 #ifdef Q_WS_PM 51 # include <private/qpixmap_raster_p.h> // @todo check this 52 #endif 50 53 #ifdef Q_WS_MAC 51 54 # include <private/qpixmap_mac_p.h> … … 67 70 #elif defined(Q_WS_WIN) 68 71 return new QRasterPixmapData(type); 72 #elif defined(Q_WS_PM) 73 return new QRasterPixmapData(type); // @todo check this 69 74 #elif defined(Q_WS_MAC) 70 75 return new QMacPixmapData(type); -
trunk/src/gui/painting/qregion.cpp
r2 r95 566 566 \sa intersected() 567 567 */ 568 #if !defined(Q_WS_WIN) || defined(Q_OS_WINCE)568 #if (!defined(Q_WS_WIN) || defined(Q_OS_WINCE)) && !defined(Q_WS_PM) 569 569 QRegion& QRegion::operator&=(const QRegion &r) 570 570 { return *this = *this & r; } … … 596 596 \sa subtracted() 597 597 */ 598 #if !defined(Q_WS_WIN) || defined(Q_OS_WINCE)598 #if (!defined(Q_WS_WIN) || defined(Q_OS_WINCE)) && !defined(Q_WS_PM) 599 599 QRegion& QRegion::operator-=(const QRegion &r) 600 600 { return *this = *this - r; } -
trunk/src/gui/text/qfontdatabase.cpp
r2 r95 876 876 #elif defined(Q_WS_WIN) 877 877 # include "qfontdatabase_win.cpp" 878 #elif defined(Q_WS_PM) 879 # include "qfontdatabase_pm.cpp" 878 880 #elif defined(Q_WS_QWS) 879 881 # include "qfontdatabase_qws.cpp" … … 2419 2421 */ 2420 2422 2421 /*! 2423 /*! 2422 2424 \fn bool QFontDatabase::supportsThreadedFontRendering() 2423 2425 \since 4.4 -
trunk/src/gui/text/qfontengine_p.h
r2 r95 323 323 virtual void recalcAdvances(QGlyphLayout *, QTextEngine::ShaperFlags) const; 324 324 325 #if !defined(Q_WS_X11) && !defined(Q_WS_WIN) && !defined(Q_WS_ MAC)325 #if !defined(Q_WS_X11) && !defined(Q_WS_WIN) && !defined(Q_WS_PM) && !defined(Q_WS_MAC) 326 326 void draw(QPaintEngine *p, qreal x, qreal y, const QTextItemInt &si); 327 327 #endif -
trunk/src/gui/text/text.pri
r2 r95 74 74 text/qfontengine_win.cpp 75 75 HEADERS += text/qfontengine_win_p.h 76 } 77 78 os2 { 79 SOURCES += \ 80 text/qfont_pm.cpp 76 81 } 77 82
Note:
See TracChangeset
for help on using the changeset viewer.