![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
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,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: FXMainWindow.h,v 1.25 2009/01/06 13:07:25 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXMAINWINDOW_H 00024 #define FXMAINWINDOW_H 00025 00026 #ifndef FXTOPWINDOW_H 00027 #include "FXTopWindow.h" 00028 #endif 00029 00030 namespace FX { 00031 00032 00033 /** 00034 * The Main Window is usually the central window of an application. Applications 00035 * may have any number of main windows. 00036 * When a MainWindow is closed, it sends a SEL_CLOSE message to its target; the target 00037 * should return 0 if there is no objection against proceeding with the close, and 00038 * return 1 otherwise. 00039 * After the SEL_CLOSE message has been sent and no objection was raised, the main 00040 * window will delete itself. 00041 */ 00042 class FXAPI FXMainWindow : public FXTopWindow { 00043 FXDECLARE(FXMainWindow) 00044 protected: 00045 FXMainWindow(){} 00046 private: 00047 FXMainWindow(const FXMainWindow&); 00048 FXMainWindow &operator=(const FXMainWindow&); 00049 public: 00050 00051 /// Construct a main window 00052 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); 00053 00054 /// Create server-side resources 00055 virtual void create(); 00056 00057 /// Destructor 00058 virtual ~FXMainWindow(); 00059 }; 00060 00061 } 00062 00063 #endif
![]() |