Changeset 835 for trunk/src/gui/util


Ignore:
Timestamp:
Mar 18, 2011, 2:10:26 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Extracted xsystray API from Qt and put it to a separate DLL dynamically loaded at runtime (see #99 for details).

Location:
trunk/src/gui/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/util/qsystemtrayicon_pm.cpp

    r659 r835  
    4848#include "qapplication.h"
    4949#include "qdesktopwidget.h"
     50
    5051#include "qt_os2.h"
    5152
    52 #include "xsystray_api.h"
     53// for dynamic linking to xsystray DLL
     54#define xstQuerySysTrayVersion (*_xstQuerySysTrayVersion)
     55#define xstAddSysTrayIcon (*_xstAddSysTrayIcon)
     56#define xstReplaceSysTrayIcon (*_xstReplaceSysTrayIcon)
     57#define xstRemoveSysTrayIcon (*_xstRemoveSysTrayIcon)
     58#define xstSetSysTrayIconToolTip (*_xstSetSysTrayIconToolTip)
     59#define xstQuerySysTrayIconRect (*_xstQuerySysTrayIconRect)
     60#define xstGetSysTrayCreatedMsgId (*_xstGetSysTrayCreatedMsgId)
     61#define xstGetSysTrayMaxTextLen (*_xstGetSysTrayMaxTextLen)
     62
     63#include "xsystray.h"
    5364
    5465QT_BEGIN_NAMESPACE
     
    5667#define WM_XST_MYNOTIFY     (WM_USER + 1000)
    5768
    58 static ULONG WM_XST_CREATED = xstGetSysTrayCreatedMsgId();
    59 static ULONG MaxTextLen = xstGetSysTrayMaxTextLen();
     69static ULONG WM_XST_CREATED = ;
     70static ULONG MaxTextLen = ;
    6071
    6172class QSystemTrayIconSys : QWidget
     
    307318bool QSystemTrayIconPrivate::isSystemTrayAvailable_sys()
    308319{
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
     339
     340
     341
     342
     343
     344
    309345    return xstQuerySysTrayVersion(0, 0, 0);
    310346}
  • trunk/src/gui/util/util.pri

    r769 r835  
    3131os2 {
    3232                SOURCES += \
    33                                 util/qsystemtrayicon_pm.cpp \
    34                                 ../3rdparty/os2/xsystray/xsystray_api.c
     33                                util/qsystemtrayicon_pm.cpp
     34                # @todo this should be required to present extenrally in the
     35                # environment when it gets moved to XWP (see #99 for details)
    3536                INCLUDEPATH += \
    36                                 ../3rdparty/os2/xsystray
     37                                ../3rdparty/os2/xsystray
    3738}
    3839
Note: See TracChangeset for help on using the changeset viewer.