aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Layer.hh
diff options
context:
space:
mode:
authormarkt <markt>2006-12-22 05:44:42 (GMT)
committermarkt <markt>2006-12-22 05:44:42 (GMT)
commit9d1447b0d5711168486932c8bd86ad92b194ac99 (patch)
treee194b71f73a0a4528dff0ad035f077a34d37728b /src/FbTk/Layer.hh
parent17a92c3253e62798aa7efcb95b4d0bdd1ac29dcd (diff)
downloadfluxbox-9d1447b0d5711168486932c8bd86ad92b194ac99.zip
fluxbox-9d1447b0d5711168486932c8bd86ad92b194ac99.tar.bz2
more dead functions
Diffstat (limited to 'src/FbTk/Layer.hh')
-rw-r--r--src/FbTk/Layer.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbTk/Layer.hh b/src/FbTk/Layer.hh
index bbb3037..4fc2c8b 100644
--- a/src/FbTk/Layer.hh
+++ b/src/FbTk/Layer.hh
@@ -41,18 +41,22 @@ public:
41 virtual iterator insert(ItemType &item, unsigned int pos=0); 41 virtual iterator insert(ItemType &item, unsigned int pos=0);
42 /// remove item from list 42 /// remove item from list
43 virtual void remove(ItemType &item); 43 virtual void remove(ItemType &item);
44#ifdef NOT_USED
44 /// cycle all item upwards 45 /// cycle all item upwards
45 virtual void cycleUp(); 46 virtual void cycleUp();
46 /// cycle all items downwards 47 /// cycle all items downwards
47 virtual void cycleDown(); 48 virtual void cycleDown();
49#endif // NOT_USED
48 /// move item to top 50 /// move item to top
49 virtual void raise(ItemType &item); 51 virtual void raise(ItemType &item);
50 /// move item to bottom 52 /// move item to bottom
51 virtual void lower(ItemType &item); 53 virtual void lower(ItemType &item);
54#ifdef NOT_USED
52 /// raise a specific item one step 55 /// raise a specific item one step
53 virtual void stepUp(ItemType &item); 56 virtual void stepUp(ItemType &item);
54 /// lower a specific item one step 57 /// lower a specific item one step
55 virtual void stepDown(ItemType &item); 58 virtual void stepDown(ItemType &item);
59#endif // NOT_USED
56 virtual void restack(); 60 virtual void restack();
57 /// @return layer item on specific position, on failure 0 61 /// @return layer item on specific position, on failure 0
58 ItemType *getItem(unsigned int position); 62 ItemType *getItem(unsigned int position);
@@ -93,6 +97,7 @@ void Layer<ItemType, Container>::remove(ItemType &item) {
93 m_list.erase(it); 97 m_list.erase(it);
94} 98}
95 99
100#ifdef NOT_USED
96template <typename ItemType, typename Container> 101template <typename ItemType, typename Container>
97void Layer<ItemType, Container>::cycleUp() { 102void Layer<ItemType, Container>::cycleUp() {
98 if (size() == 0) 103 if (size() == 0)
@@ -157,6 +162,8 @@ void Layer<ItemType, Container>::stepDown(ItemType &item) {
157 itemList().insert(new_pos, textitem); 162 itemList().insert(new_pos, textitem);
158 restack(); 163 restack();
159} 164}
165#endif // NOT_USED
166
160template <typename ItemType, typename Container> 167template <typename ItemType, typename Container>
161void Layer<ItemType, Container>::raise(ItemType &item) { 168void Layer<ItemType, Container>::raise(ItemType &item) {
162 if (&item == itemList().front()) // already at the bottom 169 if (&item == itemList().front()) // already at the bottom