mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
3647d62f2f
svn path=/trunk/KDE/kdebase/apps/; revision=671233
73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
/***********************************************************************
|
|
*
|
|
* Kfwin.h
|
|
*
|
|
***********************************************************************/
|
|
|
|
#ifndef KFWIN_H
|
|
#define KFWIN_H
|
|
|
|
#include <k3listview.h>
|
|
#include <kfileitem.h>
|
|
#include <kurl.h>
|
|
|
|
class QFileInfo;
|
|
class KMenu;
|
|
class KfindWindow;
|
|
|
|
class KfFileLVI : public Q3ListViewItem
|
|
{
|
|
public:
|
|
KfFileLVI(KfindWindow* lv, const KFileItem &item,const QString& matchingLine);
|
|
~KfFileLVI();
|
|
|
|
QString key(int column, bool) const;
|
|
|
|
QFileInfo *fileInfo;
|
|
KFileItem fileitem;
|
|
};
|
|
|
|
class KfindWindow: public K3ListView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
KfindWindow( QWidget * parent = 0 );
|
|
|
|
void beginSearch(const KUrl& baseUrl);
|
|
void endSearch();
|
|
|
|
void insertItem(const KFileItem &item, const QString& matchingLine);
|
|
|
|
QString reducedDir(const QString& fullDir);
|
|
|
|
public Q_SLOTS:
|
|
void copySelection();
|
|
void slotContextMenu(K3ListView *,Q3ListViewItem *item,const QPoint&p);
|
|
|
|
private Q_SLOTS:
|
|
void deleteFiles();
|
|
void fileProperties();
|
|
void openFolder();
|
|
void saveResults();
|
|
void openBinding();
|
|
void selectionHasChanged();
|
|
void slotExecute(Q3ListViewItem*);
|
|
void slotOpenWith();
|
|
|
|
protected:
|
|
virtual void resizeEvent(QResizeEvent *e);
|
|
|
|
virtual Q3DragObject *dragObject();
|
|
|
|
Q_SIGNALS:
|
|
void resultSelected(bool);
|
|
|
|
private:
|
|
QString m_baseDir;
|
|
KMenu *m_menu;
|
|
bool haveSelection;
|
|
bool m_pressed;
|
|
void resetColumns(bool init);
|
|
};
|
|
|
|
#endif
|