You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.7 KiB
C
89 lines
2.7 KiB
C
15 years ago
|
/***************************************************************************
|
||
|
sq_fileiconviewbase.h - description
|
||
|
-------------------
|
||
|
begin : ??? Feb 22 2005
|
||
|
copyright : (C) 2005 by Baryshev Dmitry
|
||
|
email : ksquirrel.iv@gmail.com
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef SQ_FILEICONVIEWBASE_H
|
||
|
#define SQ_FILEICONVIEWBASE_H
|
||
|
|
||
12 years ago
|
#include <tdefileiconview.h>
|
||
15 years ago
|
|
||
|
class KonqFileTip;
|
||
|
|
||
|
/*
|
||
|
* SQ_FileIconViewBase is a base class for icon view, list view and
|
||
|
* thumbnail view with drag-and-drop support.
|
||
|
*/
|
||
|
|
||
|
class SQ_FileIconViewBase : public KFileIconView
|
||
|
{
|
||
2 years ago
|
TQ_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
14 years ago
|
SQ_FileIconViewBase(TQWidget *parent = 0, const char *name = 0);
|
||
15 years ago
|
virtual ~SQ_FileIconViewBase();
|
||
|
|
||
|
virtual void insertCdUpItem(const KURL &base) = 0;
|
||
|
virtual void updateView(const KFileItem *i);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
/*
|
||
|
* Get KFileIconViewItem by KFileItem. All KFileItems store
|
||
|
* a pointer to appropriate KFileIconViewItem as extra data.
|
||
|
* See also KFileItem::setExtraData() and insertItem().
|
||
|
*/
|
||
|
KFileIconViewItem* viewItem(const KFileItem *item);
|
||
|
/*
|
||
|
* Accept dragging.
|
||
|
*/
|
||
14 years ago
|
virtual void dragEnterEvent(TQDragEnterEvent *);
|
||
15 years ago
|
|
||
|
/*
|
||
|
* Handle double clicks.
|
||
|
*/
|
||
14 years ago
|
virtual void contentsMouseDoubleClickEvent(TQMouseEvent *e);
|
||
15 years ago
|
|
||
14 years ago
|
virtual bool eventFilter(TQObject *o, TQEvent *e);
|
||
15 years ago
|
|
||
|
void initItemMy(KFileIconViewItem *item, const KFileItem *i, bool upd = false);
|
||
|
|
||
|
signals:
|
||
|
void invokeBrowser();
|
||
|
|
||
|
public slots:
|
||
|
void slotResetToolTip();
|
||
|
|
||
|
protected slots:
|
||
|
/*
|
||
|
* Show extended tooltip for 'item'.
|
||
|
*/
|
||
14 years ago
|
void slotShowToolTip(TQIconViewItem *item);
|
||
15 years ago
|
|
||
|
/*
|
||
|
* Remove tootip and stop timer.
|
||
|
*/
|
||
|
void slotRemoveToolTip();
|
||
|
|
||
|
private:
|
||
|
/*
|
||
|
* Tooltip for file item.
|
||
|
*/
|
||
|
KonqFileTip *toolTip;
|
||
|
};
|
||
|
|
||
|
#endif
|