|
lmms
Cross-platform music production software
|
#include <FileBrowser.h>
Public Types | |
| enum class | Type { Normal , Favorites } |
Public Member Functions | |
| FileBrowser (Type type, const QString &directories, const QString &filter, const QString &title, const QPixmap &pm, QWidget *parent, bool dirs_as_items=false, const QString &userDir="", const QString &factoryDir="") | |
| Create a file browser side bar widget. | |
| ~FileBrowser () override=default | |
| Public Member Functions inherited from lmms::gui::SideBarWidget | |
| SideBarWidget (const QString &_title, const QPixmap &_icon, QWidget *_parent) | |
| ~SideBarWidget () override=default | |
| const QPixmap & | icon () const |
| const QString & | title () const |
Static Public Member Functions | |
| static QDir::Filters | dirFilters () |
| static QDir::SortFlags | sortFlags () |
Private Slots | |
| void | reloadTree () |
| void | expandItems (const QList< QString > &expandedDirs, QTreeWidgetItem *item=nullptr) |
| void | giveFocusToFilter () |
Private Member Functions | |
| void | keyPressEvent (QKeyEvent *ke) override |
| void | addItems (const QString &path) |
| void | saveDirectoriesStates () |
| void | restoreDirectoriesStates () |
| void | onSearch (const QString &filter) |
| void | onSearchMatch (const QString &path) |
| void | onSearchStarted () |
| void | onSearchFinished () |
| void | addContentCheckBox () |
Private Attributes | |
| FileBrowserTreeWidget * | m_fileBrowserTreeWidget |
| FileBrowserTreeWidget * | m_searchTreeWidget |
| QLineEdit * | m_filterEdit |
| Type | m_type |
| QProgressBar * | m_searchIndicator = nullptr |
| FileSearchJob | m_searchJob |
| QString | m_directories |
| Directories to search, split with '*'. | |
| QString | m_filter |
| Filter as used in QDir::match(). | |
| bool | m_dirsAsItems |
| QCheckBox * | m_showUserContent = nullptr |
| QCheckBox * | m_showFactoryContent = nullptr |
| QCheckBox * | m_showHiddenContent = nullptr |
| QBoxLayout * | filterWidgetLayout = nullptr |
| QBoxLayout * | hiddenWidgetLayout = nullptr |
| QBoxLayout * | outerLayout = nullptr |
| QString | m_userDir |
| QString | m_factoryDir |
| QList< QString > | m_savedExpandedDirs |
| QString | m_previousFilterValue |
Additional Inherited Members | |
| Signals inherited from lmms::gui::SideBarWidget | |
| void | closeButtonClicked () |
| Protected Member Functions inherited from lmms::gui::SideBarWidget | |
| void | paintEvent (QPaintEvent *_pe) override |
| void | resizeEvent (QResizeEvent *_re) override |
| void | contextMenuEvent (QContextMenuEvent *) override |
| QWidget * | contentParent () |
| void | addContentWidget (QWidget *_w) |
| void | addContentLayout (QLayout *_l) |
|
strong |
| lmms::gui::FileBrowser::FileBrowser | ( | Type | type, |
| const QString & | directories, | ||
| const QString & | filter, | ||
| const QString & | title, | ||
| const QPixmap & | pm, | ||
| QWidget * | parent, | ||
| bool | dirs_as_items = false, | ||
| const QString & | userDir = "", | ||
| const QString & | factoryDir = "" ) |
Create a file browser side bar widget.
| type | The Type of file browser |
| directories | '*'-separated list of directories to search for. If a directory of factory files should be in the list it must be the last one (for the factory files delimiter to work) |
| filter | Filter as used in QDir::match |
| title | The name of the file browser, shown when it is selected in the side bar |
| pm | The pixmap icon to show in the sidebar |
| parent | The parent widget |
| dirs_as_items | Whether or not to insert directories as top-level items |
| userDir | The user content directory |
| factoryDir | The factory content directory |
|
overridedefault |
|
private |
|
private |
|
inlinestatic |
|
privateslot |
|
privateslot |
|
overrideprivate |
|
private |
|
private |
|
private |
|
private |
|
privateslot |
|
private |
|
private |
|
inlinestatic |
|
private |
|
private |
|
private |
Directories to search, split with '*'.
|
private |
|
private |
|
private |
|
private |
Filter as used in QDir::match().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |