1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// "$Id$"
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
|
|
|
// Tab header file for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// Copyright 1998-2005 by Bill Spitzak and others.
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Library General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Library General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Library General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
// USA.
|
|
|
|
//
|
2005-04-16 04:13:17 +04:00
|
|
|
// Please report all bugs and problems on the following page:
|
|
|
|
//
|
|
|
|
// http://www.fltk.org/str.php
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
#ifndef Fl_Tabs_H
|
|
|
|
#define Fl_Tabs_H
|
|
|
|
|
|
|
|
#include "Fl_Group.H"
|
|
|
|
|
2002-08-14 20:49:38 +04:00
|
|
|
class FL_EXPORT Fl_Tabs : public Fl_Group {
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Widget *value_;
|
|
|
|
Fl_Widget *push_;
|
2002-08-14 20:49:38 +04:00
|
|
|
int tab_positions(int*, int*);
|
|
|
|
int tab_height();
|
|
|
|
void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
|
2000-06-10 23:30:01 +04:00
|
|
|
protected:
|
2006-05-30 13:38:19 +04:00
|
|
|
void redraw_tabs();
|
2002-08-14 20:49:38 +04:00
|
|
|
void draw();
|
2000-06-10 23:30:01 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
public:
|
2002-08-14 20:49:38 +04:00
|
|
|
int handle(int);
|
2006-08-17 12:43:50 +04:00
|
|
|
Fl_Widget *value() const;
|
2002-08-14 20:49:38 +04:00
|
|
|
int value(Fl_Widget *);
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Widget *push() const {return push_;}
|
2002-08-14 20:49:38 +04:00
|
|
|
int push(Fl_Widget *);
|
|
|
|
Fl_Tabs(int,int,int,int,const char * = 0);
|
|
|
|
Fl_Widget *which(int event_x, int event_y);
|
1998-10-06 22:21:25 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-10-20 01:39:29 +04:00
|
|
|
|
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// End of "$Id$".
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|