Main Page | Class Hierarchy | Class List | File List | Class Members

Flu_Choice_Group.h

00001 // $Id: Flu_Choice_Group.h,v 1.9 2003/08/20 16:29:40 jbryan Exp $
00002 
00003 /***************************************************************
00004  *                FLU - FLTK Utility Widgets 
00005  *  Copyright (C) 2002 Ohio Supercomputer Center, Ohio State University
00006  *
00007  * This file and its content is protected by a software license.
00008  * You should have received a copy of this license with this file.
00009  * If not, please contact the Ohio Supercomputer Center immediately:
00010  * Attn: Jason Bryan Re: FLU 1224 Kinnear Rd, Columbus, Ohio 43212
00011  * 
00012  ***************************************************************/
00013 
00014 
00015 
00016 #ifndef _FLU_CHOICE_GROUP_H
00017 #define _FLU_CHOICE_GROUP_H
00018 
00019 #include <stdio.h>
00020 #include <string.h>
00021 
00022 /* fltk includes */
00023 #include <FL/Fl.H>
00024 #include <FL/Fl_Choice.H>
00025 #include <FL/fl_draw.H>
00026 #include <FL/Fl_Group.H>
00027 
00028 #include "FLU/Flu_Enumerations.h"
00029 
00031 class FLU_EXPORT Flu_Choice_Group : public Fl_Group
00032 {
00033 
00034  public:
00035 
00037   Flu_Choice_Group( int x, int y, int w, int h, const char *l = 0 );
00038 
00040 
00041   inline Fl_Widget* wvalue()
00042     { return selected; }
00043 
00045 
00046   int value();
00047 
00049 
00050   int value( Fl_Widget *newvalue );
00051 
00053   void value( int v );
00054 
00056   void draw();
00057 
00059   inline int size()
00060     { return children()-1; }
00061 
00062  protected:
00063 
00064   static void _choiceCB( Fl_Widget *w, void *arg )
00065     { ((Flu_Choice_Group*)arg)->choiceCB(); }
00066   void choiceCB();
00067 
00068   Fl_Choice *choice;
00069   Fl_Widget *selected;
00070 
00071 };
00072 
00073 #endif

Generated on Fri Nov 5 12:41:32 2004 for FLTK Utility Library and Widget Collection (FLU) by doxygen 1.3.5