|
synthclone 0.3.0
|
A utility view class that handles the selection of files and directories. More...
#include <synthclone/fileselectionview.h>
Public Types | |
| enum | Operation { OPERATION_OPEN , OPERATION_SAVE } |
| Specifies whether the view is being used to open or save a filesystem object. More... | |
| enum | SelectionFilter { SELECTIONFILTER_ANY_FILE , SELECTIONFILTER_DIRECTORY , SELECTIONFILTER_EXISTING_FILE , SELECTIONFILTER_EXISTING_FILES } |
| Specifies the types of filesystem objects the user may select. More... | |
Public Slots | |
| void | setDirectory (const QString &directory) |
| Sets the directory to be displayed. | |
| void | setFilesVisible (bool visible) |
| Sets a flag indicating whether or not to show files in the view. | |
| void | setOperation (Operation operation) |
| Sets the FileSelectionView::Operation for the view. | |
| void | setSelectionFilter (SelectionFilter filter) |
| Sets the FileSelectionView::SelectionFilter for this view. | |
| void | setTitle (const QString &title) |
| Sets the window title. | |
Public Slots inherited from synthclone::View | |
| virtual void | setCloseEnabled (bool enabled) |
| Enables/disables closing for this view. | |
| virtual void | setVisible (bool visible) |
| Sets the visibility of the root widget. | |
Signals | |
| void | pathsSelected (const QStringList &paths) |
| Emitted when the user selects a path or path(s). | |
Signals inherited from synthclone::View | |
| void | closeEnabledChanged (bool enabled) |
| Emitted when closing is enabled/disabled. | |
| void | closeRequest () |
| Emitted when a root widget's close button is pressed. | |
| void | visibilityChanged (bool visible) |
| Emitted when the visibility flag for the view changes. | |
Public Member Functions | |
| FileSelectionView (QObject *parent=0) | |
| Constructs a new FileSelectionView object. | |
| ~FileSelectionView () | |
| Destroys a FileSelectionView object. | |
| bool | areFilesVisible () const |
| Gets a flag indicating whether or not files are visible in the view. | |
| QString | getDirectory () const |
| Gets the current displayed directory. | |
| Operation | getOperation () const |
| Gets the current FileSelectionView::Operation. | |
| SelectionFilter | getSelectionFilter () const |
| Gets the selection filter for this view. | |
| QString | getTitle () const |
| Gets the window title. | |
Public Member Functions inherited from synthclone::View | |
| bool | isCloseEnabled () const |
| Gets a boolean indicating whether or not closing of this view is enabled. | |
| bool | isVisible () const |
| Gets a boolean indicating whether or not the view is visible. | |
Additional Inherited Members | |
Protected Member Functions inherited from synthclone::View | |
| View (QWidget *rootWidget, QObject *parent=0) | |
| Constructs a new View. | |
| virtual | ~View () |
| Destroys the View object. | |
| const QWidget * | getRootWidget () const |
| Gets the root widget for this view. | |
| QWidget * | getRootWidget () |
| Gets the root widget for this view. | |
A utility view class that handles the selection of files and directories.
|
explicit |
Constructs a new FileSelectionView object.
| parent | The parent object of the FileSelectionView object. |
| synthclone::FileSelectionView::~FileSelectionView | ( | ) |
Destroys a FileSelectionView object.
| bool synthclone::FileSelectionView::areFilesVisible | ( | ) | const |
Gets a flag indicating whether or not files are visible in the view.
| QString synthclone::FileSelectionView::getDirectory | ( | ) | const |
Gets the current displayed directory.
| Operation synthclone::FileSelectionView::getOperation | ( | ) | const |
Gets the current FileSelectionView::Operation.
| SelectionFilter synthclone::FileSelectionView::getSelectionFilter | ( | ) | const |
Gets the selection filter for this view.
| QString synthclone::FileSelectionView::getTitle | ( | ) | const |
Gets the window title.
|
signal |
Emitted when the user selects a path or path(s).
| paths | The selected paths. |
|
slot |
Sets the directory to be displayed.
| directory | The directory. |
|
slot |
Sets a flag indicating whether or not to show files in the view.
If the 'visible' argument is set to false, then the selection filter will be set to FileSelectionView::SELECTIONFILTER_DIRECTORY when this method returns.
| visible | The flag. |
|
slot |
Sets the FileSelectionView::Operation for the view.
| operation | The FileSelectionView::Operation. |
|
slot |
Sets the FileSelectionView::SelectionFilter for this view.
| filter | The FileSelectionView::SelectionFilter. |
|
slot |
Sets the window title.
| title | The title. |