FXTabBook.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *                         T a b   B o o k   W i d g e t                         *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1997,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (at your option) any later version.            *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXTabBook.h,v 1.10 2006/01/22 17:58:10 fox Exp $                          *
00023 ********************************************************************************/
00024 #ifndef FXTABBOOK_H
00025 #define FXTABBOOK_H
00026 
00027 #ifndef FXTABBAR_H
00028 #include "FXTabBar.h"
00029 #endif
00030 
00031 namespace FX {
00032 
00033 
00050 class FXAPI FXTabBook : public FXTabBar {
00051   FXDECLARE(FXTabBook)
00052 protected:
00053   FXTabBook(){}
00054 private:
00055   FXTabBook(const FXTabBook&);
00056   FXTabBook& operator=(const FXTabBook&);
00057 public:
00058   long onPaint(FXObject*,FXSelector,void*);
00059   long onFocusNext(FXObject*,FXSelector,void*);
00060   long onFocusPrev(FXObject*,FXSelector,void*);
00061   long onFocusUp(FXObject*,FXSelector,void*);
00062   long onFocusDown(FXObject*,FXSelector,void*);
00063   long onFocusLeft(FXObject*,FXSelector,void*);
00064   long onFocusRight(FXObject*,FXSelector,void*);
00065   long onCmdOpenItem(FXObject*,FXSelector,void*);
00066 public:
00067 
00069   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);
00070 
00072   virtual void layout();
00073 
00075   virtual FXint getDefaultWidth();
00076 
00078   virtual FXint getDefaultHeight();
00079   };
00080 
00081 }
00082 
00083 #endif

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:24 2009 for TnFOX by doxygen v1.4.7