1
/***************************************************************************
2
* Copyright (C) 2001 by Bernd Gehrmann *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#ifndef _FILESELECTORWIDGET_H_
13
#define _FILESELECTORWIDGET_H_
16
#include <qpushbutton.h>
22
#include <klistview.h>
26
#include <kurlcombobox.h>
27
#include <kurlcompletion.h>
28
#include <kcombobox.h>
29
#include <kprotocolinfo.h>
31
#include <kfileview.h>
32
#include <kfileitem.h>
34
#include <kdiroperator.h>
36
class AutoProjectPart;
40
class KDnDDirOperator : public KDirOperator
45
KDnDDirOperator ( const KURL& urlName = KURL(), QWidget *parent = 0, const char* name = 0 );
48
virtual KFileView* createView( QWidget* parent, KFile::FileView view );
51
class FileSelectorWidget : public QWidget
56
FileSelectorWidget( AutoProjectPart* part, KFile::Mode, QWidget* parent = 0, const char* name = 0 );
57
~FileSelectorWidget();
59
KDnDDirOperator * dirOperator()
65
void slotFilterChanged( const QString& );
67
void setDir( const QString& );
70
void cmbPathActivated( const KURL& u );
71
void cmbPathReturnPressed( const QString& u );
72
void dirUrlEntered( const KURL& u );
73
void dirFinishedLoading();
74
void filterReturnPressed( const QString& nf );
77
void focusInEvent( QFocusEvent* );
78
void dragEnterEvent ( QDragEnterEvent* ev );
79
void dropEvent ( QDropEvent* ev );
82
KURLComboBox *cmbPath;
83
KHistoryCombo * filter;
85
KDnDDirOperator * dir;
86
QPushButton *home, *up, *back, *forward;
87
AutoProjectPart* m_part;
90
void dropped ( const QString& );
95
// kate: indent-mode csands; tab-width 4;