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.
142 lines
4.4 KiB
142 lines
4.4 KiB
13 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdefile version KDE 3.5.3
|
||
13 years ago
|
|
||
|
|
||
|
// 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 KFileIconViewItem : KIconViewItem
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdefileiconview.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
13 years ago
|
KFileIconViewItem (TQIconView* /TransferThis/, const TQString&, const TQPixmap&, KFileItem*);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_0_1 - )
|
||
13 years ago
|
KFileIconViewItem (TQIconView* /TransferThis/, KFileItem*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
KFileItem* fileInfo () const;
|
||
|
|
||
|
}; // class KFileIconViewItem
|
||
|
|
||
|
|
||
|
class KFileIconView : KIconView, KFileView
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdefileiconview.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
13 years ago
|
KFileIconView (TQWidget* /TransferThis/, const char*);
|
||
|
virtual TQWidget* widget ();
|
||
13 years ago
|
virtual void clearView ();
|
||
|
virtual void setAutoUpdate (bool);
|
||
|
virtual void updateView (bool);
|
||
|
virtual void updateView (const KFileItem*);
|
||
|
virtual void removeItem (const KFileItem*);
|
||
|
virtual void listingCompleted ();
|
||
|
virtual void insertItem (KFileItem*);
|
||
|
virtual void setSelectionMode (KFile::SelectionMode);
|
||
|
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;
|
||
|
void setIconSize (int);
|
||
|
void setPreviewSize (int);
|
||
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
|
void setIgnoreMaximumSize (bool = 1);
|
||
|
%End
|
||
|
|
||
|
int iconSize () const;
|
||
|
void ensureItemVisible (const KFileItem*);
|
||
13 years ago
|
virtual void setSorting (TQDir::SortSpec);
|
||
12 years ago
|
virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
|
||
|
virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
|
||
13 years ago
|
void mimeTypeDeterminationFinished ();
|
||
|
void determineIcon (KFileIconViewItem*);
|
||
13 years ago
|
TQScrollView* scrollWidget () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void setAcceptDrops (bool);
|
||
|
%End
|
||
|
|
||
|
|
||
|
public slots:
|
||
|
void showPreviews ();
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void zoomIn ();
|
||
|
void zoomOut ();
|
||
|
%End
|
||
|
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
virtual void arrangeItemsInGrid (bool = 1);
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
13 years ago
|
virtual void keyPressEvent (TQKeyEvent*);
|
||
|
virtual void hideEvent (TQHideEvent*);
|
||
|
virtual void showEvent (TQShowEvent*);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_0_1 - )
|
||
13 years ago
|
virtual bool eventFilter (TQObject*, TQEvent*);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
virtual TQDragObject* dragObject ();
|
||
|
virtual void contentsDragEnterEvent (TQDragEnterEvent*);
|
||
|
virtual void contentsDragMoveEvent (TQDragMoveEvent*);
|
||
|
virtual void contentsDragLeaveEvent (TQDragLeaveEvent*);
|
||
|
virtual void contentsDropEvent (TQDropEvent*);
|
||
|
bool acceptDrag (TQDropEvent*) const;
|
||
13 years ago
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
signals:
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
void dropped (TQDropEvent*, KFileItem*);
|
||
|
void dropped (TQDropEvent*, const KURL::List&, const KURL&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
}; // class KFileIconView
|
||
|
|