Debian Codegraph @

src/af/xap/cocoa/xap_CocoaDlg_Password.h

raw
1 /* AbiWord
2 * Copyright (C) 2000 AbiSource, Inc.
3 * Copyright (C) 2001, 2003 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_PASSWORD_H
22 #define XAP_COCOADIALOG_PASSWORD_H
23
24 #include <Cocoa/Cocoa.h>
25 #include "xap_Dlg_Password.h"
26
27 class XAP_CocoaFrame;
28 @class XAP_CocoaDlg_PasswordController;
29
30 /*****************************************************************/
31
32 class XAP_CocoaDialog_Password: public XAP_Dialog_Password
33 {
34 public:
35 XAP_CocoaDialog_Password(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
36 virtual ~XAP_CocoaDialog_Password(void);
37
38 virtual void runModal(XAP_Frame * pFrame);
39
40 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
41
42 void event_Ok ();
43 void event_Cancel ();
44 private:
45 XAP_CocoaDlg_PasswordController* m_dlg;
46 };
47
48 @interface XAP_CocoaDlg_PasswordController : NSWindowController <XAP_CocoaDialogProtocol>
49 {
50 IBOutlet NSButton *_cancelBtn;
51 IBOutlet NSButton *_okBtn;
52 IBOutlet NSTextField *_passwordData;
53 IBOutlet NSTextField *_passwordLabel;
54 XAP_CocoaDialog_Password *_xap;
55 }
56 - (NSString*)password;
57 - (IBAction)cancelAction:(id)sender;
58 - (IBAction)okAction:(id)sender;
59 @end
60 #endif /* XAP_COCOADIALOG_PASSWORD_H */