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.
206 lines
6.8 KiB
206 lines
6.8 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.
|
||
|
|
||
|
|
||
13 years ago
|
class KDirOperator : TQWidget
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdediroperator.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
|
||
|
enum ActionTypes
|
||
|
{
|
||
|
SortActions,
|
||
|
ViewActions,
|
||
|
NavActions,
|
||
|
FileActions,
|
||
|
AllActions
|
||
|
};
|
||
|
|
||
|
%End
|
||
|
|
||
13 years ago
|
KDirOperator (const KURL& = KURL (), TQWidget* /TransferThis/ = 0, const char* = 0);
|
||
13 years ago
|
void setShowHiddenFiles (bool);
|
||
|
bool showHiddenFiles () const;
|
||
|
void close ();
|
||
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
|
virtual bool close (bool);
|
||
|
%End
|
||
|
|
||
13 years ago
|
void setNameFilter (const TQString&);
|
||
|
const TQString& nameFilter () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_2 - )
|
||
13 years ago
|
void setMimeFilter (const TQStringList&);
|
||
|
TQStringList mimeFilter () const;
|
||
13 years ago
|
void clearFilter ();
|
||
|
%End
|
||
|
|
||
|
KURL url () const;
|
||
|
void setURL (const KURL&, bool);
|
||
13 years ago
|
void setCurrentItem (const TQString&);
|
||
13 years ago
|
void setView (KFileView*);
|
||
|
const KFileView* view () const;
|
||
13 years ago
|
TQWidget* viewWidget () const;
|
||
13 years ago
|
void setView (KFile::FileView);
|
||
13 years ago
|
void setSorting (TQDir::SortSpec);
|
||
|
TQDir::SortSpec sorting () const;
|
||
13 years ago
|
bool isRoot () const;
|
||
|
KDirLister* dirLister () const;
|
||
|
KProgress* progressBar () const;
|
||
|
void setMode (KFile::Mode);
|
||
|
KFile::Mode mode () const;
|
||
13 years ago
|
void setPreviewWidget (const TQWidget*);
|
||
13 years ago
|
const KFileItemList* selectedItems () const;
|
||
|
bool isSelected (const KFileItem*) const;
|
||
|
int numDirs () const;
|
||
|
int numFiles () const;
|
||
12 years ago
|
TDECompletion* completionObject () const;
|
||
|
TDECompletion* dirCompletionObject () const;
|
||
12 years ago
|
TDEActionCollection* actionCollection () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
12 years ago
|
void setViewConfig (TDEConfig*, const TQString&);
|
||
|
TDEConfig* viewConfig ();
|
||
13 years ago
|
TQString viewConfigGroup () const;
|
||
13 years ago
|
%End
|
||
|
|
||
12 years ago
|
virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
|
||
|
virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
|
||
13 years ago
|
void setOnlyDoubleClickSelectsFiles (bool);
|
||
|
bool onlyDoubleClickSelectsFiles () const;
|
||
13 years ago
|
bool mkdir (const TQString&, bool = 1);
|
||
12 years ago
|
TDEIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_0_3 - )
|
||
12 years ago
|
TDEIO::DeleteJob* del (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1) /PyName=del_/;
|
||
13 years ago
|
%End
|
||
|
|
||
|
void clearHistory ();
|
||
|
void setEnableDirHighlighting (bool);
|
||
|
bool dirHighlighting () const;
|
||
|
bool dirOnlyMode () const;
|
||
|
static bool dirOnlyMode (uint);
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
void setupMenu (int);
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
virtual void setAcceptDrops (bool);
|
||
|
void setDropOptions (int);
|
||
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
12 years ago
|
TDEIO::CopyJob* trash (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1);
|
||
13 years ago
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
13 years ago
|
virtual KFileView* createView (TQWidget* /Transfer/, KFile::FileView);
|
||
13 years ago
|
void setDirLister (KDirLister*);
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
virtual void resizeEvent (TQResizeEvent*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
void setupActions ();
|
||
|
void updateSortActions ();
|
||
|
void updateViewActions ();
|
||
|
void setupMenu ();
|
||
|
void prepareCompletionObjects ();
|
||
|
bool checkPreviewSupport ();
|
||
|
|
||
|
public slots:
|
||
|
void back ();
|
||
|
void forward ();
|
||
|
void home ();
|
||
|
void cdUp ();
|
||
|
void updateDir ();
|
||
|
void rereadDir ();
|
||
|
void mkdir ();
|
||
|
void deleteSelected ();
|
||
|
void updateSelectionDependentActions ();
|
||
13 years ago
|
TQString makeCompletion (const TQString&);
|
||
|
TQString makeDirCompletion (const TQString&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
12 years ago
|
void trashSelected (TDEAction::ActivationReason, TQt::ButtonState);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
protected slots:
|
||
|
void resetCursor ();
|
||
|
void pathChanged ();
|
||
|
void insertNewFiles (const KFileItemList&);
|
||
|
void itemDeleted (KFileItem*);
|
||
|
void selectDir (const KFileItem*);
|
||
|
void selectFile (const KFileItem*);
|
||
|
void highlightFile (const KFileItem*);
|
||
13 years ago
|
virtual void activatedMenu (const KFileItem*, const TQPoint&);
|
||
13 years ago
|
void sortByName ();
|
||
|
void sortBySize ();
|
||
|
void sortByDate ();
|
||
|
void sortReversed ();
|
||
|
void toggleDirsFirst ();
|
||
|
void toggleIgnoreCase ();
|
||
13 years ago
|
void slotCompletionMatch (const TQString&);
|
||
13 years ago
|
|
||
|
signals:
|
||
|
void urlEntered (const KURL&);
|
||
|
void updateInformation (int, int);
|
||
13 years ago
|
void completion (const TQString&);
|
||
13 years ago
|
void finishedLoading ();
|
||
|
void viewChanged (KFileView*);
|
||
|
void fileHighlighted (const KFileItem*);
|
||
|
void dirActivated (const KFileItem*);
|
||
|
void fileSelected (const KFileItem*);
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
void dropped (const KFileItem*, TQDropEvent*, const KURL::List&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
%If ( - KDE_3_2_0 )
|
||
13 years ago
|
void resizeEvent (TQResizeEvent*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
}; // class KDirOperator
|
||
|
|