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,2005 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.30 2005/01/16 16:06:06 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 /** 00035 * The Shell widget is used as the base class for top level windows, i.e. 00036 * windows which are direct children of the root window. 00037 */ 00038 class FXAPI FXShell : public FXComposite { 00039 FXDECLARE(FXShell) 00040 protected: 00041 FXShell(){} 00042 FXShell(FXApp* a,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00043 FXShell(FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00044 private: 00045 FXShell(const FXShell&); 00046 FXShell &operator=(const FXShell&); 00047 public: 00048 long onLayout(FXObject*,FXSelector,void*); 00049 long onConfigure(FXObject*,FXSelector,void*); 00050 long onKeyPress(FXObject*,FXSelector,void*); 00051 long onKeyRelease(FXObject*,FXSelector,void*); 00052 long onFocusNext(FXObject*,FXSelector,void*); 00053 long onFocusPrev(FXObject*,FXSelector,void*); 00054 public: 00055 enum { 00056 ID_LAYOUT=FXComposite::ID_LAST, 00057 ID_LAST 00058 }; 00059 public: 00060 00061 /// Create server-side resources 00062 virtual void create(); 00063 00064 /// Mark this window's layout as dirty 00065 virtual void recalc(); 00066 00067 /// Move the focus to this window 00068 virtual void setFocus(); 00069 00070 /// Remove the focus from this window 00071 virtual void killFocus(); 00072 00073 /// Destroy shell 00074 virtual ~FXShell(); 00075 }; 00076 00077 } 00078 00079 #endif
Copyright © 1997-2005 Jeroen van der Zijp |