summaryrefslogtreecommitdiffstats
path: root/kwin/kcmkwin/kwindecoration/buttons.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kwin/kcmkwin/kwindecoration/buttons.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/kcmkwin/kwindecoration/buttons.h')
-rw-r--r--kwin/kcmkwin/kwindecoration/buttons.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/kwin/kcmkwin/kwindecoration/buttons.h b/kwin/kcmkwin/kwindecoration/buttons.h
index a3db6266e..0fcbff085 100644
--- a/kwin/kcmkwin/kwindecoration/buttons.h
+++ b/kwin/kcmkwin/kwindecoration/buttons.h
@@ -31,10 +31,10 @@
#ifndef __BUTTONS_H_
#define __BUTTONS_H_
-#include <qbitmap.h>
-#include <qevent.h>
-#include <qdragobject.h>
-#include <qlistbox.h>
+#include <tqbitmap.h>
+#include <tqevent.h>
+#include <tqdragobject.h>
+#include <tqlistbox.h>
#include <klistview.h>
@@ -47,12 +47,12 @@ class Button
{
public:
Button();
- Button(const QString& name, const QBitmap& icon, QChar type, bool duplicate, bool supported);
+ Button(const TQString& name, const TQBitmap& icon, TQChar type, bool duplicate, bool supported);
virtual ~Button();
- QString name;
- QBitmap icon;
- QChar type;
+ TQString name;
+ TQBitmap icon;
+ TQChar type;
bool duplicate;
bool supported;
};
@@ -60,11 +60,11 @@ class Button
class ButtonDrag : public QStoredDrag
{
public:
- ButtonDrag( Button btn, QWidget* parent, const char* name=0 );
+ ButtonDrag( Button btn, TQWidget* parent, const char* name=0 );
~ButtonDrag() {};
- static bool canDecode( QDropEvent* e );
- static bool decode( QDropEvent* e, Button& btn );
+ static bool canDecode( TQDropEvent* e );
+ static bool decode( TQDropEvent* e, Button& btn );
};
/**
@@ -78,11 +78,11 @@ class ButtonDropSiteItem
Button button();
- QRect rect;
+ TQRect rect;
int width();
int height();
- void draw(QPainter *p, const QColorGroup& cg, QRect rect);
+ void draw(TQPainter *p, const TQColorGroup& cg, TQRect rect);
private:
Button m_button;
@@ -94,10 +94,10 @@ class ButtonDropSiteItem
class ButtonSourceItem : public QListViewItem
{
public:
- ButtonSourceItem(QListView * parent, const Button& btn);
+ ButtonSourceItem(TQListView * parent, const Button& btn);
virtual ~ButtonSourceItem();
- void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
+ void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align);
void setButton(const Button& btn);
Button button() const;
@@ -114,24 +114,24 @@ class ButtonSource : public KListView
Q_OBJECT
public:
- ButtonSource(QWidget *parent = 0, const char* name = 0);
+ ButtonSource(TQWidget *parent = 0, const char* name = 0);
virtual ~ButtonSource();
- QSize sizeHint() const;
+ TQSize sizeHint() const;
void hideAllButtons();
void showAllButtons();
public slots:
- void hideButton(QChar btn);
- void showButton(QChar btn);
+ void hideButton(TQChar btn);
+ void showButton(TQChar btn);
protected:
- bool acceptDrag(QDropEvent* e) const;
- virtual QDragObject *dragObject();
+ bool acceptDrag(TQDropEvent* e) const;
+ virtual TQDragObject *dragObject();
};
-typedef QValueList<ButtonDropSiteItem*> ButtonList;
+typedef TQValueList<ButtonDropSiteItem*> ButtonList;
/**
* This class renders and handles the demo titlebar dropsite
@@ -141,7 +141,7 @@ class ButtonDropSite: public QFrame
Q_OBJECT
public:
- ButtonDropSite( QWidget* parent=0, const char* name=0 );
+ ButtonDropSite( TQWidget* parent=0, const char* name=0 );
~ButtonDropSite();
// Allow external classes access our buttons - ensure buttons are
@@ -152,8 +152,8 @@ class ButtonDropSite: public QFrame
void clearRight();
signals:
- void buttonAdded(QChar btn);
- void buttonRemoved(QChar btn);
+ void buttonAdded(TQChar btn);
+ void buttonRemoved(TQChar btn);
void changed();
public slots:
@@ -161,21 +161,21 @@ class ButtonDropSite: public QFrame
void recalcItemGeometry(); ///< Call this whenever the item list changes... updates the items' rect property
protected:
- void resizeEvent(QResizeEvent*);
- void dragEnterEvent( QDragEnterEvent* e );
- void dragMoveEvent( QDragMoveEvent* e );
- void dragLeaveEvent( QDragLeaveEvent* e );
- void dropEvent( QDropEvent* e );
- void mousePressEvent( QMouseEvent* e ); ///< Starts dragging a button...
-
- void drawContents( QPainter* p );
- ButtonDropSiteItem *buttonAt(QPoint p);
+ void resizeEvent(TQResizeEvent*);
+ void dragEnterEvent( TQDragEnterEvent* e );
+ void dragMoveEvent( TQDragMoveEvent* e );
+ void dragLeaveEvent( TQDragLeaveEvent* e );
+ void dropEvent( TQDropEvent* e );
+ void mousePressEvent( TQMouseEvent* e ); ///< Starts dragging a button...
+
+ void drawContents( TQPainter* p );
+ ButtonDropSiteItem *buttonAt(TQPoint p);
bool removeButton(ButtonDropSiteItem *item);
int calcButtonListWidth(const ButtonList& buttons); ///< Computes the total space the buttons will take in the titlebar
- void drawButtonList(QPainter *p, const ButtonList& buttons, int offset);
+ void drawButtonList(TQPainter *p, const ButtonList& buttons, int offset);
- QRect leftDropArea();
- QRect rightDropArea();
+ TQRect leftDropArea();
+ TQRect rightDropArea();
private:
/**
@@ -184,7 +184,7 @@ class ButtonDropSite: public QFrame
bool getItemIterator(ButtonDropSiteItem *item, ButtonList* &list, ButtonList::iterator &iterator);
void cleanDropVisualizer();
- QRect m_oldDropVisualizer;
+ TQRect m_oldDropVisualizer;
ButtonDropSiteItem *m_selected;
};
@@ -194,7 +194,7 @@ class ButtonPositionWidget : public QWidget
Q_OBJECT
public:
- ButtonPositionWidget(QWidget *parent = 0, const char* name = 0);
+ ButtonPositionWidget(TQWidget *parent = 0, const char* name = 0);
~ButtonPositionWidget();
/**
@@ -202,23 +202,23 @@ class ButtonPositionWidget : public QWidget
*/
void setDecorationFactory(KDecorationFactory *factory);
- QString buttonsLeft() const;
- QString buttonsRight() const;
- void setButtonsLeft(const QString &buttons);
- void setButtonsRight(const QString &buttons);
+ TQString buttonsLeft() const;
+ TQString buttonsRight() const;
+ void setButtonsLeft(const TQString &buttons);
+ void setButtonsRight(const TQString &buttons);
signals:
void changed();
private:
void clearButtonList(const ButtonList& btns);
- Button getButton(QChar type, bool& success);
+ Button getButton(TQChar type, bool& success);
ButtonDropSite* m_dropSite;
ButtonSource *m_buttonSource;
KDecorationFactory *m_factory;
- QString m_supportedButtons;
+ TQString m_supportedButtons;
};