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

FXShell.h

00001 /******************************************************************************** 00002 * * 00003 * S h e l l W i n d o w W i d g e t * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 1997,2004 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: FXShell.h,v 1.28 2004/02/08 17:17:34 fox Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXSHELL_H 00025 #define FXSHELL_H 00026 00027 #ifndef FXCOMPOSITE_H 00028 #include "FXComposite.h" 00029 #endif 00030 00031 namespace FX { 00032 00033 00034 /// A child of the Root window 00035 class FXAPI FXShell : public FXComposite { 00036 FXDECLARE(FXShell) 00037 protected: 00038 FXShell(){} 00039 FXShell(FXApp* a,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00040 FXShell(FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00041 private: 00042 FXShell(const FXShell&); 00043 FXShell &operator=(const FXShell&); 00044 public: 00045 long onLayout(FXObject*,FXSelector,void*); 00046 long onConfigure(FXObject*,FXSelector,void*); 00047 long onKeyPress(FXObject*,FXSelector,void*); 00048 long onKeyRelease(FXObject*,FXSelector,void*); 00049 long onFocusNext(FXObject*,FXSelector,void*); 00050 long onFocusPrev(FXObject*,FXSelector,void*); 00051 public: 00052 enum { 00053 ID_LAYOUT=FXComposite::ID_LAST, 00054 ID_LAST 00055 }; 00056 public: 00057 00058 /// Create server-side resources 00059 virtual void create(); 00060 00061 /// Mark this window's layout as dirty 00062 virtual void recalc(); 00063 00064 /// Move the focus to this window 00065 virtual void setFocus(); 00066 00067 /// Remove the focus from this window 00068 virtual void killFocus(); 00069 00070 /// Destroy shell 00071 virtual ~FXShell(); 00072 }; 00073 00074 } 00075 00076 #endif

Copyright © 1997-2004 Jeroen van der Zijp