![]() |
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,2009 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 * $Id: FXShell.h,v 1.35 2009/01/06 13:07:27 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXSHELL_H 00024 #define FXSHELL_H 00025 00026 #ifndef FXCOMPOSITE_H 00027 #include "FXComposite.h" 00028 #endif 00029 00030 namespace FX { 00031 00032 00033 /** 00034 * The Shell widget is used as the base class for top level windows, i.e. 00035 * windows which are direct children of the root window. 00036 */ 00037 class FXAPI FXShell : public FXComposite { 00038 FXDECLARE(FXShell) 00039 protected: 00040 FXShell(){} 00041 FXShell(FXApp* a,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00042 FXShell(FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00043 private: 00044 FXShell(const FXShell&); 00045 FXShell &operator=(const FXShell&); 00046 public: 00047 long onLayout(FXObject*,FXSelector,void*); 00048 long onConfigure(FXObject*,FXSelector,void*); 00049 long onKeyPress(FXObject*,FXSelector,void*); 00050 long onKeyRelease(FXObject*,FXSelector,void*); 00051 long onFocusNext(FXObject*,FXSelector,void*); 00052 long onFocusPrev(FXObject*,FXSelector,void*); 00053 public: 00054 enum { 00055 ID_LAYOUT=FXComposite::ID_LAST, 00056 ID_LAST 00057 }; 00058 public: 00059 00060 /// Create server-side resources 00061 virtual void create(); 00062 00063 /// Mark this window's layout as dirty 00064 virtual void recalc(); 00065 00066 /// Move the focus to this window 00067 virtual void setFocus(); 00068 00069 /// Remove the focus from this window 00070 virtual void killFocus(); 00071 00072 /// Destroy shell 00073 virtual ~FXShell(); 00074 }; 00075 00076 } 00077 00078 #endif
![]() |