mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 22:53:49 +00:00

Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
42 lines
869 B
C++
42 lines
869 B
C++
#pragma once
|
|
|
|
#include <QJsonObject>
|
|
#include <memory>
|
|
#include <QStandardItem>
|
|
#include <QTableView>
|
|
|
|
#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::StackWidget> ui;
|
|
QTableView *viewStack = new QTableView;
|
|
QStandardItemModel *modelStack = new QStandardItemModel(1, 3, this);
|
|
QAction *seekAction;
|
|
QAction *editAction;
|
|
RefreshDeferrer *refreshDeferrer;
|
|
};
|