Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXPicker.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                          P i c k e r   B u t t o n                            *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2001,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (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                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXPICKER_H
00022 #define FXPICKER_H
00023 
00024 #ifndef FXBUTTON_H
00025 #include "FXButton.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00038 class FXAPI FXPicker : public FXButton {
00039   FXDECLARE(FXPicker)
00040 protected:
00041   FXPoint location;     // Location
00042   FXbool  picked;       // Clicked
00043 protected:
00044   FXPicker();
00045 private:
00046   FXPicker(const FXPicker&);
00047   FXPicker& operator=(const FXPicker&);
00048 public:
00049   long onMotion(FXObject*,FXSelector,void*);
00050   long onLeftBtnPress(FXObject*,FXSelector,void*);
00051   long onLeftBtnRelease(FXObject*,FXSelector,void*);
00052   long onKeyPress(FXObject*,FXSelector,void*);
00053   long onKeyRelease(FXObject*,FXSelector,void*);
00054   long onHotKeyPress(FXObject*,FXSelector,void*);
00055   long onHotKeyRelease(FXObject*,FXSelector,void*);
00056 public:
00057 
00059   FXPicker(FXComposite* p,const FXString& text,FXIcon* ic=NULL,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=BUTTON_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD);
00060   };
00061 
00062 }
00063 
00064 #endif

Copyright © 1997-2011 Jeroen van der Zijp