• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_CocoaDlg_History.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 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
00052     : NSWindowController <XAP_CocoaDialogProtocol, NSTableViewDataSource>
00053 {
00054     IBOutlet NSButton *_cancelBtn;
00055     IBOutlet NSTextField *_createdData;
00056     IBOutlet NSTextField *_createdLabel;
00057     IBOutlet NSTextField *_docNameData;
00058     IBOutlet NSTextField *_docNameLabel;
00059     IBOutlet NSTextField *_editTimeData;
00060     IBOutlet NSTextField *_editTimeLabel;
00061     IBOutlet NSBox *_historyBox;
00062     IBOutlet NSTableView *_historyList;
00063     IBOutlet NSTextField *_identifierData;
00064     IBOutlet NSTextField *_identifierLabel;
00065     IBOutlet NSTextField *_lastSavedData;
00066     IBOutlet NSTextField *_lastSavedLabel;
00067     IBOutlet NSButton *_okBtn;
00068     IBOutlet NSTextField *_versionData;
00069     IBOutlet NSTextField *_versionLabel;
00070     XAP_CocoaDialog_History* _xap;
00071 }
00072 - (IBAction)cancelAction:(id)sender;
00073 - (IBAction)okAction:(id)sender;
00074 - (IBAction)historySelect:(id)sender;
00075 - (void)populate;
00076 
00077 // data source
00078 - (id)tableView:(NSTableView *)aTableView
00079     objectValueForTableColumn:(NSTableColumn *)aTableColumn
00080     row:(int)rowIndex;
00081 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
00082 @end
00083 
00084 #endif /* XAP_COCOADIALOG_HISTORY_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1