| 1 |
/* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ |
| 2 |
|
| 3 |
/* AbiWord |
| 4 |
* Copyright (C) 2000 AbiSource, Inc. |
| 5 |
* Copyright (C) 2006 Rob Staudinger <[email protected]> |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU General Public License |
| 9 |
* as published by the Free Software Foundation; either version 2 |
| 10 |
* of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 20 |
* 02110-1301 USA. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef XAP_UNIXDIALOG_CLIPART_H |
| 24 |
#define XAP_UNIXDIALOG_CLIPART_H |
| 25 |
|
| 26 |
#include <gtk/gtk.h> |
| 27 |
|
| 28 |
#include "xap_Dlg_ClipArt.h" |
| 29 |
|
| 30 |
class XAP_Frame; |
| 31 |
|
| 32 |
class XAP_UnixDialog_ClipArt: public XAP_Dialog_ClipArt |
| 33 |
{ |
| 34 |
public: |
| 35 |
XAP_UnixDialog_ClipArt(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); |
| 36 |
virtual ~XAP_UnixDialog_ClipArt(); |
| 37 |
|
| 38 |
virtual void runModal(XAP_Frame * pFrame); |
| 39 |
|
| 40 |
static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id); |
| 41 |
|
| 42 |
GtkWidget * getDialog () const { return dlg; } |
| 43 |
gboolean fillStore (); |
| 44 |
void onItemActivated (); |
| 45 |
|
| 46 |
protected: |
| 47 |
const gchar *dir_path; |
| 48 |
GtkWidget *dlg; |
| 49 |
GtkWidget *progress; |
| 50 |
GtkWidget *icon_view; |
| 51 |
GtkListStore *store; |
| 52 |
int count; |
| 53 |
}; |
| 54 |
|
| 55 |
#endif /* XAP_UNIXDIALOG_CLIPART_H */ |