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

ap_CocoaDialog_Background.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 2000 AbiSource, Inc.
00005  * Copyright (C) 2001 Hubert Figuiere
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 USA.
00021  */
00022 
00023 #ifndef AP_COCOADIALOG_BACKGROUND_H
00024 #define AP_COCOADIALOG_BACKGROUND_H
00025 
00026 #import <Cocoa/Cocoa.h>
00027 
00028 #include "xap_CocoaDialog_Utilities.h"
00029 
00030 #include "ap_Dialog_Background.h"
00031 
00032 class AP_CocoaDialog_Background : public AP_Dialog_Background
00033 {
00034 public:
00035     AP_CocoaDialog_Background(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00036 
00037     virtual ~AP_CocoaDialog_Background(void);
00038 
00039     virtual void            runModal(XAP_Frame * pFrame);
00040 
00041     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00042 
00043     void                    _setAnswer (AP_Dialog_Background::tAnswer ans) { setAnswer(ans); }
00044 };
00045 
00046 @interface AP_CocoaDialog_Background_Controller : NSWindowController <XAP_CocoaDialogProtocol>
00047 {
00048     IBOutlet NSButton *     oClear;
00049     IBOutlet NSButton *     oCancel;
00050     IBOutlet NSButton *     oOK;
00051 
00052     IBOutlet NSColorWell *  oColorWell;
00053 
00054     AP_CocoaDialog_Background * _xap;
00055 }
00056 - (void)dealloc;
00057 
00058 - (IBAction)aColor:(id)sender;
00059 - (IBAction)aClear:(id)sender;
00060 - (IBAction)aCancel:(id)sender;
00061 - (IBAction)aOK:(id)sender;
00062 @end
00063 
00064 #endif /* AP_COCOADIALOG_BACKGROUND_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1