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

xap_GenericListChooser_Controller.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2002-2003 Hubert Figuiere
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 
00021 /* XAP_GenericListChooser_Controller */
00022 
00023 #import <Cocoa/Cocoa.h>
00024 
00025 class XAP_GenericListChooser_Proxy
00026 {
00027 public:
00028     virtual ~XAP_GenericListChooser_Proxy() {}
00029     virtual void okAction () = 0;
00030     virtual void cancelAction () = 0;
00031     virtual void selectAction () = 0;
00032 };
00033 
00034 
00035 @interface XAP_GenericListChooser_Controller : NSWindowController
00036 {
00037     IBOutlet NSButton *m_cancelBtn;
00038     IBOutlet NSBox *m_enclosingBox;
00039     IBOutlet NSTableView *m_listTable;
00040     IBOutlet NSButton *m_okBtn;
00041     XAP_GenericListChooser_Proxy*   _proxy;
00042 }
00043 + (XAP_GenericListChooser_Controller *)loadFromNib;
00044 - (IBAction)cancelClicked:(id)sender;
00045 - (IBAction)listClicked:(id)sender;
00046 - (IBAction)okClicked:(id)sender;
00047 
00048 /* GUI customization */
00049 - (void)setTitle:(NSString*)title;
00050 - (void)setLabel:(NSString*)label;
00051 
00052 /* other */
00053 - (void)setXAPProxy:(XAP_GenericListChooser_Proxy*)proxy;
00054 - (void)setDataSource:(id)obj;
00055 - (void)setSelected:(int)idx;
00056 - (int)selected;
00057 @end
00058 
00059 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1