Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 71 lines (64 sloc) 3.075 kB
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
1 /***********************************************************************
2 * FXRuby -- the Ruby language bindings for the FOX GUI toolkit.
b8219ec @lylejohnson Updated copyright notice for all SWIG interface files
lylejohnson authored
3 * Copyright (c) 2001-2009 by Lyle Johnson. All Rights Reserved.
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * For further information please contact the author by e-mail
a934547 @lylejohnson Replaced e-mail address "lyle@users.sourceforge.net" with
lylejohnson authored
20 * at "lyle@lylejohnson.name".
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
21 ***********************************************************************/
22
23
24 /**
25 * The tab book layout manager arranges pairs of children;
26 * the even numbered children (0,2,4,...) are usually tab items,
27 * and are placed on the top. The odd numbered children are
28 * usually layout managers, and are placed below; all the odd
29 * numbered children are placed on top of each other, similar
30 * to the switcher widget. When the user presses one of the
31 * tab items, the tab item is raised above the neighboring tabs,
32 * and the corresponding panel is raised to the top.
33 * Thus, a tab book can be used to present many GUI controls
34 * in a small space by placing several panels on top of each
35 * other and using tab items to select the desired panel.
36 * When one of the tab items is pressed, the tab book's setCurrent()
37 * is called with notify=TRUE. Thus causes the tab book to send a
38 * SEL_COMMAND message to its target.
39 */
40 class FXTabBook : public FXTabBar {
41 protected:
42 FXTabBook(){}
43 public:
44 long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
45 long onFocusNext(FXObject*,FXSelector,void* PTR_EVENT);
46 long onFocusPrev(FXObject*,FXSelector,void* PTR_EVENT);
47 long onFocusUp(FXObject*,FXSelector,void* PTR_EVENT);
48 long onFocusDown(FXObject*,FXSelector,void* PTR_EVENT);
49 long onFocusLeft(FXObject*,FXSelector,void* PTR_EVENT);
50 long onFocusRight(FXObject*,FXSelector,void* PTR_EVENT);
51 long onCmdOpenItem(FXObject*,FXSelector,void* PTR_IGNORE);
52 public:
53 /// Construct tab book
54 %extend {
55 FXTabBook(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=TABBOOK_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_SPACING,FXint pr=DEFAULT_SPACING,FXint pt=DEFAULT_SPACING,FXint pb=DEFAULT_SPACING){
56 return new FXRbTabBook(p,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb);
57 }
58 }
bea4cad @larskanis Strip all whitespaces on line endings
authored
59
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
60 /// Destructor
61 virtual ~FXTabBook();
62 };
63
64
65 DECLARE_FXOBJECT_VIRTUALS(FXTabBook)
66 DECLARE_FXID_VIRTUALS(FXTabBook)
67 DECLARE_FXDRAWABLE_VIRTUALS(FXTabBook)
68 DECLARE_FXWINDOW_VIRTUALS(FXTabBook)
69 DECLARE_FXTABBAR_VIRTUALS(FXTabBook)
70
Something went wrong with that request. Please try again.