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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXStatusBar.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                       S t a t u s B a r   W i d g e t                         *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1997,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXSTATUSBAR_H
00022 #define FXSTATUSBAR_H
00023 
00024 #ifndef FXHORIZONTALFRAME_H
00025 #include "FXHorizontalFrame.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00032 enum {
00033   STATUSBAR_WITH_DRAGCORNER = 0x00020000    
00034   };
00035 
00036 
00037 class FXDragCorner;
00038 class FXStatusLine;
00039 
00040 
00042 class FXAPI FXStatusBar : public FXHorizontalFrame {
00043   FXDECLARE(FXStatusBar)
00044 protected:
00045   FXDragCorner *corner;
00046   FXStatusLine *status;
00047 protected:
00048   FXStatusBar(){}
00049 private:
00050   FXStatusBar(const FXStatusBar&);
00051   FXStatusBar& operator=(const FXStatusBar&);
00052 public:
00053 
00055   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);
00056 
00058   virtual FXint getDefaultWidth();
00059 
00061   virtual FXint getDefaultHeight();
00062 
00064   virtual void layout();
00065 
00067   void setCornerStyle(FXbool withcorner=true);
00068 
00070   FXbool getCornerStyle() const;
00071 
00073   FXStatusLine *getStatusLine() const { return status; }
00074 
00076   FXDragCorner *getDragCorner() const { return corner; }
00077 
00079   virtual void save(FXStream& store) const;
00080 
00082   virtual void load(FXStream& store);
00083 
00085   virtual ~FXStatusBar();
00086   };
00087 
00088 }
00089 
00090 #endif

Copyright © 1997-2011 Jeroen van der Zijp