00001 /* AbiWord 00002 * Copyright (C) 2000 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 XAP_COCOADIALOG_PASSWORD_H 00022 #define XAP_COCOADIALOG_PASSWORD_H 00023 00024 #include <Cocoa/Cocoa.h> 00025 #include "xap_Dlg_Password.h" 00026 00027 class XAP_CocoaFrame; 00028 @class XAP_CocoaDlg_PasswordController; 00029 00030 /*****************************************************************/ 00031 00032 class XAP_CocoaDialog_Password: public XAP_Dialog_Password 00033 { 00034 public: 00035 XAP_CocoaDialog_Password(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); 00036 virtual ~XAP_CocoaDialog_Password(void); 00037 00038 virtual void runModal(XAP_Frame * pFrame); 00039 00040 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); 00041 00042 void event_Ok (); 00043 void event_Cancel (); 00044 private: 00045 XAP_CocoaDlg_PasswordController* m_dlg; 00046 }; 00047 00048 @interface XAP_CocoaDlg_PasswordController : NSWindowController <XAP_CocoaDialogProtocol> 00049 { 00050 IBOutlet NSButton *_cancelBtn; 00051 IBOutlet NSButton *_okBtn; 00052 IBOutlet NSTextField *_passwordData; 00053 IBOutlet NSTextField *_passwordLabel; 00054 XAP_CocoaDialog_Password *_xap; 00055 } 00056 - (NSString*)password; 00057 - (IBAction)cancelAction:(id)sender; 00058 - (IBAction)okAction:(id)sender; 00059 @end 00060 #endif /* XAP_COCOADIALOG_PASSWORD_H */