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

ap_CocoaDialog_ListRevisions.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2000 AbiSource, Inc.
00003  * Copyright (C) 2002 Tomas Frydrych <tomas@frydrych.uklinux.net>
00004  * Copyright (C) 2003 Hubert Figuiere
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef AP_COCOADIALOG_LISTREVISIONS_H
00023 #define AP_COCOADIALOG_LISTREVISIONS_H
00024 
00025 #include "ap_Dialog_ListRevisions.h"
00026 
00027 class XAP_CocoaFrame;
00028 @class AP_CocoaDialog_ListRevisionsController;
00029 @class AP_ListRevisions_DataSource;
00030 
00031 /*****************************************************************/
00032 
00033 class AP_CocoaDialog_ListRevisions: public AP_Dialog_ListRevisions
00034 {
00035 public:
00036     AP_CocoaDialog_ListRevisions(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00037     virtual ~AP_CocoaDialog_ListRevisions(void);
00038 
00039     virtual void            runModal(XAP_Frame * pFrame);
00040 
00041     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00042     void event_OK();
00043     void event_Cancel();
00044     void event_Select(int idx);
00045 private:
00046     AP_CocoaDialog_ListRevisionsController *m_dlg;
00047     AP_ListRevisions_DataSource *m_dataSource;
00048 };
00049 
00050 
00051 @interface AP_CocoaDialog_ListRevisionsController : NSWindowController <XAP_CocoaDialogProtocol>
00052 {
00053     IBOutlet NSButton *_cancelBtn;
00054     IBOutlet NSTextField *_label;
00055     IBOutlet NSTableView *_list;
00056     IBOutlet NSButton *_okBtn;
00057     AP_CocoaDialog_ListRevisions    *_xap;
00058 }
00059 - (IBAction)cancelAction:(id)sender;
00060 - (IBAction)listAction:(id)sender;
00061 - (IBAction)okAction:(id)sender;
00062 
00063 - (void)setDataSource:(AP_ListRevisions_DataSource*)ds;
00064 @end
00065 
00066 #endif /* AP_COCOADIALOG_LISTREVISIONS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1