~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to khotkeys/kcm_hotkeys/helper_widgets/window_selector.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 
 
3
 KHotKeys
 
4
 
 
5
 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
 
6
 
 
7
 Distributed under the terms of the GNU General Public License version 2.
 
8
 
 
9
****************************************************************************/
 
10
 
 
11
#ifndef WINDOWSELECTOR_H
 
12
#define WINDOWSELECTOR_H
 
13
 
 
14
#include <QWidget>
 
15
 
 
16
namespace KHotKeys
 
17
{
 
18
 
 
19
class WindowSelector : public QWidget
 
20
    {
 
21
    Q_OBJECT
 
22
 
 
23
    public:
 
24
        WindowSelector( QObject* receiver, const char* slot );
 
25
        void select();
 
26
    protected:
 
27
        virtual bool x11Event( XEvent* e );
 
28
    Q_SIGNALS:
 
29
        void selected_signal( WId w );
 
30
    private:
 
31
        WId findRealWindow( WId w, int depth = 0 );
 
32
    };
 
33
 
 
34
} // namespace KHotKeys
 
35
 
 
36
#endif