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

FXMainWindow.h

00001 /******************************************************************************** 00002 * * 00003 * M a i n W i n d o w W i d g e t * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 1998,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: FXMainWindow.h,v 1.18 2004/02/08 17:17:33 fox Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXMAINWINDOW_H 00025 #define FXMAINWINDOW_H 00026 00027 #ifndef FXTOPWINDOW_H 00028 #include "FXTopWindow.h" 00029 #endif 00030 00031 namespace FX { 00032 00033 00034 /** 00035 * Main application window. There may be any number of 00036 * MainWindows in an application. 00037 * When a MainWindow is closed, it sends a SEL_CLOSE message to 00038 * its target; the target should return 0 if there is no objection 00039 * against proceeding with the close, and 1 otherwise. 00040 * After the SEL_CLOSE message has been sent and no objection was 00041 * raised, the MainWindow will delete itself. 00042 */ 00043 class FXAPI FXMainWindow : public FXTopWindow { 00044 FXDECLARE(FXMainWindow) 00045 protected: 00046 FXMainWindow(){} 00047 private: 00048 FXMainWindow(const FXMainWindow&); 00049 FXMainWindow &operator=(const FXMainWindow&); 00050 public: 00051 00052 /// Construct a main window 00053 FXMainWindow(FXApp* a,const FXString& name,FXIcon *ic=NULL,FXIcon *mi=NULL,FXuint opts=DECOR_ALL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0,FXint hs=0,FXint vs=0); 00054 00055 /// Create server-side resources 00056 virtual void create(); 00057 00058 /// Destructor 00059 virtual ~FXMainWindow(); 00060 }; 00061 00062 } 00063 00064 #endif

Copyright © 1997-2004 Jeroen van der Zijp