00001 /* AbiWord 00002 * Copyright (C) 2000 AbiSource, Inc. 00003 * Copyright (C) 2004, 2009 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., 59 Temple Place - Suite 330, Boston, MA 00018 * 02111-1307, USA. 00019 */ 00020 00021 #ifndef XAP_COCOADIALOG_HISTORY_H 00022 #define XAP_COCOADIALOG_HISTORY_H 00023 00024 #include "xap_Dlg_History.h" 00025 00026 @class XAP_CocoaDialog_HistoryController; 00027 @protocol XAP_CocoaDialogProtocol; 00028 class XAP_Frame; 00029 00030 /*****************************************************************/ 00031 00032 class XAP_CocoaDialog_History: public XAP_Dialog_History 00033 { 00034 public: 00035 XAP_CocoaDialog_History(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); 00036 virtual ~XAP_CocoaDialog_History(void); 00037 00038 virtual void runModal(XAP_Frame * pFrame); 00039 00040 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); 00041 void event_OK(); 00042 void event_Cancel(); 00043 private: 00044 void _populateWindowData(void); 00045 00046 XAP_CocoaDialog_HistoryController *m_dlg; 00047 }; 00048 00049 00050 00051 @interface XAP_CocoaDialog_HistoryController : NSWindowController <XAP_CocoaDialogProtocol> 00052 { 00053 IBOutlet NSButton *_cancelBtn; 00054 IBOutlet NSTextField *_createdData; 00055 IBOutlet NSTextField *_createdLabel; 00056 IBOutlet NSTextField *_docNameData; 00057 IBOutlet NSTextField *_docNameLabel; 00058 IBOutlet NSTextField *_editTimeData; 00059 IBOutlet NSTextField *_editTimeLabel; 00060 IBOutlet NSBox *_historyBox; 00061 IBOutlet NSTableView *_historyList; 00062 IBOutlet NSTextField *_identifierData; 00063 IBOutlet NSTextField *_identifierLabel; 00064 IBOutlet NSTextField *_lastSavedData; 00065 IBOutlet NSTextField *_lastSavedLabel; 00066 IBOutlet NSButton *_okBtn; 00067 IBOutlet NSTextField *_versionData; 00068 IBOutlet NSTextField *_versionLabel; 00069 XAP_CocoaDialog_History* _xap; 00070 } 00071 - (IBAction)cancelAction:(id)sender; 00072 - (IBAction)okAction:(id)sender; 00073 - (IBAction)historySelect:(id)sender; 00074 - (void)populate; 00075 00076 // data source 00077 - (id)tableView:(NSTableView *)aTableView 00078 objectValueForTableColumn:(NSTableColumn *)aTableColumn 00079 row:(int)rowIndex; 00080 - (int)numberOfRowsInTableView:(NSTableView *)aTableView; 00081 @end 00082 00083 #endif /* XAP_COCOADIALOG_HISTORY_H */
1.7.1