| 1 |
/* AbiSource Application Framework |
| 2 |
* Copyright (C) 1998 AbiSource, Inc. |
| 3 |
* Copyright (C) 2001-2002 Hubert Figuiere |
| 4 |
* |
| 5 |
* This program is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU General Public License |
| 7 |
* as published by the Free Software Foundation; either version 2 |
| 8 |
* of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 18 |
* 02110-1301 USA. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef XAP_COCOADIALOG_ABOUT_H |
| 22 |
#define XAP_COCOADIALOG_ABOUT_H |
| 23 |
|
| 24 |
|
| 25 |
#import <Cocoa/Cocoa.h> |
| 26 |
|
| 27 |
#include "xap_Dlg_About.h" |
| 28 |
#include "xap_CocoaFrame.h" |
| 29 |
|
| 30 |
class XAP_CocoaDialog_About; |
| 31 |
@protocol XAP_CocoaDialogProtocol; |
| 32 |
|
| 33 |
@interface XAP_CocoaDlg_AboutController : NSWindowController <XAP_CocoaDialogProtocol> |
| 34 |
{ |
| 35 |
XAP_CocoaDialog_About *m_xap; |
| 36 |
IBOutlet NSImageView *m_imageView; |
| 37 |
IBOutlet NSTextView *m_licenseText; |
| 38 |
IBOutlet NSButton *m_okBtn; |
| 39 |
IBOutlet NSTextField *m_versionLabel; |
| 40 |
IBOutlet NSTextField *m_appName; |
| 41 |
IBOutlet NSButton *m_webBtn; |
| 42 |
} |
| 43 |
- (IBAction)okBtnAction:(id)sender; |
| 44 |
- (IBAction)webBtnAction:(id)sender; |
| 45 |
@end |
| 46 |
|
| 47 |
/*****************************************************************/ |
| 48 |
|
| 49 |
class XAP_CocoaDialog_About: public XAP_Dialog_About |
| 50 |
{ |
| 51 |
public: |
| 52 |
XAP_CocoaDialog_About(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); |
| 53 |
virtual ~XAP_CocoaDialog_About(void); |
| 54 |
|
| 55 |
static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); |
| 56 |
|
| 57 |
virtual void runModal(XAP_Frame * pFrame); |
| 58 |
|
| 59 |
// callbacks can fire these events |
| 60 |
|
| 61 |
virtual void event_OK(void); |
| 62 |
virtual void event_URL(void); |
| 63 |
private: |
| 64 |
XAP_CocoaDlg_AboutController * m_dlg; |
| 65 |
}; |
| 66 |
|
| 67 |
|
| 68 |
#endif /* XAP_COCOADIALOG_ABOUT_H */ |