/***************************************************************************
                            kde_KFilePreview.h -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KDE_KFILEPREVIEW
#define KDE_KFILEPREVIEW

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

kde_KFilePreview * kde_new_KFilePreview(qt_QWidget * parent, char* name);
kde_KFilePreview * kde_new_KFilePreview1(kde_KFileView* view, qt_QWidget * parent, char* name);
void kde_del_KFilePreview( kde_KFilePreview* p );
qt_QWidget * kde_KFilePreview_widget(kde_KFilePreview* instPointer);
void kde_KFilePreview_clearView(kde_KFilePreview* instPointer);

/** 
 Delets the current view and sets the view to the given @p view.
 The view is reparented to have this as parent, if necessary.
     
*/
void kde_KFilePreview_setFileView(kde_KFilePreview* instPointer,kde_KFileView* view);

/** 

*/
kde_KFileView* kde_KFilePreview_fileView(kde_KFilePreview* instPointer);
void kde_KFilePreview_updateView(kde_KFilePreview* instPointer,int arg1);
void kde_KFilePreview_updateView1(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
void kde_KFilePreview_removeItem(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
void kde_KFilePreview_listingCompleted(kde_KFilePreview* instPointer);
void kde_KFilePreview_setSelectionMode(kde_KFilePreview* instPointer,int sm);
void kde_KFilePreview_setSelected(kde_KFilePreview* instPointer,kde_KFileItem* arg1, int arg2);
int kde_KFilePreview_isSelected(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
void kde_KFilePreview_clearSelection(kde_KFilePreview* instPointer);
void kde_KFilePreview_selectAll(kde_KFilePreview* instPointer);
void kde_KFilePreview_invertSelection(kde_KFilePreview* instPointer);
void kde_KFilePreview_insertItem(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
void kde_KFilePreview_clear(kde_KFilePreview* instPointer);
void kde_KFilePreview_setCurrentItem(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
kde_KFileItem* kde_KFilePreview_currentFileItem(kde_KFilePreview* instPointer);
kde_KFileItem* kde_KFilePreview_firstFileItem(kde_KFilePreview* instPointer);
kde_KFileItem* kde_KFilePreview_nextItem(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
kde_KFileItem* kde_KFilePreview_prevItem(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
void kde_KFilePreview_setSorting(kde_KFilePreview* instPointer,int sort);
void kde_KFilePreview_ensureItemVisible(kde_KFilePreview* instPointer,kde_KFileItem* arg1);
void kde_KFilePreview_setPreviewWidget(kde_KFilePreview* instPointer,qt_QWidget * w, kde_KURL* u);
void kde_KFilePreview_slotHighlighted(kde_KFilePreview* instPointer,kde_KFileItem* arg1);

/** Casts a 'kde_KFilePreview *' to a 'kde_KFileView*' */
kde_KFileView* kde_KFilePreview_KFileView(kde_KFilePreview* instPointer);

/** Casts a 'kde_KFilePreview *' to a 'qt_QSplitter*' */
qt_QSplitter* kde_KFilePreview_QSplitter(kde_KFilePreview* instPointer);

#endif
