summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/windowselector.h
blob: 0abb41811794a345de8f9c8b13bd2bf66ab2105e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/****************************************************************************

 KHotKeys
 
 Copyright (C) 2003 Lubos Lunak <[email protected]>

 Distributed under the terms of the GNU General Public License version 2.
 
****************************************************************************/

#ifndef _WINDOWSELECTOR_H_
#define _WINDOWSELECTOR_H_

#include <tqwidget.h>

namespace KHotKeys
{

class WindowSelector
    : public TQWidget
    {
    TQ_OBJECT
    public:
        WindowSelector( TQObject* receiver, const char* slot );
        void select();
    protected:
        virtual bool x11Event( XEvent* e );
    signals:
        void selected_signal( WId w );
    private:
        WId findRealWindow( WId w, int depth = 0 );
    };
    
//***************************************************************************
// Inline
//***************************************************************************

} // namespace KHotKeys

#endif