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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXDialogBox.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                              D i a l o g   B o x                              *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1998,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 FXDIALOGBOX_H
00022 #define FXDIALOGBOX_H
00023 
00024 #ifndef FXTOPWINDOW_H
00025 #include "FXTopWindow.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00037 class FXAPI FXDialogBox : public FXTopWindow {
00038   FXDECLARE(FXDialogBox)
00039 protected:
00040   FXDialogBox(){}
00041 private:
00042   FXDialogBox(const FXDialogBox&);
00043   FXDialogBox &operator=(const FXDialogBox&);
00044 public:
00045   long onKeyPress(FXObject*,FXSelector,void*);
00046   long onKeyRelease(FXObject*,FXSelector,void*);
00047   long onCmdAccept(FXObject*,FXSelector,void*);
00048   long onCmdCancel(FXObject*,FXSelector,void*);
00049 public:
00050   enum {
00051     ID_CANCEL=FXTopWindow::ID_LAST,     
00052     ID_ACCEPT,                          
00053     ID_LAST
00054     };
00055 public:
00056 
00058   FXDialogBox(FXApp* a,const FXString& name,FXuint opts=DECOR_TITLE|DECOR_BORDER,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=4,FXint vs=4);
00059 
00061   FXDialogBox(FXWindow* owner,const FXString& name,FXuint opts=DECOR_TITLE|DECOR_BORDER,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=4,FXint vs=4);
00062 
00064   virtual FXuint execute(FXuint placement=PLACEMENT_CURSOR);
00065   };
00066 
00067 }
00068 
00069 #endif

Copyright © 1997-2011 Jeroen van der Zijp