![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * S t a t u s B a r W i d g e t * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 1997,2002 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU Lesser General Public * 00010 * License as published by the Free Software Foundation; either * 00011 * version 2.1 of the License, or (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 GNU * 00016 * Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public * 00019 * License along with this library; if not, write to the Free Software * 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * 00021 ********************************************************************************* 00022 * $Id: FXStatusBar.h,v 1.3 2002/03/12 00:49:49 fox Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXSTATUSBAR_H 00025 #define FXSTATUSBAR_H 00026 00027 #ifndef FXHORIZONTALFRAME_H 00028 #include "FXHorizontalFrame.h" 00029 #endif 00030 00031 namespace FX { 00032 00033 00034 /// StatusBar options 00035 enum { 00036 STATUSBAR_WITH_DRAGCORNER = 0x00020000 /// Causes the DragCorner to be shown 00037 }; 00038 00039 00040 class FXDragCorner; 00041 class FXStatusLine; 00042 00043 00044 /// Status bar 00045 class FXAPI FXStatusBar : public FXHorizontalFrame { 00046 FXDECLARE(FXStatusBar) 00047 protected: 00048 FXDragCorner *corner; 00049 FXStatusLine *status; 00050 protected: 00051 FXStatusBar(){} 00052 virtual void layout(); 00053 private: 00054 FXStatusBar(const FXStatusBar&); 00055 FXStatusBar& operator=(const FXStatusBar&); 00056 public: 00057 00058 /// Construct status bar with or without a drag corner 00059 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); 00060 00061 /// Return default width 00062 virtual FXint getDefaultWidth(); 00063 00064 /// Return default height 00065 virtual FXint getDefaultHeight(); 00066 00067 /// Show or hide the drag corner 00068 void setCornerStyle(FXbool withcorner=TRUE); 00069 00070 /// Return TRUE if drag corner shown 00071 FXbool getCornerStyle() const; 00072 00073 /// Acess the status line widget 00074 FXStatusLine *getStatusLine() const { return status; } 00075 00076 /// Access the drag corner widget 00077 FXDragCorner *getDragCorner() const { return corner; } 00078 00079 /// Save status bar to a stream 00080 virtual void save(FXStream& store) const; 00081 00082 /// Load status bar from a stream 00083 virtual void load(FXStream& store); 00084 00085 /// Destructor 00086 virtual ~FXStatusBar(); 00087 }; 00088 00089 } 00090 00091 #endif