You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
942 B
41 lines
942 B
15 years ago
|
/****************************************************************************
|
||
|
|
||
|
KHotKeys
|
||
|
|
||
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
||
|
|
||
|
Distributed under the terms of the GNU General Public License version 2.
|
||
|
|
||
|
****************************************************************************/
|
||
|
|
||
|
#ifndef _WINDOWSELECTOR_H_
|
||
|
#define _WINDOWSELECTOR_H_
|
||
|
|
||
|
#include <qwidget.h>
|
||
|
|
||
|
namespace KHotKeys
|
||
|
{
|
||
|
|
||
|
class WindowSelector
|
||
|
: public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
WindowSelector( QObject* 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
|