summaryrefslogtreecommitdiffstats
path: root/kicker/applets/launcher/flowgridmanager.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 /kicker/applets/launcher/flowgridmanager.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 'kicker/applets/launcher/flowgridmanager.h')
-rw-r--r--kicker/applets/launcher/flowgridmanager.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/kicker/applets/launcher/flowgridmanager.h b/kicker/applets/launcher/flowgridmanager.h
index 9d100c74f..521490c51 100644
--- a/kicker/applets/launcher/flowgridmanager.h
+++ b/kicker/applets/launcher/flowgridmanager.h
@@ -7,9 +7,9 @@
#ifndef __const_space_grid_h__
#define __const_space_grid_h__
-#include <qnamespace.h>
-#include <qpoint.h>
-#include <qsize.h>
+#include <tqnamespace.h>
+#include <tqpoint.h>
+#include <tqsize.h>
class FlowGridManager {
@@ -22,10 +22,10 @@ public:
ItemSlack,SpaceSlack,BorderSlack,NoSlack
} Slack;
- FlowGridManager(QSize p_item_size=QSize(0,0),
- QSize p_space_size=QSize(0,0),
- QSize p_border_size=QSize(0,0),
- QSize frame_size=QSize(0,0),
+ FlowGridManager(TQSize p_item_size=TQSize(0,0),
+ TQSize p_space_size=TQSize(0,0),
+ TQSize p_border_size=TQSize(0,0),
+ TQSize frame_size=TQSize(0,0),
Qt::Orientation orient=Qt::Horizontal,
int num_items=0,
Slack slack_x=ItemSlack,
@@ -33,39 +33,39 @@ public:
void setNumItems(int num_items);
- void setItemSize(QSize item_size);
- void setSpaceSize(QSize space_size);
- void setBorderSize(QSize border_size);
+ void setItemSize(TQSize item_size);
+ void setSpaceSize(TQSize space_size);
+ void setBorderSize(TQSize border_size);
void setOrientation(Qt::Orientation orient);
- void setFrameSize(QSize frame_size);
+ void setFrameSize(TQSize frame_size);
void setSlack(Slack slack_x, Slack slack_y);
void setConserveSpace(bool conserve);
- QSize itemSize() const;
- QSize spaceSize() const;
- QSize borderSize() const;
- QSize gridDim() const;
- QSize gridSpacing() const;
- QSize frameSize() const;
- QPoint origin() const;
+ TQSize itemSize() const;
+ TQSize spaceSize() const;
+ TQSize borderSize() const;
+ TQSize gridDim() const;
+ TQSize gridSpacing() const;
+ TQSize frameSize() const;
+ TQPoint origin() const;
Qt::Orientation orientation() const;
bool conserveSpace() const;
// Slack slackX() const;
// Slack slackY() const;
- QPoint posAtCell(int x,int y) const;
- QPoint pos(int i) const;
- QPoint cell(int index) const;
+ TQPoint posAtCell(int x,int y) const;
+ TQPoint pos(int i) const;
+ TQPoint cell(int index) const;
bool isValid() const;
- int indexNearest(QPoint p) const;
+ int indexNearest(TQPoint p) const;
void dump();
protected:
- int _getHH(QSize size) const;
- int _getWH(QSize size) const;
- QSize _swapHV(QSize hv) const;
+ int _getHH(TQSize size) const;
+ int _getWH(TQSize size) const;
+ TQSize _swapHV(TQSize hv) const;
inline void _checkReconfigure() const;
int _slack(int nitems,int length,int item,int space,int border) const;
void _reconfigure() const;
@@ -73,15 +73,15 @@ protected:
protected:
// user-definable data
- QSize _pItemSize,_pSpaceSize,_pBorderSize,_pFrameSize;
+ TQSize _pItemSize,_pSpaceSize,_pBorderSize,_pFrameSize;
Slack _slackX, _slackY;
bool _conserveSpace;
Qt::Orientation _orientation;
int _numItems;
// results
- mutable QSize _itemSize, _spaceSize, _borderSize, _gridDim, _gridSpacing, _frameSize;
- mutable QPoint _origin;
+ mutable TQSize _itemSize, _spaceSize, _borderSize, _gridDim, _gridSpacing, _frameSize;
+ mutable TQPoint _origin;
// status
mutable bool _dirty, _valid;