|
|
|
@ -48,7 +48,7 @@ SQ_DirectoryBasket * SQ_DirectoryBasket::m_inst = 0;
|
|
|
|
|
|
|
|
|
|
/* ******************************************************************************* */
|
|
|
|
|
|
|
|
|
|
SQ_DBMenu::SQ_DBMenu(TQWidget *tqparent, const char *name) : SQ_TreeViewMenu(tqparent, name), item(0)
|
|
|
|
|
SQ_DBMenu::SQ_DBMenu(TQWidget *parent, const char *name) : SQ_TreeViewMenu(parent, name), item(0)
|
|
|
|
|
{
|
|
|
|
|
insertSeparator();
|
|
|
|
|
id_icon = insertItem(i18n("Change icon"), TQT_TQOBJECT(this), TQT_SLOT(slotChangeIcon()));
|
|
|
|
@ -122,8 +122,8 @@ SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeViewItem *parentItem, KFileItem *fil
|
|
|
|
|
: KFileTreeViewItem(parentItem, fileItem, parentBranch), m_index(0)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeView *tqparent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
|
|
|
|
|
: KFileTreeViewItem(tqparent, fileItem, parentBranch), m_index(0)
|
|
|
|
|
SQ_DirectoryItem::SQ_DirectoryItem(KFileTreeView *parent, KFileItem *fileItem, KFileTreeBranch *parentBranch)
|
|
|
|
|
: KFileTreeViewItem(parent, fileItem, parentBranch), m_index(0)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryItem::~SQ_DirectoryItem()
|
|
|
|
@ -131,22 +131,22 @@ SQ_DirectoryItem::~SQ_DirectoryItem()
|
|
|
|
|
|
|
|
|
|
/* ******************************************************************************* */
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryBasketBranch::SQ_DirectoryBasketBranch(KFileTreeView *tqparent, const KURL &url, const TQString &name, const TQPixmap &pix)
|
|
|
|
|
: KFileTreeBranch(tqparent, url, name, pix)
|
|
|
|
|
SQ_DirectoryBasketBranch::SQ_DirectoryBasketBranch(KFileTreeView *parent, const KURL &url, const TQString &name, const TQPixmap &pix)
|
|
|
|
|
: KFileTreeBranch(parent, url, name, pix)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryBasketBranch::~SQ_DirectoryBasketBranch()
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
KFileTreeViewItem* SQ_DirectoryBasketBranch::createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem)
|
|
|
|
|
KFileTreeViewItem* SQ_DirectoryBasketBranch::createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem)
|
|
|
|
|
{
|
|
|
|
|
if(!tqparent || !fileItem)
|
|
|
|
|
if(!parent || !fileItem)
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
// hehe...
|
|
|
|
|
fileItem->setMimeType("inode/directory");
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryItem *i = new SQ_DirectoryItem(tqparent, fileItem, this);
|
|
|
|
|
SQ_DirectoryItem *i = new SQ_DirectoryItem(parent, fileItem, this);
|
|
|
|
|
|
|
|
|
|
if(i)
|
|
|
|
|
{
|
|
|
|
@ -200,7 +200,7 @@ KFileTreeViewItem* SQ_DirectoryBasketBranch::createTreeViewItem(KFileTreeViewIte
|
|
|
|
|
|
|
|
|
|
/* ******************************************************************************* */
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryBasket::SQ_DirectoryBasket(TQWidget *tqparent, const char *name) : KFileTreeView(tqparent, name)
|
|
|
|
|
SQ_DirectoryBasket::SQ_DirectoryBasket(TQWidget *parent, const char *name) : KFileTreeView(parent, name)
|
|
|
|
|
{
|
|
|
|
|
m_inst = this;
|
|
|
|
|
|
|
|
|
@ -307,7 +307,7 @@ void SQ_DirectoryBasket::slotDropped(TQDropEvent *e, TQListViewItem *_parent, TQ
|
|
|
|
|
if(!_item) _item = _parent;
|
|
|
|
|
|
|
|
|
|
SQ_DirectoryItem *item = static_cast<SQ_DirectoryItem *>(_item);
|
|
|
|
|
SQ_DirectoryItem *tqparent = static_cast<SQ_DirectoryItem *>(_parent);
|
|
|
|
|
SQ_DirectoryItem *parent = static_cast<SQ_DirectoryItem *>(_parent);
|
|
|
|
|
|
|
|
|
|
KURL::List list;
|
|
|
|
|
KURLDrag::decode(e, list);
|
|
|
|
@ -329,9 +329,9 @@ void SQ_DirectoryBasket::slotDropped(TQDropEvent *e, TQListViewItem *_parent, TQ
|
|
|
|
|
if(it)
|
|
|
|
|
{
|
|
|
|
|
if(it != root->root())
|
|
|
|
|
moveItem(tomove, tqparent, it);
|
|
|
|
|
moveItem(tomove, parent, it);
|
|
|
|
|
else
|
|
|
|
|
moveItem(tomove, tqparent, 0);
|
|
|
|
|
moveItem(tomove, parent, 0);
|
|
|
|
|
|
|
|
|
|
emit moved();
|
|
|
|
|
|
|
|
|
|