00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiWord 00004 * Copyright (C) 2000 AbiSource, Inc. 00005 * Copyright (C) 2006 Rob Staudinger <robert.staudinger@gmail.com> 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 XAP_UNIXDIALOG_CLIPART_H 00024 #define XAP_UNIXDIALOG_CLIPART_H 00025 00026 #include <gtk/gtk.h> 00027 00028 #include "xap_Dlg_ClipArt.h" 00029 00030 class XAP_Frame; 00031 00032 class XAP_UnixDialog_ClipArt: public XAP_Dialog_ClipArt 00033 { 00034 public: 00035 XAP_UnixDialog_ClipArt(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00036 virtual ~XAP_UnixDialog_ClipArt(); 00037 00038 virtual void runModal(XAP_Frame * pFrame); 00039 00040 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id); 00041 00042 GtkWidget * getDialog () const { return dlg; } 00043 gboolean fillStore (); 00044 void onItemActivated (); 00045 00046 protected: 00047 const gchar *dir_path; 00048 GtkWidget *dlg; 00049 GtkWidget *progress; 00050 GtkWidget *icon_view; 00051 GtkListStore *store; 00052 int count; 00053 }; 00054 00055 #endif /* XAP_UNIXDIALOG_CLIPART_H */