aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-02 07:09:22 (GMT)
committerfluxgen <fluxgen>2002-05-02 07:09:22 (GMT)
commit0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86 (patch)
tree7d8dd2e2dc5baf6b3976b89d0e42942798912cbc /src/Tab.cc
parente35b377338e227af5532751588f5afadca8396ef (diff)
downloadfluxbox-0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86.zip
fluxbox-0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86.tar.bz2
added moveNext/movePrev
Diffstat (limited to 'src/Tab.cc')
-rw-r--r--src/Tab.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/Tab.cc b/src/Tab.cc
index 45346c4..e89a3bd 100644
--- a/src/Tab.cc
+++ b/src/Tab.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Tab.cc,v 1.25 2002/04/28 08:49:31 fluxgen Exp $ 22// $Id: Tab.cc,v 1.26 2002/05/02 07:09:22 fluxgen Exp $
23 23
24#include "Tab.hh" 24#include "Tab.hh"
25 25
@@ -537,6 +537,21 @@ void Tab::setPosition() {
537 m_stoptabs = false;//thaw tablist 537 m_stoptabs = false;//thaw tablist
538} 538}
539 539
540//Moves the tab to the left
541void Tab::movePrev() {
542 insert(m_prev);
543}
544
545//Moves the tab to the next tab if m_next != 0
546void Tab::moveNext() {
547 if(m_next == 0)
548 return;
549 Tab *tmp = m_next;
550 disconnect();
551 tmp->insert(this);
552}
553
554
540//------------- calcIncrease ---------------- 555//------------- calcIncrease ----------------
541// calculates m_inc_x and m_inc_y for tabs 556// calculates m_inc_x and m_inc_y for tabs
542// used for positioning the tabs. 557// used for positioning the tabs.