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

xap_CocoaDlg_About.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  * Copyright (C) 2001-2002 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 XAP_COCOADIALOG_ABOUT_H
00022 #define XAP_COCOADIALOG_ABOUT_H
00023 
00024 
00025 #import <Cocoa/Cocoa.h>
00026 
00027 #include "xap_Dlg_About.h"
00028 #include "xap_CocoaFrame.h"
00029 
00030 class XAP_CocoaDialog_About;
00031 @protocol XAP_CocoaDialogProtocol;
00032 
00033 @interface XAP_CocoaDlg_AboutController : NSWindowController <XAP_CocoaDialogProtocol>
00034 {
00035     XAP_CocoaDialog_About *m_xap;
00036     IBOutlet NSImageView *m_imageView;
00037     IBOutlet NSTextView *m_licenseText;
00038     IBOutlet NSButton *m_okBtn;
00039     IBOutlet NSTextField *m_versionLabel;
00040     IBOutlet NSTextField *m_appName;
00041     IBOutlet NSButton *m_webBtn;
00042 }
00043 - (IBAction)okBtnAction:(id)sender;
00044 - (IBAction)webBtnAction:(id)sender;
00045 @end
00046 
00047 /*****************************************************************/
00048 
00049 class XAP_CocoaDialog_About: public XAP_Dialog_About
00050 {
00051 public:
00052     XAP_CocoaDialog_About(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00053     virtual ~XAP_CocoaDialog_About(void);
00054 
00055     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00056 
00057     virtual void            runModal(XAP_Frame * pFrame);
00058 
00059     // callbacks can fire these events
00060 
00061     virtual void            event_OK(void);
00062     virtual void            event_URL(void);
00063 private:
00064     XAP_CocoaDlg_AboutController * m_dlg;
00065 };
00066 
00067 
00068 #endif /* XAP_COCOADIALOG_ABOUT_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1