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,2017 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

Copyright © 1997-2016 Jeroen van der Zijp