• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_CocoaStatusBar.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  * Copyright (C) 2001 - 2003 Hubert Figuiere
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef AP_COCOASTATUSBAR_H
00022 #define AP_COCOASTATUSBAR_H
00023 
00024 // Class for dealing with the status bar at the bottom of
00025 // the frame window.
00026 
00027 #import <Cocoa/Cocoa.h>
00028 
00029 #include "ut_types.h"
00030 #include "ap_StatusBar.h"
00031 
00032 class XAP_Frame;
00033 class GR_CocoaGraphics;
00034 class AP_CocoaStatusBar;
00035 
00037 
00038 @interface XAP_CocoaNSStatusBar : NSView
00039 {
00040     AP_CocoaStatusBar*  _xap;
00041 }
00042 - (void)setXAPOwner:(AP_CocoaStatusBar*)owner;
00043 - (void)statusBarDidResize:(NSNotification *)notification;
00044 
00045 @end
00046 
00048 
00049 class AP_CocoaStatusBar : public AP_StatusBar
00050 {
00051 public:
00052     AP_CocoaStatusBar(XAP_Frame * pFrame);
00053     virtual ~AP_CocoaStatusBar(void);
00054 
00055     virtual void        setView(AV_View * pView);
00056     XAP_CocoaNSStatusBar*   createWidget(void);
00057 
00058     virtual void        show(void);
00059     virtual void        hide(void);
00060 
00061     void _repositionFields(NSArray *fields);
00062 
00063 private:
00064 
00065     XAP_CocoaNSStatusBar *  m_wStatusBar;
00066     NSView *            m_superView;
00067     bool                m_hidden;
00068     float               m_requestedWidth;
00069     int                 m_numMaxWidth;
00070 };
00071 
00072 #endif /* AP_COCOASTATUSBAR_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1