From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqfiledialog.html | 70 +++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'doc/html/tqfiledialog.html') diff --git a/doc/html/tqfiledialog.html b/doc/html/tqfiledialog.html index aa6af785b..54ae4badb 100644 --- a/doc/html/tqfiledialog.html +++ b/doc/html/tqfiledialog.html @@ -37,8 +37,8 @@ body { background: #ffffff; color: black; }

List of all member functions.

Public Members

Static Public Members

@@ -114,7 +114,7 @@ body { background: #ffffff; color: black; }

Protected Members

@@ -154,7 +154,7 @@ file". If you want to use multiple filters, separate each one with functions. By calling setMode(), you can set what can be returned by the TQFileDialog.

-    TQFileDialog* fd = new TQFileDialog( this, "file dialog", TRUE );
+    TQFileDialog* fd = new TQFileDialog( this, "file dialog", true );
     fd->setMode( TQFileDialog::AnyFile );
   
@@ -239,14 +239,14 @@ pixmap. Here's how to make a file dialog use a preview widget: Preview* p = new Preview; TQFileDialog* fd = new TQFileDialog( this ); - fd->setContentsPreviewEnabled( TRUE ); + fd->setContentsPreviewEnabled( true ); fd->setContentsPreview( p, p ); fd->setPreviewMode( TQFileDialog::Contents ); fd->show();

The first line creates an instance of our preview widget. We then -create our file dialog and call setContentsPreviewEnabled( TRUE ), +create our file dialog and call setContentsPreviewEnabled( true ), this tell the file dialog to preview the contents of the currently selected file. We then call setContentsPreview() -- note that we pass the same preview widget twice. Finally, before showing the file @@ -297,20 +297,20 @@ additional information, such as file size and modification date.

See setViewMode().


Member Function Documentation

-

TQFileDialog::TQFileDialog ( const TQString & dirName, const TQString & filter = TQString::null, TQWidget * parent = 0, const char * name = 0, bool modal = FALSE ) +

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 name with the parent, parent. -If modal is TRUE then the file dialog is modal; otherwise it is +If modal is true then the file dialog is modal; otherwise it is modeless.

If dirName 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 filter is specified it will be used as the dialog's file filter.

-

TQFileDialog::TQFileDialog ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE ) +

TQFileDialog::TQFileDialog ( TQWidget * parent = 0, const char * name = 0, bool modal = false )

Constructs a file dialog called name, with the parent, parent. -If modal is TRUE then the file dialog is modal; otherwise it is +If modal is true then the file dialog is modal; otherwise it is modeless.

TQFileDialog::~TQFileDialog () @@ -342,11 +342,11 @@ Adds the widget w to the left-hand side of the file dialog. Adds the widget w to the right-hand side of the file dialog.

See also addLeftWidget(), addWidgets(), and addToolButton(). -

void TQFileDialog::addToolButton ( TQButton * b, bool separator = FALSE ) [protected] +

void TQFileDialog::addToolButton ( TQButton * b, bool separator = false ) [protected]

Adds the tool button b to the row of tool buttons at the top of the file dialog. The button is appended to the right of -this row. If separator is TRUE, a small space is inserted between the +this row. If separator is true, a small space is inserted between the last button of the row and the new button b.

See also addWidgets(), addLeftWidget(), and addRightWidget(). @@ -415,7 +415,7 @@ it the current file.

This signal is emitted when the user selects a filter.

See also selectedFilter. -

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 ) [static] +

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 ) [static]

This is a convenience static function that will return an existing directory selected by the user. @@ -425,7 +425,7 @@ selected by the user. this, "get existing directory", "Choose a directory", - TRUE ); + true );

This function creates a modal file dialog called name, with @@ -436,12 +436,12 @@ set to caption. Either of these may be getOpenFileName(), getOpenFileNames(), and getSaveFileName(). -

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 ) [static] +

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 ) [static]

This is a convenience static function that returns an existing file selected by the user. If the user pressed Cancel, it returns a null @@ -483,12 +483,12 @@ the parent's titlebar).

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 resolveSymlinks is FALSE, the file dialog will treat +If resolveSymlinks is false, the file dialog will treat symlinks as regular directories.

See also getOpenFileNames(), getSaveFileName(), and getExistingDirectory().

