Debian Codegraph @

src/af/xap/cocoa/xap_CocoaDlg_History.h

raw
1 /* AbiWord
2 * Copyright (C) 2000 AbiSource, Inc.
3 * Copyright (C) 2004, 2009 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_HISTORY_H
22 #define XAP_COCOADIALOG_HISTORY_H
23
24 #include "xap_Dlg_History.h"
25
26 @class XAP_CocoaDialog_HistoryController;
27 @protocol XAP_CocoaDialogProtocol;
28 class XAP_Frame;
29
30 /*****************************************************************/
31
32 class XAP_CocoaDialog_History: public XAP_Dialog_History
33 {
34 public:
35 XAP_CocoaDialog_History(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
36 virtual ~XAP_CocoaDialog_History(void);
37
38 virtual void runModal(XAP_Frame * pFrame);
39
40 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
41 void event_OK();
42 void event_Cancel();
43 private:
44 void _populateWindowData(void);
45
46 XAP_CocoaDialog_HistoryController *m_dlg;
47 };
48
49
50
51 @interface XAP_CocoaDialog_HistoryController : NSWindowController <XAP_CocoaDialogProtocol>
52 {
53 IBOutlet NSButton *_cancelBtn;
54 IBOutlet NSTextField *_createdData;
55 IBOutlet NSTextField *_createdLabel;
56 IBOutlet NSTextField *_docNameData;
57 IBOutlet NSTextField *_docNameLabel;
58 IBOutlet NSTextField *_editTimeData;
59 IBOutlet NSTextField *_editTimeLabel;
60 IBOutlet NSBox *_historyBox;
61 IBOutlet NSTableView *_historyList;
62 IBOutlet NSTextField *_identifierData;
63 IBOutlet NSTextField *_identifierLabel;
64 IBOutlet NSTextField *_lastSavedData;
65 IBOutlet NSTextField *_lastSavedLabel;
66 IBOutlet NSButton *_okBtn;
67 IBOutlet NSTextField *_versionData;
68 IBOutlet NSTextField *_versionLabel;
69 XAP_CocoaDialog_History* _xap;
70 }
71 - (IBAction)cancelAction:(id)sender;
72 - (IBAction)okAction:(id)sender;
73 - (IBAction)historySelect:(id)sender;
74 - (void)populate;
75
76 // data source
77 - (id)tableView:(NSTableView *)aTableView
78 objectValueForTableColumn:(NSTableColumn *)aTableColumn
79 row:(int)rowIndex;
80 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
81 @end
82
83 #endif /* XAP_COCOADIALOG_HISTORY_H */