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.
208 lines
7.5 KiB
208 lines
7.5 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 KFileDialog : KDialogBase
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdefiledialog.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
enum OperationMode
|
||
|
{
|
||
|
Other,
|
||
|
Opening,
|
||
|
Saving
|
||
|
};
|
||
|
|
||
13 years ago
|
KFileDialog (const TQString&, const TQString&, TQWidget* /TransferThis/, const char*, bool);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
KFileDialog (const TQString&, const TQString&, TQWidget* /TransferThis/, const char*, bool, TQWidget*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
KURL selectedURL () const;
|
||
|
KURL::List selectedURLs () const;
|
||
|
KURL baseURL () const;
|
||
13 years ago
|
TQString selectedFile () const;
|
||
|
TQStringList selectedFiles () const;
|
||
13 years ago
|
void setURL (const KURL&, bool = 1);
|
||
13 years ago
|
void setSelection (const TQString&);
|
||
13 years ago
|
void setOperationMode (KFileDialog::OperationMode);
|
||
|
KFileDialog::OperationMode operationMode () const;
|
||
|
void setKeepLocation (bool);
|
||
|
bool keepsLocation () const;
|
||
13 years ago
|
void setFilter (const TQString&);
|
||
|
TQString currentFilter () const;
|
||
|
void setFilterMimeType (const TQString&, const KMimeType::List&, const KMimeType::Ptr&);
|
||
13 years ago
|
KMimeType::Ptr currentFilterMimeType ();
|
||
13 years ago
|
void setMimeFilter (const TQStringList&, const TQString& = TQString ::null );
|
||
|
TQString currentMimeFilter () const;
|
||
13 years ago
|
void clearFilter ();
|
||
13 years ago
|
void setPreviewWidget (const TQWidget*);
|
||
13 years ago
|
void setPreviewWidget (const KPreviewWidgetBase*);
|
||
13 years ago
|
static TQString getOpenFileName (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
13 years ago
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
13 years ago
|
static TQString getOpenFileNameWId (const TQString&, const TQString&, WId, const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
static TQStringList getOpenFileNames (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
|
static KURL getOpenURL (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
|
static KURL::List getOpenURLs (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
|
static TQString getSaveFileName (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
13 years ago
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
13 years ago
|
static TQString getSaveFileNameWId (const TQString&, const TQString&, WId, const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
static KURL getSaveURL (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
|
static TQString getExistingDirectory (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static KURL getExistingURL (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
static KURL getImageOpenURL (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
|
||
13 years ago
|
virtual void show ();
|
||
|
void setMode (KFile::Mode /Constrained/);
|
||
|
void setMode (uint);
|
||
|
KFile::Mode mode () const;
|
||
13 years ago
|
void setLocationLabel (const TQString&);
|
||
13 years ago
|
KToolBar* toolBar () const;
|
||
|
KPushButton* okButton () const;
|
||
|
KPushButton* cancelButton () const;
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
KURLBar* speedBar ();
|
||
|
%End
|
||
|
|
||
|
KActionCollection* actionCollection () const;
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
int pathComboIndex ();
|
||
13 years ago
|
static KURL getStartURL (const TQString&, TQString&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
static void setStartDir (const KURL&);
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
signals:
|
||
13 years ago
|
void fileSelected (const TQString&);
|
||
|
void fileHighlighted (const TQString&);
|
||
13 years ago
|
void selectionChanged ();
|
||
13 years ago
|
void filterChanged (const TQString&);
|
||
13 years ago
|
|
||
|
protected:
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
virtual void keyPressEvent (TQKeyEvent*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
void init (const TQString&, const TQString&, TQWidget*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
virtual void initGUI ();
|
||
|
void multiSelectionChanged ();
|
||
12 years ago
|
virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
|
||
|
virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
|
||
|
virtual void readRecentFiles (TDEConfig*);
|
||
|
virtual void saveRecentFiles (TDEConfig*);
|
||
13 years ago
|
KURL::List tokenize (const TQString&) const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
KURL getCompleteURL (const TQString&);
|
||
|
TQString currentFilterExtension ();
|
||
13 years ago
|
void updateAutoSelectExtension ();
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected slots:
|
||
|
void urlEntered (const KURL&);
|
||
|
void enterURL (const KURL&);
|
||
13 years ago
|
void enterURL (const TQString&);
|
||
|
void locationActivated (const TQString&);
|
||
13 years ago
|
void toolbarCallback (int);
|
||
13 years ago
|
void pathComboChanged (const TQString&);
|
||
|
void dirCompletion (const TQString&);
|
||
13 years ago
|
void slotFilterChanged ();
|
||
|
void fileHighlighted (const KFileItem*);
|
||
|
void fileSelected (const KFileItem*);
|
||
12 years ago
|
void slotStatResult (TDEIO::Job*);
|
||
13 years ago
|
void slotLoadingFinished ();
|
||
13 years ago
|
void fileCompletion (const TQString&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
void toggleSpeedbar (bool);
|
||
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
|
void toggleBookmarks (bool);
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
virtual void updateStatusLine (int, int);
|
||
|
virtual void slotOk ();
|
||
|
virtual void accept ();
|
||
|
virtual void slotCancel ();
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void slotAutoSelectExtClicked ();
|
||
|
%End
|
||
|
|
||
|
void addToRecentDocuments ();
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
void initSpeedbar ();
|
||
|
%End
|
||
|
|
||
|
|
||
|
private:
|
||
|
KFileDialog (const KFileDialog&);
|
||
|
|
||
|
protected:
|
||
|
KURL::List& parseSelectedURLs () const;
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
%If ( - KDE_3_2_0 )
|
||
|
//ig void addDirEntry (KFileItem*, bool);
|
||
|
%End
|
||
|
|
||
|
|
||
|
}; // class KFileDialog
|
||
|
|