Examples: 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. -

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 ) [static] +

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 ) [static]

This is a convenience static function that will return one or more existing files selected by the user. @@ -519,7 +519,7 @@ the parent's titlebar).

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 resolveSymlinks is FALSE, the file dialog will treat +If resolveSymlinks is false, the file dialog will treat symlinks as regular directories.

Note that if you want to iterate over the list of files, you should iterate over a copy, e.g. @@ -534,7 +534,7 @@ iterate over a copy, e.g.

See also getOpenFileName(), getSaveFileName(), and getExistingDirectory(). -

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 ) [static] +

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 ) [static]

This is a convenience static function that will return a file name selected by the user. The file does not have to exist. @@ -565,7 +565,7 @@ the parent's titlebar.

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 resolveSymlinks is FALSE, the file dialog will treat +If resolveSymlinks is false, the file dialog will treat symlinks as regular directories.

See also getOpenFileName(), getOpenFileNames(), and getExistingDirectory(). @@ -577,10 +577,10 @@ By default there is no icon provider, and this function returns 0.

See also setIconProvider() and TQFileIconProvider.

bool TQFileDialog::isContentsPreviewEnabled () const -

Returns TRUE if the file dialog can provide a contents preview of the currently selected file; otherwise returns FALSE. +

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.

bool TQFileDialog::isInfoPreviewEnabled () const -

Returns TRUE if the file dialog can provide preview information about the currently selected file; otherwise returns FALSE. +

Returns true if the file dialog can provide preview information about the currently selected file; otherwise returns false. See the "infoPreview" property for details.

Mode TQFileDialog::mode () const

Returns the file dialog's mode. @@ -603,7 +603,7 @@ Re-sorts the displayed directory.

void TQFileDialog::selectAll ( bool b )

-If b is TRUE then all the files in the current directory are selected; +If b is true then all the files in the current directory are selected; otherwise, they are deselected.

TQString TQFileDialog::selectedFile () const @@ -648,7 +648,7 @@ avoid memory leaks. Preview* p = new Preview; TQFileDialog* fd = new TQFileDialog( this ); - fd->setContentsPreviewEnabled( TRUE ); + fd->setContentsPreviewEnabled( true ); fd->setContentsPreview( p, p ); fd->setPreviewMode( TQFileDialog::Contents ); fd->show(); @@ -751,7 +751,7 @@ avoid memory leaks. Preview* p = new Preview; TQFileDialog* fd = new TQFileDialog( this ); - fd->setInfoPreviewEnabled( TRUE ); + fd->setInfoPreviewEnabled( true ); fd->setInfoPreview( p, p ); fd->setPreviewMode( TQFileDialog::Info ); fd->show(); @@ -802,7 +802,7 @@ Sets the file dialog's working directory to the directory specified at url

Sets the file dialog's view mode to m. See the "viewMode" property for details.

bool TQFileDialog::showHiddenFiles () const -

Returns TRUE if hidden files are shown in the file dialog; otherwise returns FALSE. +

Returns true if hidden files are shown in the file dialog; otherwise returns false. See the "showHiddenFiles" property for details.

TQUrl TQFileDialog::url () const

@@ -816,7 +816,7 @@ See the "viewMode" property for de

Property Documentation

bool contentsPreview

This property holds whether the file dialog can provide a contents preview of the currently selected file. -

The default is FALSE. +

The default is false.

See also setContentsPreview() and infoPreview.

Set this property's value with setContentsPreviewEnabled() and get this property's value with isContentsPreviewEnabled(). @@ -827,7 +827,7 @@ See the "viewMode" property for de

bool infoPreview

This property holds whether the file dialog can provide preview information about the currently selected file. -

The default is FALSE. +

The default is false.

Set this property's value with setInfoPreviewEnabled() and get this property's value with isInfoPreviewEnabled().

Mode mode

@@ -880,7 +880,7 @@ iterate over a copy, e.g.

bool showHiddenFiles

This property holds whether hidden files are shown in the file dialog. -

The default is FALSE, i.e. don't show hidden files. +

The default is false, i.e. don't show hidden files.

Set this property's value with setShowHiddenFiles() and get this property's value with showHiddenFiles().

ViewMode viewMode

-- cgit v1.2.3