/[svn]/qsampler/trunk/src/qsampler.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsampler.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3494 by capela, Sat Mar 9 21:49:29 2019 UTC revision 3681 by capela, Thu Jan 2 14:39:02 2020 UTC
# Line 1  Line 1 
1  // qsampler.h  // qsampler.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2003-2020, rncbc aka Rui Nuno Capela. All rights reserved.
5       Copyright (C) 2007,2008,2015,2019 Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 26  Line 27 
27    
28  #include <QApplication>  #include <QApplication>
29    
30  #if QT_VERSION < 0x050000  #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
31  #if defined(Q_WS_X11)  #if defined(Q_WS_X11)
32  #define CONFIG_X11  #define CONFIG_X11
33  #endif  #endif
# Line 41  Line 42 
42  class QWidget;  class QWidget;
43  class QTranslator;  class QTranslator;
44    
45  #ifdef CONFIG_X11  #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
46  #ifdef CONFIG_XUNIQUE  #ifdef CONFIG_XUNIQUE
47    #ifdef CONFIG_X11
48  #include <QX11Info>  #include <QX11Info>
   
49  typedef unsigned long Window;  typedef unsigned long Window;
50  typedef unsigned long Atom;  typedef unsigned long Atom;
51    #endif  // CONFIG_X11
52  #if QT_VERSION >= 0x050100  #endif  // CONFIG_XUNIQUE
53  class qsamplerXcbEventFilter;  #else
54  #endif  #ifdef CONFIG_XUNIQUE
55    class QSharedMemory;
56  #endif  class QLocalServer;
57    #endif  // CONFIG_XUNIQUE
58  #endif  #endif
59    
60    
# Line 63  class qsamplerXcbEventFilter; Line 64  class qsamplerXcbEventFilter;
64    
65  class qsamplerApplication : public QApplication  class qsamplerApplication : public QApplication
66  {  {
67            Q_OBJECT
68    
69  public:  public:
70    
71          // Constructor.          // Constructor.
# Line 80  public: Line 83  public:
83          // and raise its proper main widget...          // and raise its proper main widget...
84          bool setup();          bool setup();
85    
86  #ifdef CONFIG_X11  #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
87  #ifdef CONFIG_XUNIQUE  #ifdef CONFIG_XUNIQUE
88    #ifdef CONFIG_X11
89          void x11PropertyNotify(Window w);          void x11PropertyNotify(Window w);
90  #endif  // CONFIG_XUNIQUE          bool x11EventFilter(XEvent *pEv)
91  #endif  // CONFIG_X11  #endif  // CONFIG_X11
92    #endif  // CONFIG_XUNIQUE
93    #else
94    #ifdef CONFIG_XUNIQUE
95    protected slots:
96            // Local server slots.
97            void newConnectionSlot();
98            void readyReadSlot();
99    #endif  // CONFIG_XUNIQUE
100    #endif
101    
102  private:  private:
103    
# Line 95  private: Line 108  private:
108          // Instance variables.          // Instance variables.
109          QWidget *m_pWidget;          QWidget *m_pWidget;
110    
111  #ifdef CONFIG_X11  #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
112  #ifdef CONFIG_XUNIQUE  #ifdef CONFIG_XUNIQUE
113    #ifdef CONFIG_X11
114          Display *m_pDisplay;          Display *m_pDisplay;
115          Atom     m_aUnique;          Atom     m_aUnique;
116          Window   m_wOwner;          Window   m_wOwner;
 #if QT_VERSION >= 0x050100  
         qsamplerXcbEventFilter *m_pXcbEventFilter;  
 #endif  
 #endif  // CONFIG_XUNIQUE  
117  #endif  // CONFIG_X11  #endif  // CONFIG_X11
118    #endif  // CONFIG_XUNIQUE
119    #else
120    #ifdef CONFIG_XUNIQUE
121            QString        m_sUnique;
122            QSharedMemory *m_pMemory;
123            QLocalServer  *m_pServer;
124    #endif  // CONFIG_XUNIQUE
125    #endif
126  };  };
127    
128    

Legend:
Removed from v.3494  
changed lines
  Added in v.3681

  ViewVC Help
Powered by ViewVC