aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
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.