| Classes | Functions | DevRef | Qt API | Qtopia Documentation | ![]() |
The FileSelector widget allows the user to select DocLnk objects. More...
#include <fileselector.h>
This class presents a file selection dialog to the user. Use setNewVisible() depending on whether the application can be used to create new files or not. Use setCloseVisible() depending on whether the user may leave the dialog without creating or selecting a document or not. The number of files in the view is available from fileCount(). To force the view to be updated call reread().
If the user presses the 'New Document' button the newSelected() signal is emitted. If the user selects an existing file the fileSelected() signal is emitted. The selected file's DocLnk is available from the selected() function. If the file selector is no longer necessary the closeMe() signal is emitted.
If newVisible is TRUE, the widget has a button to allow the user the create "new" documents; this is useful for applications that can create and edit documents but not suitable for applications that only provide viewing.
If closeVisible is TRUE, the widget has a button to allow the user to close the dialog without creating or selecting a document, i.e. this effectively allows the user to select "no document".
See also DocLnkSet::DocLnkSet().
This signal is emitted when the user no longer needs to view the widget.
This signal is emitted when the user selects a document. f is the document.
This signal is emitted when the user selects a "new" document. f is a DocLnk for the document. You will need to set the type of the document after copying it.
This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks | Qtopia version 1.5.0
|