leocad/common/lc_instructionsdialog.h
2021-01-05 18:48:12 -08:00

40 lines
835 B
C++

#pragma once
#include "lc_instructions.h"
class lcInstructionsPageWidget : public QGraphicsView
{
Q_OBJECT
public:
lcInstructionsPageWidget(QWidget* Parent);
void SetCurrentPage(const lcInstructionsPage* Page);
};
class lcInstructionsDialog : public QMainWindow
{
Q_OBJECT
public:
lcInstructionsDialog(QWidget* Parent, Project* Project);
protected slots:
void UpdatePageSettings();
void CurrentThumbnailChanged(int Index);
protected:
Project* mProject = nullptr;
int mCurrentPageNumber;
lcInstructions mInstructions;
QListWidget* mThumbnailsWidget = nullptr;
lcInstructionsPageWidget* mPageWidget = nullptr ;
QToolBar* mPageSettingsToolBar = nullptr;
QAction* mVerticalPageAction = nullptr;
QAction* mHorizontalPageAction = nullptr;
QSpinBox* mRowsSpinBox = nullptr;
QSpinBox* mColumnsSpinBox = nullptr;
};