00001 /* AbiSource Application Framework 00002 * Copyright (C) 1998 AbiSource, Inc. 00003 * Copyright (C) 2001, 2003 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_WINDOWMORE_H 00022 #define XAP_COCOADIALOG_WINDOWMORE_H 00023 00024 #include "xap_Dlg_WindowMore.h" 00025 #import "xap_Cocoa_NSTableUtils.h" 00026 #import "xap_GenericListChooser_Controller.h" 00027 00028 00029 /*****************************************************************/ 00030 00031 class XAP_CocoaDialog_WindowMore: public XAP_Dialog_WindowMore 00032 { 00033 public: 00034 XAP_CocoaDialog_WindowMore(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); 00035 virtual ~XAP_CocoaDialog_WindowMore(void); 00036 00037 virtual void runModal(XAP_Frame * pFrame); 00038 00039 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); 00040 00041 // callbacks can fire these events 00042 00043 virtual void event_OK(void); 00044 virtual void event_Cancel(void); 00045 virtual void event_DoubleClick(void); 00046 00047 private: 00048 void _populateWindowData(void); 00049 XAP_StringListDataSource* m_dataSource; 00050 XAP_GenericListChooser_Controller* m_dlg; 00051 }; 00052 00053 #endif /* XAP_COCOADIALOG_WINDOWMORE_H */