FLTK Utility Library and Widget Collection (FLU): Flu_Combo_List.h Source File

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

# Flu_Combo_List.h

    00001 // $Id: Flu_Combo_List.h,v 1.6 2004/03/24 02:49:00 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_COMBO_LIST_H
    00017 #define _FLU_COMBO_LIST_H
    00018
    00019 #include <FL/Fl_Hold_Browser.H>
    00020
    00021 #include "FLU/Flu_Combo_Box.h"
    00022
    00024 class FLU_EXPORT Flu_Combo_List : public Flu_Combo_Box
    00025 {
    00026
    00027 public:
    00028
    00030   Flu_Combo_List( int x, int y, int w, int h, const char *l = 0 );
    00031
    00033   ~Flu_Combo_List();
    00034
    00036   Fl_Hold_Browser list;
    00037
    00038  protected:
    00039
    00040   bool _value( const char *v );
    00041   const char* _next();
    00042   const char* _previous();
    00043   void _hilight( int x, int y );
    00044
    00045   inline static void _cb( Fl_Widget *w, void *arg )
    00046     { ((Flu_Combo_List*)arg)->cb(); }
    00047   void cb();
    00048
    00049 };
    00050
    00051 #endif