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

FXShell.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * S h e l l W i n d o w W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,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: FXShell.h,v 1.31 2006/01/22 17:58:09 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXSHELL_H
25 #define FXSHELL_H
26 
27 #ifndef FXCOMPOSITE_H
28 #include "FXComposite.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 /**
35 * The Shell widget is used as the base class for top level windows, i.e.
36 * windows which are direct children of the root window.
37 */
38 class FXAPI FXShell : public FXComposite {
40 protected:
41  FXShell(){}
42  FXShell(FXApp* a,FXuint opts,FXint x,FXint y,FXint w,FXint h);
43  FXShell(FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h);
44 private:
45  FXShell(const FXShell&);
46  FXShell &operator=(const FXShell&);
47 public:
48  long onLayout(FXObject*,FXSelector,void*);
49  long onConfigure(FXObject*,FXSelector,void*);
50  long onKeyPress(FXObject*,FXSelector,void*);
51  long onKeyRelease(FXObject*,FXSelector,void*);
52  long onFocusNext(FXObject*,FXSelector,void*);
53  long onFocusPrev(FXObject*,FXSelector,void*);
54 public:
55  enum {
56  ID_LAYOUT=FXComposite::ID_LAST,
57  ID_LAST
58  };
59 public:
60 
61  /// Create server-side resources
62  virtual void create();
63 
64  /// Mark this window's layout as dirty
65  virtual void recalc();
66 
67  /// Move the focus to this window
68  virtual void setFocus();
69 
70  /// Remove the focus from this window
71  virtual void killFocus();
72 
73  /// Destroy shell
74  virtual ~FXShell();
75  };
76 
77 }
78 
79 #endif
Base class for all windows.
Definition: FXWindow.h:115
Definition: FXWindow.h:241
unsigned int FXuint
Definition: fxdefs.h:396
FXuint FXSelector
Association key.
Definition: FXObject.h:53
#define FXAPI
Definition: fxdefs.h:122
Application Object.
Definition: FXApp.h:158
Base composite.
Definition: FXComposite.h:35
int FXint
Definition: fxdefs.h:397
The Shell widget is used as the base class for top level windows, i.e.
Definition: FXShell.h:38
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92

Copyright © 1997-2005 Jeroen van der Zijp