aboutsummaryrefslogtreecommitdiff
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
parente35b377338e227af5532751588f5afadca8396ef (diff)
downloadfluxbox-0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86.zip
fluxbox-0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86.tar.bz2
added moveNext/movePrev
-rw-r--r--src/Tab.cc17
-rw-r--r--src/Tab.hh6
2 files changed, 20 insertions, 3 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.
diff --git a/src/Tab.hh b/src/Tab.hh
index d23255a..22d0980 100644
--- a/src/Tab.hh
+++ b/src/Tab.hh
@@ -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.hh,v 1.11 2002/02/17 18:52:02 fluxgen Exp $ 22// $Id: Tab.hh,v 1.12 2002/05/02 07:08:24 fluxgen Exp $
23 23
24#ifndef TAB_HH 24#ifndef TAB_HH
25#define TAB_HH 25#define TAB_HH
@@ -63,6 +63,8 @@ public:
63 void shade(); 63 void shade();
64 //position tab to follow (FluxboxWindow *) m_win 64 //position tab to follow (FluxboxWindow *) m_win
65 void setPosition(); 65 void setPosition();
66 void moveNext();
67 void movePrev();
66 //event handlers 68 //event handlers
67 void buttonReleaseEvent(XButtonEvent *be); 69 void buttonReleaseEvent(XButtonEvent *be);
68 void buttonPressEvent(XButtonEvent *be); 70 void buttonPressEvent(XButtonEvent *be);
@@ -76,7 +78,7 @@ public:
76 static Tab::Placement getTabPlacementNum(const char *string); 78 static Tab::Placement getTabPlacementNum(const char *string);
77 static const char *getTabAlignmentString(Tab::Alignment alignment); 79 static const char *getTabAlignmentString(Tab::Alignment alignment);
78 static Tab::Alignment getTabAlignmentNum(const char *string); 80 static Tab::Alignment getTabAlignmentNum(const char *string);
79 //TODO: do these have to be public? 81
80 void resizeGroup(void); // used when (un)shading windows 82 void resizeGroup(void); // used when (un)shading windows
81 void calcIncrease(void); 83 void calcIncrease(void);
82 inline bool configured() { return m_configured; } 84 inline bool configured() { return m_configured; }