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

FXStatusBar.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * S t a t u s B a r 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: FXStatusBar.h,v 1.7 2006/01/22 17:58:10 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXSTATUSBAR_H
25 #define FXSTATUSBAR_H
26 
27 #ifndef FXHORIZONTALFRAME_H
28 #include "FXHorizontalFrame.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 /// StatusBar options
35 enum {
36  STATUSBAR_WITH_DRAGCORNER = 0x00020000 /// Causes the DragCorner to be shown
37  };
38 
39 
40 class FXDragCorner;
41 class FXStatusLine;
42 
43 
44 /// Status bar
45 class FXAPI FXStatusBar : public FXHorizontalFrame {
47 protected:
48  FXDragCorner *corner;
49  FXStatusLine *status;
50 protected:
51  FXStatusBar(){}
52 private:
54  FXStatusBar& operator=(const FXStatusBar&);
55 public:
56 
57  /// Construct status bar with or without a drag corner
58  FXStatusBar(FXComposite* p,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2,FXint hs=4,FXint vs=0);
59 
60  /// Return default width
61  virtual FXint getDefaultWidth();
62 
63  /// Return default height
64  virtual FXint getDefaultHeight();
65 
66  /// Perform layout
67  virtual void layout();
68 
69  /// Show or hide the drag corner
70  void setCornerStyle(FXbool withcorner=TRUE);
71 
72  /// Return TRUE if drag corner shown
73  FXbool getCornerStyle() const;
74 
75  /// Acess the status line widget
76  FXStatusLine *getStatusLine() const { return status; }
77 
78  /// Access the drag corner widget
79  FXDragCorner *getDragCorner() const { return corner; }
80 
81  /// Save status bar to a stream
82  virtual void save(FXStream& store) const;
83 
84  /// Load status bar from a stream
85  virtual void load(FXStream& store);
86 
87  /// Destructor
88  virtual ~FXStatusBar();
89  };
90 
91 }
92 
93 #endif
Causes the DragCorner to be shown.
Definition: FXStatusBar.h:39
A drag corner widget may be placed in the bottom right corner so as to allow the window to be resized...
Definition: FXDragCorner.h:38
#define TRUE
Definition: fxdefs.h:32
unsigned int FXuint
Definition: fxdefs.h:396
#define FXAPI
Definition: fxdefs.h:122
Status bar.
Definition: FXStatusBar.h:53
FXuchar FXbool
Definition: fxdefs.h:393
FXStatusLine * getStatusLine() const
Acess the status line widget.
Definition: FXStatusBar.h:76
Base composite.
Definition: FXComposite.h:35
Horizontal frame layout manager widget is used to automatically place child-windows horizontally from...
Definition: FXHorizontalFrame.h:39
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:397
The status line normally shows its permanent message; when moving the mouse over a Widget which has s...
Definition: FXStatusLine.h:48
FXDragCorner * getDragCorner() const
Access the drag corner widget.
Definition: FXStatusBar.h:79
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92

Copyright © 1997-2005 Jeroen van der Zijp