#pragma once #include #include #include #include #include "core/Cutter.h" #include "CutterDockWidget.h" class MainWindow; namespace Ui { class StackWidget; } class StackWidget : public CutterDockWidget { Q_OBJECT public: explicit StackWidget(MainWindow *main, QAction *action = nullptr); ~StackWidget(); private slots: void updateContents(); void setStackGrid(); void fontsUpdatedSlot(); void onDoubleClicked(const QModelIndex &index); void customMenuRequested(QPoint pos); void seekOffset(); void editStack(); private: std::unique_ptr ui; QTableView *viewStack = new QTableView; QStandardItemModel *modelStack = new QStandardItemModel(1, 3, this); QAction *seekAction; QAction *editAction; RefreshDeferrer *refreshDeferrer; };