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

FXMainWindow.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * M a i n W i n d o w W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1998,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXMainWindow.h,v 1.21 2006/01/22 17:58:05 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXMAINWINDOW_H
25 #define FXMAINWINDOW_H
26 
27 #ifndef FXTOPWINDOW_H
28 #include "FXTopWindow.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 /**
35 * The Main Window is usually the central window of an application. Applications
36 * may have any number of main windows.
37 * When a MainWindow is closed, it sends a SEL_CLOSE message to its target; the target
38 * should return 0 if there is no objection against proceeding with the close, and
39 * return 1 otherwise.
40 * After the SEL_CLOSE message has been sent and no objection was raised, the main
41 * window will delete itself.
42 */
43 class FXAPI FXMainWindow : public FXTopWindow {
45 protected:
46  FXMainWindow(){}
47 private:
48  FXMainWindow(const FXMainWindow&);
49  FXMainWindow &operator=(const FXMainWindow&);
50 public:
51 
52  /// Construct a main window
53  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);
54 
55  /// Create server-side resources
56  virtual void create();
57 
58  /// Destructor
59  virtual ~FXMainWindow();
60  };
61 
62 }
63 
64 #endif
unsigned int FXuint
Definition: fxdefs.h:389
#define FXAPI
Definition: fxdefs.h:122
Application Object.
Definition: FXApp.h:158
The Main Window is usually the central window of an application.
Definition: FXMainWindow.h:43
#define NULL
Definition: fxdefs.h:41
FXString name(const FXString &file)
Return name and extension part of the path name.
Definition: FXTopWindow.h:50
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:390
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:45
Abstract base class for all top-level windows.
Definition: FXTopWindow.h:106
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33

Copyright © 1997-2005 Jeroen van der Zijp