diff options
Diffstat (limited to 'doc/man/man3/tqfiledialog.3qt')
-rw-r--r-- | doc/man/man3/tqfiledialog.3qt | 264 |
1 files changed, 132 insertions, 132 deletions
diff --git a/doc/man/man3/tqfiledialog.3qt b/doc/man/man3/tqfiledialog.3qt index f8cbdf2e9..3c8798f27 100644 --- a/doc/man/man3/tqfiledialog.3qt +++ b/doc/man/man3/tqfiledialog.3qt @@ -1,5 +1,5 @@ '\" t -.TH QFileDialog 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQFileDialog 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,22 +7,22 @@ .ad l .nh .SH NAME -QFileDialog \- Dialogs that allow users to select files or directories +TQFileDialog \- Dialogs that allow users to select files or directories .SH SYNOPSIS -\fC#include <ntqfiledialog.h>\fR +\fC#include <tqfiledialog.h>\fR .PP Inherits QDialog. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQFileDialog\fR ( const TQString & dirName, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" +.BI "\fBTQFileDialog\fR ( const TQString & dirName, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" .br .ti -1c -.BI "\fBQFileDialog\fR ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" +.BI "\fBTQFileDialog\fR ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" .br .ti -1c -.BI "\fB~QFileDialog\fR ()" +.BI "\fB~TQFileDialog\fR ()" .br .ti -1c .BI "TQString \fBselectedFile\fR () const" @@ -49,10 +49,10 @@ Inherits QDialog. .BI "TQString \fBdirPath\fR () const" .br .ti -1c -.BI "void \fBsetDir\fR ( const QDir & dir )" +.BI "void \fBsetDir\fR ( const TQDir & dir )" .br .ti -1c -.BI "const QDir * \fBdir\fR () const" +.BI "const TQDir * \fBdir\fR () const" .br .ti -1c .BI "void \fBsetShowHiddenFiles\fR ( bool s )" @@ -106,13 +106,13 @@ Inherits QDialog. .BI "void \fBsetContentsPreviewEnabled\fR ( bool )" .br .ti -1c -.BI "void \fBsetInfoPreview\fR ( TQWidget * w, QFilePreview * preview )" +.BI "void \fBsetInfoPreview\fR ( TQWidget * w, TQFilePreview * preview )" .br .ti -1c -.BI "void \fBsetContentsPreview\fR ( TQWidget * w, QFilePreview * preview )" +.BI "void \fBsetContentsPreview\fR ( TQWidget * w, TQFilePreview * preview )" .br .ti -1c -.BI "QUrl \fBurl\fR () const" +.BI "TQUrl \fBurl\fR () const" .br .ti -1c .BI "void \fBaddFilter\fR ( const TQString & filter )" @@ -124,7 +124,7 @@ Inherits QDialog. .BI "void \fBsetDir\fR ( const TQString & pathstr )" .br .ti -1c -.BI "void \fBsetUrl\fR ( const QUrlOperator & url )" +.BI "void \fBsetUrl\fR ( const TQUrlOperator & url )" .br .ti -1c .BI "void \fBsetFilter\fR ( const TQString & newFilter )" @@ -172,10 +172,10 @@ Inherits QDialog. .BI "TQStringList \fBgetOpenFileNames\fR ( const TQString & filter = TQString::null, const TQString & dir = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )" .br .ti -1c -.BI "void \fBsetIconProvider\fR ( QFileIconProvider * provider )" +.BI "void \fBsetIconProvider\fR ( TQFileIconProvider * provider )" .br .ti -1c -.BI "QFileIconProvider * \fBiconProvider\fR ()" +.BI "TQFileIconProvider * \fBiconProvider\fR ()" .br .in -1c .SS "Properties" @@ -227,15 +227,15 @@ Inherits QDialog. .br .in -1c .SH DESCRIPTION -The QFileDialog class provides dialogs that allow users to select files or directories. +The TQFileDialog class provides dialogs that allow users to select files or directories. .PP -The QFileDialog class enables a user to traverse their file system in order to select one or many files or a directory. +The TQFileDialog class enables a user to traverse their file system in order to select one or many files or a directory. .PP -The easiest way to create a QFileDialog is to use the static functions. On Windows, these static functions will call the native Windows file dialog and on Mac OS X, these static function will call the native Mac OS X file dialog. +The easiest way to create a TQFileDialog is to use the static functions. On Windows, these static functions will call the native Windows file dialog and on Mac OS X, these static function will call the native Mac OS X file dialog. .PP .nf .br - TQString s = QFileDialog::getOpenFileName( + TQString s = TQFileDialog::getOpenFileName( .br "/home", .br @@ -249,7 +249,7 @@ The easiest way to create a QFileDialog is to use the static functions. On Windo .br .fi .PP -In the above example, a modal QFileDialog is created using a static function. The startup directory is set to "/home". The file filter is set to "Images (*.png *.xpm *.jpg)". The parent of the file dialog is set to \fIthis\fR and it is given the identification name - "open file dialog". The caption at the top of file dialog is set to "Choose a file". If you want to use multiple filters, separate each one with \fItwo\fR semi-colons, e.g. +In the above example, a modal TQFileDialog is created using a static function. The startup directory is set to "/home". The file filter is set to "Images (*.png *.xpm *.jpg)". The parent of the file dialog is set to \fIthis\fR and it is given the identification name - "open file dialog". The caption at the top of file dialog is set to "Choose a file". If you want to use multiple filters, separate each one with \fItwo\fR semi-colons, e.g. .PP .nf .br @@ -257,17 +257,17 @@ In the above example, a modal QFileDialog is created using a static function. Th .br .fi .PP -You can create your own QFileDialog without using the static functions. By calling setMode(), you can set what can be returned by the QFileDialog. +You can create your own TQFileDialog without using the static functions. By calling setMode(), you can set what can be returned by the TQFileDialog. .PP .nf .br - QFileDialog* fd = new QFileDialog( this, "file dialog", TRUE ); + TQFileDialog* fd = new TQFileDialog( this, "file dialog", TRUE ); .br - fd->setMode( QFileDialog::AnyFile ); + fd->setMode( TQFileDialog::AnyFile ); .br .fi .PP -In the above example, the mode of the file dialog is set to AnyFile, meaning that the user can select any file, or even specify a file that doesn't exist. This mode is useful for creating a "File Save As" file dialog. Use ExistingFile if the user must select an existing file or Directory if only a directory may be selected. (See the QFileDialog::Mode enum for the complete list of modes.) +In the above example, the mode of the file dialog is set to AnyFile, meaning that the user can select any file, or even specify a file that doesn't exist. This mode is useful for creating a "File Save As" file dialog. Use ExistingFile if the user must select an existing file or Directory if only a directory may be selected. (See the TQFileDialog::Mode enum for the complete list of modes.) .PP You can retrieve the dialog's mode with mode(). Use setFilter() to set the dialog's file filter, e.g. .PP @@ -277,13 +277,13 @@ You can retrieve the dialog's mode with mode(). Use setFilter() to set the dialo .br .fi .PP -In the above example, the filter is set to "Images (*.png *.xpm *.jpg)", this means that only files with the extension \fCpng\fR, \fCxpm\fR or \fCjpg\fR will be shown in the QFileDialog. You can apply several filters by using setFilters() and add additional filters with addFilter(). Use setSelectedFilter() to select one of the filters you've given as the file dialog's default filter. Whenever the user changes the filter the filterSelected() signal is emitted. +In the above example, the filter is set to "Images (*.png *.xpm *.jpg)", this means that only files with the extension \fCpng\fR, \fCxpm\fR or \fCjpg\fR will be shown in the TQFileDialog. You can apply several filters by using setFilters() and add additional filters with addFilter(). Use setSelectedFilter() to select one of the filters you've given as the file dialog's default filter. Whenever the user changes the filter the filterSelected() signal is emitted. .PP -The file dialog has two view modes, QFileDialog::List which simply lists file and directory names and QFileDialog::Detail which displays additional information alongside each name, e.g. file size, modification date, etc. Set the mode with setViewMode(). +The file dialog has two view modes, TQFileDialog::List which simply lists file and directory names and TQFileDialog::Detail which displays additional information alongside each name, e.g. file size, modification date, etc. Set the mode with setViewMode(). .PP .nf .br - fd->setViewMode( QFileDialog::Detail ); + fd->setViewMode( TQFileDialog::Detail ); .br .fi .PP @@ -305,13 +305,13 @@ If you are using the ExistingFiles mode then you will need to use selectedFiles( .PP The dialog's working directory can be set with setDir(). The display of hidden files is controlled with setShowHiddenFiles(). The dialog can be forced to re-read the directory with rereadDir() and re-sort the directory with resortDir(). All the files in the current directory can be selected with selectAll(). .SH "Creating and using preview widgets" -There are two kinds of preview widgets that can be used with QFileDialogs: \fIcontent\fR preview widgets and \fIinformation\fR preview widgets. They are created and used in the same way except that the function names differ, e.g. setContentsPreview() and setInfoPreview(). +There are two kinds of preview widgets that can be used with TQFileDialogs: \fIcontent\fR preview widgets and \fIinformation\fR preview widgets. They are created and used in the same way except that the function names differ, e.g. setContentsPreview() and setInfoPreview(). .PP -A preview widget is a widget that is placed inside a QFileDialog so that the user can see either the contents of the file, or information about the file. +A preview widget is a widget that is placed inside a TQFileDialog so that the user can see either the contents of the file, or information about the file. .PP .nf .br - class Preview : public QLabel, public QFilePreview + class Preview : public QLabel, public TQFilePreview .br { .br @@ -320,7 +320,7 @@ A preview widget is a widget that is placed inside a QFileDialog so that the use Preview( TQWidget *parent=0 ) : QLabel( parent ) {} .br .br - void previewUrl( const QUrl &u ) + void previewUrl( const TQUrl &u ) .br { .br @@ -342,22 +342,22 @@ A preview widget is a widget that is placed inside a QFileDialog so that the use .br .fi .PP -In the above snippet, we create a preview widget which inherits from QLabel and QFilePreview. File preview widgets \fImust\fR inherit from QFilePreview. +In the above snippet, we create a preview widget which inherits from QLabel and TQFilePreview. File preview widgets \fImust\fR inherit from TQFilePreview. .PP -Inside the class we reimplement QFilePreview::previewUrl(), this is where we determine what happens when a file is selected. In the above example we only show a preview of the file if it is a valid pixmap. Here's how to make a file dialog use a preview widget: +Inside the class we reimplement TQFilePreview::previewUrl(), this is where we determine what happens when a file is selected. In the above example we only show a preview of the file if it is a valid pixmap. Here's how to make a file dialog use a preview widget: .PP .nf .br Preview* p = new Preview; .br .br - QFileDialog* fd = new QFileDialog( this ); + TQFileDialog* fd = new TQFileDialog( this ); .br fd->setContentsPreviewEnabled( TRUE ); .br fd->setContentsPreview( p, p ); .br - fd->setPreviewMode( QFileDialog::Contents ); + fd->setPreviewMode( TQFileDialog::Contents ); .br fd->show(); .br @@ -367,7 +367,7 @@ The first line creates an instance of our preview widget. We then create our fil .PP If you create another preview widget that is used for displaying information about a file, create it in the same way as the contents preview widget and call setInfoPreviewEnabled(), and setInfoPreview(). Then the user will be able to switch between the two preview modes. .PP -For more information about creating a QFilePreview widget see QFilePreview. +For more information about creating a TQFilePreview widget see TQFilePreview. .PP .ce 1 .B "[Image Omitted]" @@ -378,53 +378,53 @@ For more information about creating a QFilePreview widget see QFilePreview. .PP See also Dialog Classes. .SS "Member Type Documentation" -.SH "QFileDialog::Mode" +.SH "TQFileDialog::Mode" This enum is used to indicate what the user may select in the file dialog, i.e. what the dialog will return if the user clicks OK. .TP -\fCQFileDialog::AnyFile\fR - The name of a file, whether it exists or not. +\fCTQFileDialog::AnyFile\fR - The name of a file, whether it exists or not. .TP -\fCQFileDialog::ExistingFile\fR - The name of a single existing file. +\fCTQFileDialog::ExistingFile\fR - The name of a single existing file. .TP -\fCQFileDialog::Directory\fR - The name of a directory. Both files and directories are displayed. +\fCTQFileDialog::Directory\fR - The name of a directory. Both files and directories are displayed. .TP -\fCQFileDialog::DirectoryOnly\fR - The name of a directory. The file dialog will only display directories. +\fCTQFileDialog::DirectoryOnly\fR - The name of a directory. The file dialog will only display directories. .TP -\fCQFileDialog::ExistingFiles\fR - The names of zero or more existing files. +\fCTQFileDialog::ExistingFiles\fR - The names of zero or more existing files. .PP See setMode(). -.SH "QFileDialog::PreviewMode" +.SH "TQFileDialog::PreviewMode" This enum describes the preview mode of the file dialog. .TP -\fCQFileDialog::NoPreview\fR - No preview is shown at all. +\fCTQFileDialog::NoPreview\fR - No preview is shown at all. .TP -\fCQFileDialog::Contents\fR - Show a preview of the contents of the current file using the contents preview widget. +\fCTQFileDialog::Contents\fR - Show a preview of the contents of the current file using the contents preview widget. .TP -\fCQFileDialog::Info\fR - Show information about the current file using the info preview widget. +\fCTQFileDialog::Info\fR - Show information about the current file using the info preview widget. .PP See setPreviewMode(), setContentsPreview() and setInfoPreview(). -.SH "QFileDialog::ViewMode" +.SH "TQFileDialog::ViewMode" This enum describes the view mode of the file dialog, i.e. what information about each file will be displayed. .TP -\fCQFileDialog::List\fR - Display file and directory names with icons. +\fCTQFileDialog::List\fR - Display file and directory names with icons. .TP -\fCQFileDialog::Detail\fR - Display file and directory names with icons plus additional information, such as file size and modification date. +\fCTQFileDialog::Detail\fR - Display file and directory names with icons plus additional information, such as file size and modification date. .PP See setViewMode(). .SH MEMBER FUNCTION DOCUMENTATION -.SH "QFileDialog::QFileDialog ( const TQString & dirName, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" +.SH "TQFileDialog::TQFileDialog ( const TQString & dirName, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" Constructs a file dialog called \fIname\fR with the parent, \fIparent\fR. If \fImodal\fR is TRUE then the file dialog is modal; otherwise it is modeless. .PP If \fIdirName\fR is specified then it will be used as the dialog's working directory, i.e. it will be the directory that is shown when the dialog appears. If \fIfilter\fR is specified it will be used as the dialog's file filter. -.SH "QFileDialog::QFileDialog ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" +.SH "TQFileDialog::TQFileDialog ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE )" Constructs a file dialog called \fIname\fR, with the parent, \fIparent\fR. If \fImodal\fR is TRUE then the file dialog is modal; otherwise it is modeless. -.SH "QFileDialog::~QFileDialog ()" +.SH "TQFileDialog::~TQFileDialog ()" Destroys the file dialog. -.SH "void QFileDialog::addFilter ( const TQString & filter )" +.SH "void TQFileDialog::addFilter ( const TQString & filter )" Adds the filter \fIfilter\fR to the list of filters and makes it the current filter. .PP .nf .br - QFileDialog* fd = new QFileDialog( this ); + TQFileDialog* fd = new TQFileDialog( this ); .br fd->addFilter( "Images (*.png *.jpg *.xpm)" ); .br @@ -435,26 +435,26 @@ Adds the filter \fIfilter\fR to the list of filters and makes it the current fil In the above example, a file dialog is created, and the file filter "Images (*.png *.jpg *.xpm)" is added and is set as the current filter. The original filter, "All Files (*)", is still available. .PP See also setFilter() and setFilters(). -.SH "void QFileDialog::addLeftWidget ( TQWidget * w )\fC [protected]\fR" +.SH "void TQFileDialog::addLeftWidget ( TQWidget * w )\fC [protected]\fR" Adds the widget \fIw\fR to the left-hand side of the file dialog. .PP See also addRightWidget(), addWidgets(), and addToolButton(). -.SH "void QFileDialog::addRightWidget ( TQWidget * w )\fC [protected]\fR" +.SH "void TQFileDialog::addRightWidget ( TQWidget * w )\fC [protected]\fR" Adds the widget \fIw\fR to the right-hand side of the file dialog. .PP See also addLeftWidget(), addWidgets(), and addToolButton(). -.SH "void QFileDialog::addToolButton ( QButton * b, bool separator = FALSE )\fC [protected]\fR" +.SH "void TQFileDialog::addToolButton ( QButton * b, bool separator = FALSE )\fC [protected]\fR" Adds the tool button \fIb\fR to the row of tool buttons at the top of the file dialog. The button is appended to the right of this row. If \fIseparator\fR is TRUE, a small space is inserted between the last button of the row and the new button \fIb\fR. .PP See also addWidgets(), addLeftWidget(), and addRightWidget(). -.SH "void QFileDialog::addWidgets ( QLabel * l, TQWidget * w, QPushButton * b )\fC [protected]\fR" +.SH "void TQFileDialog::addWidgets ( QLabel * l, TQWidget * w, QPushButton * b )\fC [protected]\fR" Adds the specified widgets to the bottom of the file dialog. The label \fIl\fR is placed underneath the "file name" and the "file types" labels. The widget \fIw\fR is placed underneath the file types combobox. The button \fIb\fR is placed underneath the Cancel pushbutton. .PP .nf .br MyFileDialog::MyFileDialog( TQWidget* parent, const char* name ) : .br - QFileDialog( parent, name ) + TQFileDialog( parent, name ) .br { .br @@ -476,40 +476,40 @@ If you don't want to have one of the widgets added, pass 0 in that widget's posi Every time you call this function, a new row of widgets will be added to the bottom of the file dialog. .PP See also addToolButton(), addLeftWidget(), and addRightWidget(). -.SH "const QDir * QFileDialog::dir () const" +.SH "const TQDir * TQFileDialog::dir () const" Returns the current directory shown in the file dialog. .PP -The ownership of the QDir pointer is transferred to the caller, so it must be deleted by the caller when no longer required. +The ownership of the TQDir pointer is transferred to the caller, so it must be deleted by the caller when no longer required. .PP See also setDir(). -.SH "void QFileDialog::dirEntered ( const TQString & )\fC [signal]\fR" +.SH "void TQFileDialog::dirEntered ( const TQString & )\fC [signal]\fR" This signal is emitted when the user enters a directory. .PP See also dir(). -.SH "TQString QFileDialog::dirPath () const" +.SH "TQString TQFileDialog::dirPath () const" Returns the file dialog's working directory. See the "dirPath" property for details. -.SH "void QFileDialog::fileHighlighted ( const TQString & )\fC [signal]\fR" +.SH "void TQFileDialog::fileHighlighted ( const TQString & )\fC [signal]\fR" This signal is emitted when the user highlights a file, i.e. makes it the current file. .PP See also fileSelected() and filesSelected(). -.SH "void QFileDialog::fileSelected ( const TQString & )\fC [signal]\fR" +.SH "void TQFileDialog::fileSelected ( const TQString & )\fC [signal]\fR" This signal is emitted when the user selects a file. .PP See also filesSelected(), fileHighlighted(), and selectedFile. -.SH "void QFileDialog::filesSelected ( const TQStringList & )\fC [signal]\fR" +.SH "void TQFileDialog::filesSelected ( const TQStringList & )\fC [signal]\fR" This signal is emitted when the user selects one or more files in \fIExistingFiles\fR mode. .PP See also fileSelected(), fileHighlighted(), and selectedFiles. -.SH "void QFileDialog::filterSelected ( const TQString & )\fC [signal]\fR" +.SH "void TQFileDialog::filterSelected ( const TQString & )\fC [signal]\fR" This signal is emitted when the user selects a filter. .PP See also selectedFilter. -.SH "TQString QFileDialog::getExistingDirectory ( const TQString & dir = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, bool dirOnly = TRUE, bool resolveSymlinks = TRUE )\fC [static]\fR" +.SH "TQString TQFileDialog::getExistingDirectory ( const TQString & dir = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, bool dirOnly = TRUE, bool resolveSymlinks = TRUE )\fC [static]\fR" This is a convenience static function that will return an existing directory selected by the user. .PP .nf .br - TQString s = QFileDialog::getExistingDirectory( + TQString s = TQFileDialog::getExistingDirectory( .br "/home", .br @@ -533,15 +533,15 @@ If \fIdirOnly\fR is TRUE, then only directories will be shown in the file dialog .PP Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories. .PP -Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar). +Under Windows and Mac OS X, this static function will use the native file dialog and not a TQFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar). .PP See also getOpenFileName(), getOpenFileNames(), and getSaveFileName(). -.SH "TQString QFileDialog::getOpenFileName ( const TQString & startWith = TQString::null, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )\fC [static]\fR" +.SH "TQString TQFileDialog::getOpenFileName ( const TQString & startWith = TQString::null, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )\fC [static]\fR" This is a convenience static function that returns an existing file selected by the user. If the user pressed Cancel, it returns a null string. .PP .nf .br - TQString s = QFileDialog::getOpenFileName( + TQString s = TQFileDialog::getOpenFileName( .br "/home", .br @@ -561,7 +561,7 @@ The file dialog's working directory will be set to \fIstartWith\fR. If \fIstartW .PP The dialog's caption is set to \fIcaption\fR. If \fIcaption\fR is not specified then a default caption will be used. .PP -Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar). +Under Windows and Mac OS X, this static function will use the native file dialog and not a TQFileDialog, unless the style of the application is set to something other than the native style (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar). .PP Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories. .PP @@ -569,12 +569,12 @@ See also getOpenFileNames(), getSaveFileName(), and getExistingDirectory(). .PP Examples: .)l action/application.cpp, addressbook/mainwindow.cpp, application/application.cpp, distributor/distributor.ui.h, network/ftpclient/ftpmainwindow.ui.h, qwerty/qwerty.cpp, and showimg/showimg.cpp. -.SH "TQStringList QFileDialog::getOpenFileNames ( const TQString & filter = TQString::null, const TQString & dir = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )\fC [static]\fR" +.SH "TQStringList TQFileDialog::getOpenFileNames ( const TQString & filter = TQString::null, const TQString & dir = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )\fC [static]\fR" This is a convenience static function that will return one or more existing files selected by the user. .PP .nf .br - TQStringList files = QFileDialog::getOpenFileNames( + TQStringList files = TQFileDialog::getOpenFileNames( .br "Images (*.png *.xpm *.jpg)", .br @@ -594,7 +594,7 @@ The file dialog's working directory will be set to \fIdir\fR. If \fIdir\fR inclu .PP The dialog's caption is set to \fIcaption\fR. If \fIcaption\fR is not specified then a default caption will be used. .PP -Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar). +Under Windows and Mac OS X, this static function will use the native file dialog and not a TQFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar). .PP Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories. .PP @@ -617,14 +617,14 @@ Note that if you want to iterate over the list of files, you should iterate over .fi .PP See also getOpenFileName(), getSaveFileName(), and getExistingDirectory(). -.SH "TQString QFileDialog::getSaveFileName ( const TQString & startWith = TQString::null, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )\fC [static]\fR" +.SH "TQString TQFileDialog::getSaveFileName ( const TQString & startWith = TQString::null, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, const TQString & caption = TQString::null, TQString * selectedFilter = 0, bool resolveSymlinks = TRUE )\fC [static]\fR" This is a convenience static function that will return a file name selected by the user. The file does not have to exist. .PP It creates a modal file dialog called \fIname\fR, with parent, \fIparent\fR. If a parent is not 0, the dialog will be shown centered over the parent. .PP .nf .br - TQString s = QFileDialog::getSaveFileName( + TQString s = TQFileDialog::getSaveFileName( .br "/home", .br @@ -642,7 +642,7 @@ The file dialog's working directory will be set to \fIstartWith\fR. If \fIstartW .PP The dialog's caption is set to \fIcaption\fR. If \fIcaption\fR is not specified then a default caption will be used. .PP -Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar. +Under Windows and Mac OS X, this static function will use the native file dialog and not a TQFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar. .PP Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories. .PP @@ -650,44 +650,44 @@ See also getOpenFileName(), getOpenFileNames(), and getExistingDirectory(). .PP Examples: .)l action/application.cpp, addressbook/mainwindow.cpp, application/application.cpp, network/ftpclient/ftpmainwindow.ui.h, qmag/qmag.cpp, qwerty/qwerty.cpp, and showimg/showimg.cpp. -.SH "QFileIconProvider * QFileDialog::iconProvider ()\fC [static]\fR" +.SH "TQFileIconProvider * TQFileDialog::iconProvider ()\fC [static]\fR" Returns a pointer to the icon provider currently set on the file dialog. By default there is no icon provider, and this function returns 0. .PP -See also setIconProvider() and QFileIconProvider. -.SH "bool QFileDialog::isContentsPreviewEnabled () const" +See also setIconProvider() and TQFileIconProvider. +.SH "bool TQFileDialog::isContentsPreviewEnabled () const" Returns TRUE if the file dialog can provide a contents preview of the currently selected file; otherwise returns FALSE. See the "contentsPreview" property for details. -.SH "bool QFileDialog::isInfoPreviewEnabled () const" +.SH "bool TQFileDialog::isInfoPreviewEnabled () const" Returns TRUE if the file dialog can provide preview information about the currently selected file; otherwise returns FALSE. See the "infoPreview" property for details. -.SH "Mode QFileDialog::mode () const" +.SH "Mode TQFileDialog::mode () const" Returns the file dialog's mode. See the "mode" property for details. -.SH "PreviewMode QFileDialog::previewMode () const" +.SH "PreviewMode TQFileDialog::previewMode () const" Returns the preview mode for the file dialog. See the "previewMode" property for details. -.SH "void QFileDialog::rereadDir ()" +.SH "void TQFileDialog::rereadDir ()" Rereads the current directory shown in the file dialog. .PP The only time you will need to call this function is if the contents of the directory change and you wish to refresh the file dialog to reflect the change. .PP See also resortDir(). -.SH "void QFileDialog::resortDir ()" +.SH "void TQFileDialog::resortDir ()" Re-sorts the displayed directory. .PP See also rereadDir(). -.SH "void QFileDialog::selectAll ( bool b )" +.SH "void TQFileDialog::selectAll ( bool b )" If \fIb\fR is TRUE then all the files in the current directory are selected; otherwise, they are deselected. -.SH "TQString QFileDialog::selectedFile () const" +.SH "TQString TQFileDialog::selectedFile () const" Returns the name of the selected file. See the "selectedFile" property for details. -.SH "TQStringList QFileDialog::selectedFiles () const" +.SH "TQStringList TQFileDialog::selectedFiles () const" Returns the list of selected files. See the "selectedFiles" property for details. -.SH "TQString QFileDialog::selectedFilter () const" +.SH "TQString TQFileDialog::selectedFilter () const" Returns the filter which the user has selected in the file dialog. See the "selectedFilter" property for details. -.SH "void QFileDialog::setContentsPreview ( TQWidget * w, QFilePreview * preview )" -Sets the widget to be used for displaying the contents of the file to the widget \fIw\fR and a preview of those contents to the QFilePreview \fIpreview\fR. +.SH "void TQFileDialog::setContentsPreview ( TQWidget * w, TQFilePreview * preview )" +Sets the widget to be used for displaying the contents of the file to the widget \fIw\fR and a preview of those contents to the TQFilePreview \fIpreview\fR. .PP -Normally you would create a preview widget that derives from both TQWidget and QFilePreview, so you should pass the same widget twice. If you don't, you must remember to delete the preview object in order to avoid memory leaks. +Normally you would create a preview widget that derives from both TQWidget and TQFilePreview, so you should pass the same widget twice. If you don't, you must remember to delete the preview object in order to avoid memory leaks. .PP .nf .br - class Preview : public QLabel, public QFilePreview + class Preview : public QLabel, public TQFilePreview .br { .br @@ -696,7 +696,7 @@ Normally you would create a preview widget that derives from both TQWidget and Q Preview( TQWidget *parent=0 ) : QLabel( parent ) {} .br .br - void previewUrl( const QUrl &u ) + void previewUrl( const TQUrl &u ) .br { .br @@ -727,13 +727,13 @@ Normally you would create a preview widget that derives from both TQWidget and Q Preview* p = new Preview; .br .br - QFileDialog* fd = new QFileDialog( this ); + TQFileDialog* fd = new TQFileDialog( this ); .br fd->setContentsPreviewEnabled( TRUE ); .br fd->setContentsPreview( p, p ); .br - fd->setPreviewMode( QFileDialog::Contents ); + fd->setPreviewMode( TQFileDialog::Contents ); .br fd->show(); .br @@ -743,20 +743,20 @@ Normally you would create a preview widget that derives from both TQWidget and Q .PP See also contentsPreview, setInfoPreview(), and previewMode. .PP -Example: qdir/qdir.cpp. -.SH "void QFileDialog::setContentsPreviewEnabled ( bool )" +Example: tqdir/tqdir.cpp. +.SH "void TQFileDialog::setContentsPreviewEnabled ( bool )" Sets whether the file dialog can provide a contents preview of the currently selected file. See the "contentsPreview" property for details. -.SH "void QFileDialog::setDir ( const QDir & dir )" +.SH "void TQFileDialog::setDir ( const TQDir & dir )" Sets the file dialog's working directory to \fIdir\fR. .PP See also dir(). -.SH "void QFileDialog::setDir ( const TQString & pathstr )\fC [slot]\fR" +.SH "void TQFileDialog::setDir ( const TQString & pathstr )\fC [slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the file dialog's working directory to \fIpathstr\fR. .PP See also dir(). -.SH "void QFileDialog::setFilter ( const TQString & newFilter )\fC [slot]\fR" +.SH "void TQFileDialog::setFilter ( const TQString & newFilter )\fC [slot]\fR" Sets the filter used in the file dialog to \fInewFilter\fR. .PP If \fInewFilter\fR contains a pair of parentheses containing one or more of \fI\fBanything*something\fR\fR separated by spaces or by semi-colons then only the text contained in the parentheses is used as the filter. This means that these calls are all equivalent: @@ -774,7 +774,7 @@ If \fInewFilter\fR contains a pair of parentheses containing one or more of \fI\ .fi .PP See also setFilters(). -.SH "void QFileDialog::setFilters ( const TQString & filters )\fC [slot]\fR" +.SH "void TQFileDialog::setFilters ( const TQString & filters )\fC [slot]\fR" Sets the filters used in the file dialog to \fIfilters\fR. Each group of filters must be separated by \fC;;\fR (\fItwo\fR semi-colons). .PP .nf @@ -785,35 +785,35 @@ Sets the filters used in the file dialog to \fIfilters\fR. Each group of filters .br "Any files (*)"); .br - QFileDialog fd = new QFileDialog( this ); + TQFileDialog fd = new TQFileDialog( this ); .br fd->setFilters( types ); .br fd->show(); .br .fi -.SH "void QFileDialog::setFilters ( const char ** types )\fC [slot]\fR" +.SH "void TQFileDialog::setFilters ( const char ** types )\fC [slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fItypes\fR must be a null-terminated list of strings. -.SH "void QFileDialog::setFilters ( const TQStringList & )\fC [slot]\fR" +.SH "void TQFileDialog::setFilters ( const TQStringList & )\fC [slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "void QFileDialog::setIconProvider ( QFileIconProvider * provider )\fC [static]\fR" -Sets the QFileIconProvider used by the file dialog to \fIprovider\fR. +.SH "void TQFileDialog::setIconProvider ( TQFileIconProvider * provider )\fC [static]\fR" +Sets the TQFileIconProvider used by the file dialog to \fIprovider\fR. .PP -The default is that there is no QFileIconProvider and QFileDialog just draws a folder icon next to each directory and nothing next to files. +The default is that there is no TQFileIconProvider and TQFileDialog just draws a folder icon next to each directory and nothing next to files. .PP -See also QFileIconProvider and iconProvider(). +See also TQFileIconProvider and iconProvider(). .PP Example: showimg/main.cpp. -.SH "void QFileDialog::setInfoPreview ( TQWidget * w, QFilePreview * preview )" -Sets the widget to be used for displaying information about the file to the widget \fIw\fR and a preview of that information to the QFilePreview \fIpreview\fR. +.SH "void TQFileDialog::setInfoPreview ( TQWidget * w, TQFilePreview * preview )" +Sets the widget to be used for displaying information about the file to the widget \fIw\fR and a preview of that information to the TQFilePreview \fIpreview\fR. .PP -Normally you would create a preview widget that derives from both TQWidget and QFilePreview, so you should pass the same widget twice. If you don't, you must remember to delete the preview object in order to avoid memory leaks. +Normally you would create a preview widget that derives from both TQWidget and TQFilePreview, so you should pass the same widget twice. If you don't, you must remember to delete the preview object in order to avoid memory leaks. .PP .nf .br - class Preview : public QLabel, public QFilePreview + class Preview : public QLabel, public TQFilePreview .br { .br @@ -822,7 +822,7 @@ Normally you would create a preview widget that derives from both TQWidget and Q Preview( TQWidget *parent=0 ) : QLabel( parent ) {} .br .br - void previewUrl( const QUrl &u ) + void previewUrl( const TQUrl &u ) .br { .br @@ -853,13 +853,13 @@ Normally you would create a preview widget that derives from both TQWidget and Q Preview* p = new Preview; .br .br - QFileDialog* fd = new QFileDialog( this ); + TQFileDialog* fd = new TQFileDialog( this ); .br fd->setInfoPreviewEnabled( TRUE ); .br fd->setInfoPreview( p, p ); .br - fd->setPreviewMode( QFileDialog::Info ); + fd->setPreviewMode( TQFileDialog::Info ); .br fd->show(); .br @@ -869,41 +869,41 @@ Normally you would create a preview widget that derives from both TQWidget and Q .fi .PP See also setContentsPreview(), infoPreview, and previewMode. -.SH "void QFileDialog::setInfoPreviewEnabled ( bool )" +.SH "void TQFileDialog::setInfoPreviewEnabled ( bool )" Sets whether the file dialog can provide preview information about the currently selected file. See the "infoPreview" property for details. -.SH "void QFileDialog::setMode ( Mode )" +.SH "void TQFileDialog::setMode ( Mode )" Sets the file dialog's mode. See the "mode" property for details. -.SH "void QFileDialog::setPreviewMode ( PreviewMode m )" +.SH "void TQFileDialog::setPreviewMode ( PreviewMode m )" Sets the preview mode for the file dialog to \fIm\fR. See the "previewMode" property for details. -.SH "void QFileDialog::setSelectedFilter ( const TQString & mask )\fC [virtual]\fR" +.SH "void TQFileDialog::setSelectedFilter ( const TQString & mask )\fC [virtual]\fR" Sets the current filter selected in the file dialog to the first one that contains the text \fImask\fR. -.SH "void QFileDialog::setSelectedFilter ( int n )\fC [virtual]\fR" +.SH "void TQFileDialog::setSelectedFilter ( int n )\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the current filter selected in the file dialog to the \fIn\fR-th filter in the filter list. .PP See also filterSelected(), selectedFilter, selectedFiles, and selectedFile. -.SH "void QFileDialog::setSelection ( const TQString & filename )" +.SH "void TQFileDialog::setSelection ( const TQString & filename )" Sets the default selection to \fIfilename\fR. If \fIfilename\fR is absolute, setDir() is also called to set the file dialog's working directory to the filename's directory. .PP -Example: qdir/qdir.cpp. -.SH "void QFileDialog::setShowHiddenFiles ( bool s )" +Example: tqdir/tqdir.cpp. +.SH "void TQFileDialog::setShowHiddenFiles ( bool s )" Sets whether hidden files are shown in the file dialog to \fIs\fR. See the "showHiddenFiles" property for details. -.SH "void QFileDialog::setUrl ( const QUrlOperator & url )\fC [slot]\fR" +.SH "void TQFileDialog::setUrl ( const TQUrlOperator & url )\fC [slot]\fR" Sets the file dialog's working directory to the directory specified at \fIurl\fR. .PP See also url(). -.SH "void QFileDialog::setViewMode ( ViewMode m )" +.SH "void TQFileDialog::setViewMode ( ViewMode m )" Sets the file dialog's view mode to \fIm\fR. See the "viewMode" property for details. -.SH "bool QFileDialog::showHiddenFiles () const" +.SH "bool TQFileDialog::showHiddenFiles () const" Returns TRUE if hidden files are shown in the file dialog; otherwise returns FALSE. See the "showHiddenFiles" property for details. -.SH "QUrl QFileDialog::url () const" +.SH "TQUrl TQFileDialog::url () const" Returns the URL of the current working directory in the file dialog. .PP See also setUrl(). .PP Example: network/networkprotocol/view.cpp. -.SH "ViewMode QFileDialog::viewMode () const" +.SH "ViewMode TQFileDialog::viewMode () const" Returns the file dialog's view mode. See the "viewMode" property for details. .SS "Property Documentation" .SH "bool contentsPreview" @@ -995,12 +995,12 @@ If you set the view mode to be \fIDetail\fR (the default), then you will see the .PP If you set the view mode to be \fIList\fR, then you will just see a list of the files and folders. .PP -See QFileDialog::ViewMode +See TQFileDialog::ViewMode .PP Set this property's value with setViewMode() and get this property's value with viewMode(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqfiledialog.html +.BR http://doc.trolltech.com/tqfiledialog.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |