kwin/tabbox.h
Luboš Luňák 944967a8e1 Made Alt+Tab , Ctrl+Tab configurable. Also added in kcontrol module missing option
to make Alt+Tab to go either through all windows or only the ones on the current
desktop. If you get keyboard lock-ups because of this, yell.
I wonder how many bugreports I will be able to close because of this :).

svn path=/trunk/kdebase/kwin/; revision=87801
2001-03-19 20:05:36 +00:00

83 lines
1.5 KiB
C++

/*****************************************************************
kwin - the KDE window manager
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
******************************************************************/
#ifndef TABBOX_H
#define TABBOX_H
#include <qwidget.h>
#include <qtimer.h>
class QLabel;
namespace KWinInternal {
class Workspace;
class Client;
typedef QValueList<Client*> ClientList;
class TabBox : public QWidget
{
Q_OBJECT
public:
TabBox( Workspace *ws, const char *name=0 );
~TabBox();
Client* currentClient();
int currentDesktop();
enum Mode { DesktopMode, WindowsMode };
void setMode( Mode mode );
Mode mode() const;
void reset();
void nextPrev( bool next = TRUE);
void delayedShow();
void hide();
Workspace* workspace() const;
void reconfigure();
protected:
void paintEvent( QPaintEvent* );
void showEvent( QShowEvent* );
void hideEvent( QHideEvent* );
void paintContents();
private:
Client* client;
Mode m;
Workspace* wspace;
ClientList clients;
int desk;
QLabel* icon;
int wmax;
QTimer delayedShowTimer;
QString no_tasks;
bool options_traverse_all;
};
/*!
Returns the tab box' workspace
*/
inline Workspace* TabBox::workspace() const
{
return wspace;
}
/*!
Returns the current mode, either DesktopMode or WindowsMode
\sa setMode()
*/
inline TabBox::Mode TabBox::mode() const
{
return m;
}
};
#endif