Komposé – a fullscreen view of all your tasks and/or virtual desktops. Every window is represented by a scaled screenshot of it's own. Komposé was part of the BerliOS project.
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.

119 lines
3.7 KiB

* Copyright (C) 2004 by Hans Oischinger *
* hans.oischinger@kde-mail.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
#include <tqobject.h>
#include <tqrect.h>
#include <twin.h>
class KWinModule;
class KomposeTaskVisualizer;
@author Hans Oischinger
class KomposeTask : public TQObject
KomposeTask(WId win, KWinModule *twinmod, TQObject *parent = 0, const char *name = 0);
// state
bool isMaximized() const;
bool isIconified() const;
bool isShaded() const;
bool isOnTop() const;
int onDesktop() const;
bool isOnCurrentDesktop() const;
bool isOnAllDesktops() const;
bool isAlwaysOnTop() const;
bool isActive() const;
bool isModified() const;
bool isValid() const { return windowInfo.valid(); }
WId window() const { return windowID; }
WId wmFrame() const { return wmframeID; }
TQString name() const { return windowInfo.name(); }
TQString visibleName() const { return windowInfo.visibleName(); }
TQString visibleNameWithState() const { return windowInfo.visibleNameWithState(); }
TQRect getGeometry() const { return windowInfo.geometry(); }
TQRect getFrameGeometry() const { return windowInfo.frameGeometry(); }
TQPixmap getIcon( int size );
double getAspectRatio();
int getHeightForWidth( int w ) const;
int getWidthForHeight( int h ) const;
KomposeTaskVisualizer* getVisualizer() { return visualizer; }
void paintEvent ( TQPaintEvent * );
void mouseReleaseEvent ( TQMouseEvent * e );
void findWmFrame();
void stateChanged();
void x11ConfigureNotify();
void x11DamageNotify();
void closed();
public slots:
void maximize();
void restore();
void iconify();
void close();
void raise();
void lower();
void activate();
// void activateOrRaise();
void minimizeOrRestore();
void toDesktop(int desk);
void toCurrentDesktop();
void setAlwaysOnTop(bool stay);
void toggleAlwaysOnTop();
void setShaded(bool shade);
void toggleShaded();
void refresh();
void slotX11ConfigureNotify();
void slotX11DamageNotify();
void slotActivated();
void slotUpdateScreenshot();
protected slots:
void unBlockDamageEvents() { blockDamageEvents = false; }
KWinModule* twinmodule;
WId windowID;
WId wmframeID;
KWin::WindowInfo windowInfo;
bool blockDamageEvents;
KomposeTaskVisualizer* visualizer;