summaryrefslogtreecommitdiffstats
path: root/sip/tdefile/tdefiledetailview.sip
blob: 8453f8644ea0d61a07da8d7c9782a0429838f9f3 (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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
//
//     Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
//     Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
//     may also apply


//                 Generated by preSip
//            module tdefile  version KDE 3.5.3


// This software 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.
//
// This software 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 library; see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


class KFileListViewItem : TDEListViewItem
{
%TypeHeaderCode
#include <tdefiledetailview.h>
%End


public:
                         KFileListViewItem (TQListView* /TransferThis/, const TQString&, const TQPixmap&, KFileItem*);

%If ( KDE_3_0_1 -  )
                         KFileListViewItem (TQListView* /TransferThis/, KFileItem*);
%End

                         KFileListViewItem (TQListView* /TransferThis/, const TQString&, const TQPixmap&, KFileItem*, TQListViewItem*);
    KFileItem*           fileInfo () const;
    virtual TQString      key (int, bool) const;
    void                 setKey (const TQString&);
    TQRect                rect () const;

%If ( KDE_3_0_1 -  )
    void                 init ();
%End


};  // class KFileListViewItem


class KFileDetailView : TDEListView, KFileView
{
%TypeHeaderCode
#include <tdefiledetailview.h>
%End


public:
                         KFileDetailView (TQWidget* /TransferThis/, const char*);
    virtual TQWidget*     widget ();
    virtual void         clearView ();
    virtual void         setAutoUpdate (bool);
    virtual void         setSelectionMode (KFile::SelectionMode);
    virtual void         updateView (bool);
    virtual void         updateView (const KFileItem*);
    virtual void         removeItem (const KFileItem*);
    virtual void         listingCompleted ();
    virtual void         setSelected (const KFileItem*, bool);
    virtual bool         isSelected (const KFileItem*) const;
    virtual void         clearSelection ();
    virtual void         selectAll ();
    virtual void         invertSelection ();
    virtual void         setCurrentItem (const KFileItem*);
    virtual KFileItem*   currentFileItem () const;
    virtual KFileItem*   firstFileItem () const;
    virtual KFileItem*   nextItem (const KFileItem*) const;
    virtual KFileItem*   prevItem (const KFileItem*) const;
    virtual void         insertItem (KFileItem*);
    virtual void         setSorting (TQDir::SortSpec);
    void                 ensureItemVisible (const KFileItem*);
    void                 mimeTypeDeterminationFinished ();
    void                 determineIcon (KFileListViewItem*);
    TQScrollView*         scrollWidget () const;

%If ( KDE_3_2_0 -  )
    virtual void         readConfig (TDEConfig*, const TQString& = TQString ::null );
    virtual void         writeConfig (TDEConfig*, const TQString& = TQString ::null );
%End


signals:

%If ( KDE_3_2_0 -  )
    void                 dropped (TQDropEvent*, KFileItem*);
    void                 dropped (TQDropEvent*, const KURL::List&, const KURL&);
%End


protected:
    virtual void         keyPressEvent (TQKeyEvent*);

%If ( KDE_3_2_0 -  )
    virtual TQDragObject* dragObject ();
    virtual void         contentsDragEnterEvent (TQDragEnterEvent*);
    virtual void         contentsDragMoveEvent (TQDragMoveEvent*);
    virtual void         contentsDragLeaveEvent (TQDragLeaveEvent*);
    virtual void         contentsDropEvent (TQDropEvent*);
    virtual bool         acceptDrag (TQDropEvent*) const;
%End


protected slots:
    void                 slotSelectionChanged ();

protected:
//igx     virtual void         virtual_hook (int, void*);
//force

private:
    void                 slotSortingChanged (int);
    void                 selected (TQListViewItem*);
    void                 slotDoubleClicked (TQListViewItem*);
    void                 highlighted (TQListViewItem*);
    void                 rightButtonPressed (TQListViewItem*);

//force
%ConvertToSubClassCode
    // The table of Python class objects indexed by their names.  The table
    // must be sorted by name.

    static sipStringTypeClassMap map[] = {
        {sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
        {sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
#if TDE_VERSION < 310
//        {sipName_TDEApplicationTree,        &sipClass_TDEApplicationTree},
#endif
        {sipName_KBindingPropsPlugin,     &sipClass_KBindingPropsPlugin},
        {sipName_KBindingPropsPlugin,     &sipClass_KBindingPropsPlugin},
        {sipName_KCombiView,              &sipClass_KCombiView},
#if TDE_VERSION >= 0x030100
        {sipName_KCustomMenuEditor,       &sipClass_KCustomMenuEditor},
#endif
        {sipName_KDevicePropsPlugin,      &sipClass_KDevicePropsPlugin},
        {sipName_KDevicePropsPlugin,      &sipClass_KDevicePropsPlugin},
        {sipName_KDirOperator,            &sipClass_KDirOperator},
        {sipName_KDirSelectDialog,        &sipClass_KDirSelectDialog},
        {sipName_KDirSize,                &sipClass_KDirSize},
#if TDE_VERSION >= 0x030100
        {sipName_KDiskFreeSp,             &sipClass_KDiskFreeSp},
#endif
        {sipName_KExecPropsPlugin,        &sipClass_KExecPropsPlugin},
        {sipName_KExecPropsPlugin,        &sipClass_KExecPropsPlugin},
        {sipName_KFileDetailView,         &sipClass_KFileDetailView},
        {sipName_KFileDialog,             &sipClass_KFileDialog},
        {sipName_KFileFilterCombo,        &sipClass_KFileFilterCombo},
        {sipName_KFileIconView,           &sipClass_KFileIconView},
        {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin},
        {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin},
        {sipName_KFilePreview,            &sipClass_KFilePreview},
        {sipName_KFilePropsPlugin,        &sipClass_KFilePropsPlugin},
        {sipName_KFilePropsPlugin,        &sipClass_KFilePropsPlugin},
#if TDE_VERSION >= 0x030100
        {sipName_KFileSharePropsPlugin,   &sipClass_KFileSharePropsPlugin},
#endif
        {sipName_KFileTreeBranch,         &sipClass_KFileTreeBranch},
        {sipName_KFileTreeView,           &sipClass_KFileTreeView},
        {sipName_KFileTreeViewToolTip,    &sipClass_KFileTreeViewToolTip},
        {sipName_KFileViewSignaler,       &sipClass_KFileViewSignaler},
        {sipName_KIconButton,             &sipClass_KIconButton},
        {sipName_KIconCanvas,             &sipClass_KIconCanvas},
        {sipName_KIconDialog,             &sipClass_KIconDialog},
        {sipName_KImageFilePreview,       &sipClass_KImageFilePreview},
#if TDE_VERSION >= 0x030100
        {sipName_KNotifyDialog,           &sipClass_KNotifyDialog},
        {sipName_KNotifyWidget,           &sipClass_KNotify_KNotifyWidget},
#if TDE_VERSION < 0x030200
        {sipName_KNotifyWidgetBase,       &sipClass_KNotifyWidgetBase},
#endif
#endif
        {sipName_KOpenWithDlg,            &sipClass_KOpenWithDlg},
        {sipName_KPreviewWidgetBase,      &sipClass_KPreviewWidgetBase},
        {sipName_KPropertiesDialog,       &sipClass_KPropertiesDialog},
        {sipName_KPropertiesDialog,       &sipClass_KPropertiesDialog},
        {sipName_KPropsDlgPlugin,         &sipClass_KPropsDlgPlugin},
        {sipName_KPropsDlgPlugin,         &sipClass_KPropsDlgPlugin},
        {sipName_KURLBar,                 &sipClass_KURLBar},
        {sipName_KURLBarItem,             &sipClass_KURLBarItem},
        {sipName_KURLBarItemDialog,       &sipClass_KURLBarItemDialog},
        {sipName_KURLBarListBox,          &sipClass_KURLBarListBox},
        {sipName_KURLComboBox,            &sipClass_KURLComboBox},
        {sipName_KURLPropsPlugin,         &sipClass_KURLPropsPlugin},
        {sipName_KURLPropsPlugin,         &sipClass_KURLPropsPlugin},
        {sipName_KURLRequester,           &sipClass_KURLRequester},
        {sipName_KURLRequesterDlg,        &sipClass_KURLRequesterDlg},
    };

    sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));
%End
//end
//end

};  // class KFileDetailView