Ignore:
Timestamp:
Aug 18, 2009, 4:30:00 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: QWidget::setWindowState/setGeometry_sys/setWSGeometry in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qwindowdefs_pm.h

    r113 r120  
    6868#define NULLHANDLE ((LHANDLE)0)
    6969
    70 Q_GUI_EXPORT HPS qt_display_ps();
    71 
    7270// constants to address extra window data
    7371#define QWL_QTCLIPRGN       (QWL_USER)
     
    7775QT_BEGIN_NAMESPACE
    7876
     77class QWidget;
     78
     79Q_GUI_EXPORT HPS qt_display_ps();
     80
     81Q_GUI_EXPORT QWidget *qWidgetFromHWND(HWND hwnd);
     82
     83// For printing non-quoted QString's with QDebug
     84struct Q_CORE_EXPORT QDbgStr: public QString
     85{
     86    inline QDbgStr(const QString &str) : QString(str) {}
     87};
     88
     89Q_GUI_EXPORT QDbgStr qWidgetName(QWidget *w);
     90inline QDbgStr qWidgetName(HWND hwnd)
     91{ return qWidgetName(qWidgetFromHWND(hwnd)); }
     92
     93Q_CORE_EXPORT QDbgStr qStrHWND(HWND hwnd);
     94Q_CORE_EXPORT QDbgStr qStrHPS(HPS hps);
     95Q_CORE_EXPORT QDbgStr qStrHPOINTER(HPOINTER hptr);
     96Q_CORE_EXPORT QDbgStr qStrHRGN(HRGN hrgn);
     97
     98Q_CORE_EXPORT QDbgStr qStrQMSG(const QMSG &qmsg);
     99
     100// the following declarations require OS/2 types not defined here,
     101// we don't drag them in but require qt_os2.h to be included before
     102#if defined(QT_OS2_H)
     103
     104Q_CORE_EXPORT QDbgStr qStrRECTL(const RECTL &rcl);
     105
     106#endif // defined(QT_OS2_H)
     107
     108// don't drag qdebug.h as well but require it to be included before
     109#if defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM)
     110
     111// Prints a non-quoted QString
     112inline QDebug operator<<(QDebug dbg, const QDbgStr &str)
     113{ dbg << str.utf8().constData(); return dbg; }
     114
     115inline QDebug operator<<(QDebug dbg, const RECTL &rcl)
     116{ dbg << qStrRECTL(rcl); return dbg; }
     117
     118#endif // defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM)
     119
    79120QT_END_NAMESPACE
    80121
Note: See TracChangeset for help on using the changeset viewer.