aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XLayer.cc')
-rw-r--r--src/FbTk/XLayer.cc23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/FbTk/XLayer.cc b/src/FbTk/XLayer.cc
index 43bd76c..ad1e49d 100644
--- a/src/FbTk/XLayer.cc
+++ b/src/FbTk/XLayer.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: XLayer.cc,v 1.6 2003/02/18 15:08:12 rathnor Exp $ 23// $Id: XLayer.cc,v 1.7 2003/04/15 23:09:24 rathnor Exp $
24 24
25#include "XLayer.hh" 25#include "XLayer.hh"
26#include "XLayerItem.hh" 26#include "XLayerItem.hh"
@@ -264,6 +264,27 @@ void XLayer::raise(XLayerItem &item) {
264 264
265} 265}
266 266
267void XLayer::tempRaise(XLayerItem &item) {
268 // assume it is already in this layer
269
270 if (&item == itemList().front())
271 return; // nothing to do
272
273 iterator it = std::find(itemList().begin(), itemList().end(), &item);
274 if (it != itemList().end())
275 // don't remove it
276#ifdef DEBUG
277 else {
278 cerr<<__FILE__<<"("<<__LINE__<<"): WARNING: raise on item not in layer["<<m_layernum<<"]"<<endl;
279 return;
280 }
281#endif // DEBUG
282
283 // don't add it back to the top
284 stackBelowItem(&item, m_manager.getLowestItemAboveLayer(m_layernum));
285
286}
287
267void XLayer::lower(XLayerItem &item) { 288void XLayer::lower(XLayerItem &item) {
268 // assume already in this layer 289 // assume already in this layer
269 290