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.
91 lines
2.5 KiB
C++
91 lines
2.5 KiB
C++
/***************************************************************************
|
|
sq_fileiconview.h - description
|
|
-------------------
|
|
begin : Mon Mar 15 2004
|
|
copyright : (C) 2004 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_FILEICONVIEW_H
|
|
#define SQ_FILEICONVIEW_H
|
|
|
|
#include "sq_fileiconviewbase.h"
|
|
|
|
#include <tqwidget.h>
|
|
|
|
class TQPoint;
|
|
|
|
/*
|
|
* SQ_FileIconView represents icon view and list view in filemanager.
|
|
*/
|
|
|
|
/*
|
|
* SQ_FileIconViewItem represents one item in icon/list view.
|
|
*/
|
|
class SQ_FileIconViewItem : public KFileIconViewItem
|
|
{
|
|
public:
|
|
SQ_FileIconViewItem(TQIconView *parent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi);
|
|
~SQ_FileIconViewItem();
|
|
|
|
protected:
|
|
/*
|
|
* Reimplement paintFocus() to ignore painting focus.
|
|
*/
|
|
virtual void paintFocus(TQPainter *, const TQColorGroup &)
|
|
{}
|
|
};
|
|
|
|
class SQ_FileIconView : public SQ_FileIconViewBase
|
|
{
|
|
TQ_OBJECT
|
|
|
|
|
|
public:
|
|
SQ_FileIconView(TQWidget *parent = 0, const char *name = "");
|
|
~SQ_FileIconView();
|
|
|
|
/*
|
|
* Internal.
|
|
*/
|
|
virtual void updateView(bool b);
|
|
|
|
/*
|
|
* Reimplement insertItem() to enable/disable inserting
|
|
* directories (depends on current settings).
|
|
*/
|
|
virtual void insertItem(KFileItem *i);
|
|
|
|
/*
|
|
* Clear current view and insert "..".
|
|
*/
|
|
virtual void clearView();
|
|
|
|
/*
|
|
* All files are listed. Do something important.
|
|
*/
|
|
virtual void listingCompleted();
|
|
|
|
/*
|
|
* Insert ".." item.
|
|
*/
|
|
virtual void insertCdUpItem(const KURL &baseurl);
|
|
|
|
protected:
|
|
virtual void startDrag();
|
|
|
|
private:
|
|
TQPixmap dirPix;
|
|
};
|
|
|
|
#endif
|