#ifndef LISTDOCKWIDGET_H #define LISTDOCKWIDGET_H #include #include #include #include #include "core/Cutter.h" #include "common/AddressableItemModel.h" #include "CutterDockWidget.h" #include "CutterTreeWidget.h" #include "menus/AddressableItemContextMenu.h" class MainWindow; class QTreeWidgetItem; class CommentsWidget; namespace Ui { class ListDockWidget; } class CUTTER_EXPORT ListDockWidget : public CutterDockWidget { Q_OBJECT public: enum class SearchBarPolicy { ShowByDefault, HideByDefault, Hide, }; explicit ListDockWidget(MainWindow *main, SearchBarPolicy searchBarPolicy = SearchBarPolicy::ShowByDefault); ~ListDockWidget() override; void showCount(bool show); protected: void setModels(AddressableFilterProxyModel *objectFilterProxyModel); std::unique_ptr ui; private: AddressableFilterProxyModel *objectFilterProxyModel = nullptr; CutterTreeWidget *tree; SearchBarPolicy searchBarPolicy; }; #endif // LISTDOCKWIDGET_H