![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
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,2002 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.23 2002/01/18 22:42:54 jeroen Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXSHELL_H 00025 #define FXSHELL_H 00026 00027 #ifndef FXCOMPOSITE_H 00028 #include "FXComposite.h" 00029 #endif 00030 00031 00032 00033 /// A child of the Root window 00034 class FXAPI FXShell : public FXComposite { 00035 FXDECLARE(FXShell) 00036 protected: 00037 FXShell(){} 00038 FXShell(FXApp* a,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00039 FXShell(FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00040 private: 00041 FXShell(const FXShell&); 00042 FXShell &operator=(const FXShell&); 00043 public: 00044 long onConfigure(FXObject*,FXSelector,void*); 00045 long onKeyPress(FXObject*,FXSelector,void*); 00046 long onKeyRelease(FXObject*,FXSelector,void*); 00047 long onFocusNext(FXObject*,FXSelector,void*); 00048 long onFocusPrev(FXObject*,FXSelector,void*); 00049 public: 00050 00051 /// Create server-side resources 00052 virtual void create(); 00053 00054 /// Mark this window's layout as dirty 00055 virtual void recalc(); 00056 00057 /// Move the focus to this window 00058 virtual void setFocus(); 00059 00060 /// Remove the focus from this window 00061 virtual void killFocus(); 00062 00063 /// Destroy shell 00064 virtual ~FXShell(); 00065 }; 00066 00067 00068 #endif