![]() |
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,2009 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 * $Id: FXStatusBar.h,v 1.15 2009/01/06 13:07:27 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXSTATUSBAR_H 00024 #define FXSTATUSBAR_H 00025 00026 #ifndef FXHORIZONTALFRAME_H 00027 #include "FXHorizontalFrame.h" 00028 #endif 00029 00030 namespace FX { 00031 00032 00033 /// StatusBar options 00034 enum { 00035 STATUSBAR_WITH_DRAGCORNER = 0x00020000 /// Causes the DragCorner to be shown 00036 }; 00037 00038 00039 class FXDragCorner; 00040 class FXStatusLine; 00041 00042 00043 /// Status bar 00044 class FXAPI FXStatusBar : public FXHorizontalFrame { 00045 FXDECLARE(FXStatusBar) 00046 protected: 00047 FXDragCorner *corner; 00048 FXStatusLine *status; 00049 protected: 00050 FXStatusBar(){} 00051 private: 00052 FXStatusBar(const FXStatusBar&); 00053 FXStatusBar& operator=(const FXStatusBar&); 00054 public: 00055 00056 /// Construct status bar with or without a drag corner 00057 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); 00058 00059 /// Return default width 00060 virtual FXint getDefaultWidth(); 00061 00062 /// Return default height 00063 virtual FXint getDefaultHeight(); 00064 00065 /// Perform layout 00066 virtual void layout(); 00067 00068 /// Show or hide the drag corner 00069 void setCornerStyle(FXbool withcorner=true); 00070 00071 /// Return true if drag corner shown 00072 FXbool getCornerStyle() const; 00073 00074 /// Acess the status line widget 00075 FXStatusLine *getStatusLine() const { return status; } 00076 00077 /// Access the drag corner widget 00078 FXDragCorner *getDragCorner() const { return corner; } 00079 00080 /// Save status bar to a stream 00081 virtual void save(FXStream& store) const; 00082 00083 /// Load status bar from a stream 00084 virtual void load(FXStream& store); 00085 00086 /// Destructor 00087 virtual ~FXStatusBar(); 00088 }; 00089 00090 } 00091 00092 #endif
![]() |