all repos — fluxbox @ 0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86

custom fork of the fluxbox windowmanager

added moveNext/movePrev
fluxgen fluxgen
commit

0f1dd8e8b582f03ec0125e0ea237a3f9cbeabd86

parent

e35b377338e227af5532751588f5afadca8396ef

2 files changed, 20 insertions(+), 3 deletions(-)

jump to
M src/Tab.ccsrc/Tab.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Tab.cc,v 1.25 2002/04/28 08:49:31 fluxgen Exp $ +// $Id: Tab.cc,v 1.26 2002/05/02 07:09:22 fluxgen Exp $ #include "Tab.hh"

@@ -536,6 +536,21 @@ }

m_stoptabs = false;//thaw tablist } + +//Moves the tab to the left +void Tab::movePrev() { + insert(m_prev); +} + +//Moves the tab to the next tab if m_next != 0 +void Tab::moveNext() { + if(m_next == 0) + return; + Tab *tmp = m_next; + disconnect(); + tmp->insert(this); +} + //------------- calcIncrease ---------------- // calculates m_inc_x and m_inc_y for tabs
M src/Tab.hhsrc/Tab.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Tab.hh,v 1.11 2002/02/17 18:52:02 fluxgen Exp $ +// $Id: Tab.hh,v 1.12 2002/05/02 07:08:24 fluxgen Exp $ #ifndef TAB_HH #define TAB_HH

@@ -63,6 +63,8 @@ void resize();

void shade(); //position tab to follow (FluxboxWindow *) m_win void setPosition(); + void moveNext(); + void movePrev(); //event handlers void buttonReleaseEvent(XButtonEvent *be); void buttonPressEvent(XButtonEvent *be);

@@ -76,7 +78,7 @@ static const char *getTabPlacementString(Tab::Placement placement);

static Tab::Placement getTabPlacementNum(const char *string); static const char *getTabAlignmentString(Tab::Alignment alignment); static Tab::Alignment getTabAlignmentNum(const char *string); - //TODO: do these have to be public? + void resizeGroup(void); // used when (un)shading windows void calcIncrease(void); inline bool configured() { return m_configured; }