23 #ifndef GUI_DIRECTORYWIDGET_H
24 #define GUI_DIRECTORYWIDGET_H
26 #include "GUI/DirectoryWidget/ui_GUI_DirectoryWidget.h"
27 #include "GUI/Helper/SayonaraWidget/SayonaraWidget.h"
28 #include "Interfaces/LibraryInterface/LibraryContainer/LibraryContainer.h"
32 #include <QFileSystemModel>
34 #include <QMouseEvent>
52 QComboBox* get_libchooser();
57 QFileSystemModel* _file_model=
nullptr;
63 QModelIndex _found_idx;
65 QStringList _found_strings;
68 void showEvent(QShowEvent* e)
override;
69 void init_shortcuts();
72 void search_button_clicked();
73 void search_term_changed(
const QString& term);
74 void directory_loaded(
const QString& path);
75 void files_loaded(
const QString& path);
77 void dir_clicked(QModelIndex idx);
78 void dir_pressed(QModelIndex idx);
79 void file_dbl_clicked(QModelIndex idx);
80 void file_pressed(QModelIndex idx);
81 void dir_info_clicked();
82 void dir_append_clicked();
83 void dir_play_next_clicked();
84 void dir_delete_clicked();
86 void file_info_clicked();
87 void file_append_clicked();
88 void file_play_next_clicked();
89 void file_delete_clicked();
110 QWidget*
get_ui()
const override;
118 #endif // GUI_DIRECTORYWIDGET_H
Definition: GUI_DirectoryWidget.h:94
Definition: DirectoryIconProvider.h:29
QIcon get_icon() const override
Should return the icon displayed in the library view combobox.
Definition: LocalLibrary.h:31
QString get_name() const override
Should return an untranslated name used for identifying this widget.
QWidget * get_ui() const override
Should return the UI for the library view.
An interface class needed when implementing a library plugin.
Definition: LibraryContainer.h:42
QString get_display_name() const override
Should return the translated name displayed in the library view combobox.
QComboBox * get_libchooser() override
Should return the library chooser combo box.
void init_ui() override
Should initialize the ui. The ui constructor should be called within this function.
Definition: SearchableFileTreeView.h:32