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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
#ifndef _CLASS_LISTVIEW_H_
#define _CLASS_LISTVIEW_H_
//=================================================================================
//
// File : class_listview.h
// Creation date : Fri Jan 28 14:21:48 CEST 2005
// by Tonino Imbesi(Grifisx) and Alessandro Carbone(Noldor)
//
// This file is part of the KVirc irc client distribution
// Copyright (C) 1999-2006 Szymon Stefanek (pragma at kvirc dot net)
// Copyright (C) 2005-2006 Tonino Imbesi(Grifisx) and Alessandro Carbone(Noldor)
//
// 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 opinion) any later version.
//
// This program is distributed in the HOPE that it will be USEFUL,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, write to the Free Software Foundation,
// Inc. ,51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
//=================================================================================
#include "kvi_tal_listview.h"
#include "kvi_draganddrop.h"
#include "class_widget.h"
#include "class_listviewitem.h"
#include "object_macros.h"
class KviKvsObject_listview : public KviKvsObject_widget
{
Q_OBJECT
TQ_OBJECT
public:
KVSO_DECLARE_OBJECT(KviKvsObject_listview)
public:
TQWidget * widget() { return (TQWidget *)object(); };
void fileDropped(TQString &,KviTalListViewItem *);
protected:
virtual bool init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams);
bool function_addColumn(KviKvsObjectFunctionCall *c);
bool function_setColumnText(KviKvsObjectFunctionCall *c);
bool function_takeItem(KviKvsObjectFunctionCall *c);
bool function_setSorting(KviKvsObjectFunctionCall *c);
bool function_setRootIsDecorated(KviKvsObjectFunctionCall *c);
bool function_clear(KviKvsObjectFunctionCall *c);
bool function_setAllColumnsShowFocus(KviKvsObjectFunctionCall *c);
bool function_itemClickedEvent(KviKvsObjectFunctionCall *c);
bool function_selectionChangedEvent(KviKvsObjectFunctionCall *c);
bool function_currentChangedEvent(KviKvsObjectFunctionCall *c);
bool function_returnPressedEvent(KviKvsObjectFunctionCall *c);
bool function_spacePressedEvent(KviKvsObjectFunctionCall *c);
bool function_onItemEvent(KviKvsObjectFunctionCall *c);
bool function_itemExpandedEvent(KviKvsObjectFunctionCall *c);
bool function_itemCollapsedEvent(KviKvsObjectFunctionCall *c);
bool function_itemRenamedEvent(KviKvsObjectFunctionCall *c);
bool function_rightButtonClickedEvent(KviKvsObjectFunctionCall *c);
bool function_selectedItem(KviKvsObjectFunctionCall *c);
bool function_currentItem(KviKvsObjectFunctionCall *c);
bool function_setSelectionMode(KviKvsObjectFunctionCall *c);
bool function_firstChild(KviKvsObjectFunctionCall *c);
bool function_listViewHeaderIsVisible(KviKvsObjectFunctionCall *c);
bool function_showListViewHeader(KviKvsObjectFunctionCall *c);
bool function_hideListViewHeader(KviKvsObjectFunctionCall *c);
bool function_setAcceptDrops(KviKvsObjectFunctionCall *c);
protected slots:
void slotClicked(KviTalListViewItem *);
void slotSelectionChanged(KviTalListViewItem *);
void slotMultipleSelectionChanged();
void slotCurrentChanged(KviTalListViewItem *);
void slotReturnPressed(KviTalListViewItem *);
void slotSpacePressed(KviTalListViewItem *);
void slotOnItem(KviTalListViewItem *);
void slotItemExpanded(KviTalListViewItem *);
void slotItemCollapsed(KviTalListViewItem *);
void slotItemRenamed(KviTalListViewItem *,int,const TQString &);
void slotRightButtonClicked(KviTalListViewItem * i,const TQPoint &coor, int col);
};
class KviKvsMdmListView : public KviTalListView
{
Q_OBJECT
TQ_OBJECT
public:
KviKvsMdmListView(TQWidget * par,const char * name,KviKvsObject_listview *);
virtual ~KviKvsMdmListView();
protected:
KviKvsObject_listview *m_pParentScript;
void contentsDropEvent(TQDropEvent *e);
void contentsDragEnterEvent( TQDragEnterEvent *e );
};
#endif //!_CLASS_LISTVIEW_H_
|