blob: 943d5dc47afb79cc066e7a3d41fa66f9f58505b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef SQ_TREEVIEWMENU_H
#define SQ_TREEVIEWMENU_H
#include <kpopupmenu.h>
#include <kurl.h>
class QPoint;
namespace KIO { class Job; }
class SQ_TreeViewMenu : public KPopupMenu
{
Q_OBJECT
public:
SQ_TreeViewMenu(QWidget *parent = 0, const char *name = 0);
virtual ~SQ_TreeViewMenu();
enum Element { New, Rename, Delete, Properties, Clear };
void setURL(const KURL &_url);
KURL url() const;
void reconnect(Element, QObject *receiver, const char *member);
virtual void updateDirActions(bool isdir, bool isroot = false);
protected slots:
virtual void slotDirectoryNew();
virtual void slotDirectoryRename();
virtual void slotDirectoryDelete();
virtual void slotDirectoryProperties();
virtual void slotDirectoryResult(KIO::Job *job);
void slotDirectoryClear();
void slotEntries(KIO::Job *, const KIO::UDSEntryList &);
void slotListResult(KIO::Job *);
protected:
int id_new, id_rename, id_delete, id_prop, id_clear;
private:
KURL m_url;
KURL::List urlstodel;
};
inline
void SQ_TreeViewMenu::setURL(const KURL &_url)
{
m_url = _url;
}
inline
KURL SQ_TreeViewMenu::url() const
{
return m_url;
}
#endif
|