added moveNext/movePrev
This commit is contained in:
parent
e35b377338
commit
0f1dd8e8b5
2 changed files with 20 additions and 3 deletions
17
src/Tab.cc
17
src/Tab.cc
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "Tab.hh"
|
||||||
|
|
||||||
|
@ -537,6 +537,21 @@ void Tab::setPosition() {
|
||||||
m_stoptabs = false;//thaw tablist
|
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 ----------------
|
//------------- calcIncrease ----------------
|
||||||
// calculates m_inc_x and m_inc_y for tabs
|
// calculates m_inc_x and m_inc_y for tabs
|
||||||
// used for positioning the tabs.
|
// used for positioning the tabs.
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
#ifndef TAB_HH
|
||||||
#define TAB_HH
|
#define TAB_HH
|
||||||
|
@ -63,6 +63,8 @@ public:
|
||||||
void shade();
|
void shade();
|
||||||
//position tab to follow (FluxboxWindow *) m_win
|
//position tab to follow (FluxboxWindow *) m_win
|
||||||
void setPosition();
|
void setPosition();
|
||||||
|
void moveNext();
|
||||||
|
void movePrev();
|
||||||
//event handlers
|
//event handlers
|
||||||
void buttonReleaseEvent(XButtonEvent *be);
|
void buttonReleaseEvent(XButtonEvent *be);
|
||||||
void buttonPressEvent(XButtonEvent *be);
|
void buttonPressEvent(XButtonEvent *be);
|
||||||
|
@ -76,7 +78,7 @@ public:
|
||||||
static Tab::Placement getTabPlacementNum(const char *string);
|
static Tab::Placement getTabPlacementNum(const char *string);
|
||||||
static const char *getTabAlignmentString(Tab::Alignment alignment);
|
static const char *getTabAlignmentString(Tab::Alignment alignment);
|
||||||
static Tab::Alignment getTabAlignmentNum(const char *string);
|
static Tab::Alignment getTabAlignmentNum(const char *string);
|
||||||
//TODO: do these have to be public?
|
|
||||||
void resizeGroup(void); // used when (un)shading windows
|
void resizeGroup(void); // used when (un)shading windows
|
||||||
void calcIncrease(void);
|
void calcIncrease(void);
|
||||||
inline bool configured() { return m_configured; }
|
inline bool configured() { return m_configured; }
|
||||||
|
|
Loading…
Reference in a new issue