<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">Hello all,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I've been trying to fix up the toolbox. Here are some of the objectives I have:<br>
- Never go BEHIND a panel. Instead, make the panel act like a screen edge, so the toolbox will just stick to the edge of the panel.<br>
- When the user clicks on the toolbox, the popup must avoid the panel at all costs so the options are visible to the user.<br>
- If a panel has a space to either side of itself which is large enough to fit the toolbox, let the toolbox go into there.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>How can I let the toolbox know where the panels are? Are there any functions that can possibly return a QRect or something for each panel instance that I can access? For example, in kdelibs/plasma/toolbox.cpp, I would call such a function so the toolbox can be dragged into the correct position.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Do you have any suggestions for actions or rules for moving the toolbox? <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Thanks,<br>
Xtreme Kommander</p></body></html>