You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytde/sip/tdefile/tdefiledetailview.sip

208 lines
8.4 KiB

//
// 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