mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-27 23:35:26 +00:00
76773eadd6
* Deal with QT depracated warnings
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
#ifndef LISTDOCKWIDGET_H
|
|
#define LISTDOCKWIDGET_H
|
|
|
|
#include <memory>
|
|
#include <QAbstractItemModel>
|
|
#include <QSortFilterProxyModel>
|
|
#include <QMenu>
|
|
|
|
#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 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::ListDockWidget> ui;
|
|
private:
|
|
AddressableFilterProxyModel *objectFilterProxyModel = nullptr;
|
|
CutterTreeWidget *tree;
|
|
SearchBarPolicy searchBarPolicy;
|
|
};
|
|
|
|
#endif // LISTDOCKWIDGET_H
|