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

ap_CocoaDialog_MarkRevisions.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998-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_MARKREVISIONS_H
00023 #define AP_COCOADIALOG_MARKREVISIONS_H
00024 
00025 #include "ap_Dialog_MarkRevisions.h"
00026 
00027 class XAP_CocoaFrame;
00028 @class AP_CocoaDialog_MarkRevisionsController;
00029 
00030 
00031 /*****************************************************************/
00032 
00033 class AP_CocoaDialog_MarkRevisions: public AP_Dialog_MarkRevisions
00034 {
00035 public:
00036     AP_CocoaDialog_MarkRevisions(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00037     virtual ~AP_CocoaDialog_MarkRevisions(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_FocusToggled () ;
00045 
00046 private:
00047     AP_CocoaDialog_MarkRevisionsController  *m_dlg;
00048 };
00049 
00050 
00051 @interface AP_CocoaDialog_MarkRevisionsController : NSWindowController <XAP_CocoaDialogProtocol>
00052 {
00053     IBOutlet NSButton *_cancelBtn;
00054     IBOutlet NSTextField *_commentData;
00055     IBOutlet NSTextField *_label1;
00056     IBOutlet NSTextField *_label2;
00057     IBOutlet NSButton *_okBtn;
00058     IBOutlet NSButton *_radio1;
00059     IBOutlet NSButton *_radio2;
00060     AP_CocoaDialog_MarkRevisions *_xap;
00061 }
00062 - (IBAction)cancelAction:(id)sender;
00063 - (IBAction)okAction:(id)sender;
00064 - (IBAction)radio1Action:(id)sender;
00065 - (IBAction)radio2Action:(id)sender;
00066 
00067 - (NSString*)comment;
00068 - (int)toggled;
00069 - (void)setItems2Enabled:(bool)state;
00070 @end
00071 
00072 #endif /* AP_COCOADIALOG_MARKREVISIONS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1