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

FXStatusBar.h
1 /********************************************************************************
2 * *
3 * S t a t u s B a r W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,2024 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (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 *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXSTATUSBAR_H
22 #define FXSTATUSBAR_H
23 
24 #ifndef FXHORIZONTALFRAME_H
25 #include "FXHorizontalFrame.h"
26 #endif
27 
28 namespace FX {
29 
30 
32 enum {
33  STATUSBAR_WITH_DRAGCORNER = 0x00020000
34  };
35 
36 
37 class FXDragCorner;
38 class FXStatusLine;
39 
40 
42 class FXAPI FXStatusBar : public FXHorizontalFrame {
43  FXDECLARE(FXStatusBar)
44 protected:
45  FXDragCorner *corner;
46  FXStatusLine *status;
47 protected:
48  FXStatusBar(){}
49 private:
50  FXStatusBar(const FXStatusBar&);
51  FXStatusBar& operator=(const FXStatusBar&);
52 public:
53 
55  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);
56 
58  virtual FXint getDefaultWidth();
59 
61  virtual FXint getDefaultHeight();
62 
64  virtual void layout();
65 
67  void setCornerStyle(FXbool withcorner=true);
68 
70  FXbool getCornerStyle() const;
71 
73  FXStatusLine *getStatusLine() const { return status; }
74 
76  FXDragCorner *getDragCorner() const { return corner; }
77 
79  virtual void save(FXStream& store) const;
80 
82  virtual void load(FXStream& store);
83 
85  virtual ~FXStatusBar();
86  };
87 
88 }
89 
90 #endif
A drag corner widget may be placed in the bottom right corner so as to allow the window to be resized...
Definition: FXDragCorner.h:35
Status bar.
Definition: FXStatusBar.h:42
Base composite.
Definition: FXComposite.h:32
Horizontal frame layout manager widget is used to automatically place child-windows horizontally from...
Definition: FXHorizontalFrame.h:36
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXStatusLine * getStatusLine() const
Acess the status line widget.
Definition: FXStatusBar.h:73
FXDragCorner * getDragCorner() const
Access the drag corner widget.
Definition: FXStatusBar.h:76
Definition: FX4Splitter.h:28
The status line normally shows its permanent message.
Definition: FXStatusLine.h:50

Copyright © 1997-2022 Jeroen van der Zijp