summaryrefslogtreecommitdiffstats
path: root/kwin-styles/system/systemclient.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-07 21:50:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-07 21:50:31 -0600
commite35f3fe53cd8df85d4fd04e49dfffbaeac971cdf (patch)
tree95836fc22de909b3b20dbf3fc3dea230e5e58e3b /kwin-styles/system/systemclient.h
parenta5355f151396be579eba5838c7d8d93a43362cd7 (diff)
downloadtdeartwork-e35f3fe53cd8df85d4fd04e49dfffbaeac971cdf.tar.gz
tdeartwork-e35f3fe53cd8df85d4fd04e49dfffbaeac971cdf.zip
Rename kwin to twin (Part 2 of 2)
Diffstat (limited to 'kwin-styles/system/systemclient.h')
-rw-r--r--kwin-styles/system/systemclient.h113
1 files changed, 0 insertions, 113 deletions
diff --git a/kwin-styles/system/systemclient.h b/kwin-styles/system/systemclient.h
deleted file mode 100644
index ecaf25ee..00000000
--- a/kwin-styles/system/systemclient.h
+++ /dev/null
@@ -1,113 +0,0 @@
-#ifndef __SYSTEMCLIENT_H
-#define __SYSTEMCLIENT_H
-
-#include <tqvariant.h>
-#include <tqbitmap.h>
-#include <tqbutton.h>
-
-#include <kpixmap.h>
-#include <kdecoration.h>
-#include <kdecorationfactory.h>
-
-
-class TQLabel;
-class TQSpacerItem;
-class TQBoxLayout;
-
-namespace System {
-
-class SystemButton;
-
-enum ButtonType {
- ButtonClose=0,
- ButtonSticky,
- ButtonMinimize,
- ButtonMaximize,
- ButtonHelp,
- ButtonTypeCount
-};
-
-class SystemClient : public KDecoration
-{
- Q_OBJECT
- TQ_OBJECT
- public:
- SystemClient(KDecorationBridge* bridge, KDecorationFactory* factory);
- ~SystemClient();
- virtual Position mousePosition(const TQPoint& p) const;
- virtual void resize(const TQSize&);
- virtual bool eventFilter(TQObject* o, TQEvent* e);
- virtual void init();
- protected:
- virtual void maximizeChange();
- virtual void captionChange();
- virtual void shadeChange() {};
- virtual void iconChange();
- virtual void desktopChange();
- virtual void activeChange();
- virtual TQSize tqminimumSize() const;
- virtual void borders(int&, int&, int&, int&) const;
- virtual void reset( unsigned long changed );
- void drawRoundFrame(TQPainter &p, int x, int y, int w, int h);
- void resizeEvent( TQResizeEvent* );
- void paintEvent( TQPaintEvent* );
- void showEvent( TQShowEvent* );
- void mouseDoubleClickEvent( TQMouseEvent * );
- void wheelEvent(TQWheelEvent *e);
- void doShape();
- void recalcTitleBuffer();
- private:
- void addButtons(TQBoxLayout* hb, const TQString& buttons);
- private slots:
- void maxButtonClicked();
-
- private:
- SystemButton* button[ButtonTypeCount];
- TQSpacerItem* titlebar;
- TQPixmap titleBuffer;
- TQString oldTitle;
-};
-
-class SystemButton : public TQButton
-{
- public:
- SystemButton(SystemClient *parent=0, const char *name=0,
- const unsigned char *bitmap=NULL, const TQString& tip=NULL);
- void setBitmap(const unsigned char *bitmap);
- void reset();
- TQSize tqsizeHint() const;
- void setTipText(const TQString &tip);
- ButtonState last_button;
- protected:
- virtual void drawButton(TQPainter *p);
- void drawButtonLabel(TQPainter *){}
- TQBitmap deco;
-
- void mousePressEvent( TQMouseEvent* e );
- void mouseReleaseEvent( TQMouseEvent* e );
-
- private:
- SystemClient* client;
-};
-
-
-class SystemDecoFactory : public TQObject, public KDecorationFactory
-{
- Q_OBJECT
- TQ_OBJECT
- public:
- SystemDecoFactory();
- virtual ~SystemDecoFactory();
- virtual KDecoration *createDecoration(KDecorationBridge *);
- virtual bool reset(unsigned long);
- virtual bool supports( Ability ability );
- virtual TQValueList< BorderSize > borderSizes() const;
- private:
- void readConfig();
-};
-
-
-
-}
-
-#endif