leocad/common/lc_instructionsdialog.h

41 lines
835 B
C
Raw Normal View History

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