leocad/common/lc_instructionsdialog.h

52 lines
1 KiB
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
};
2021-01-06 23:06:15 +01:00
class lcInstructionsPageListWidget : public QDockWidget
{
Q_OBJECT
public:
lcInstructionsPageListWidget(QWidget* Parent);
//protected:
QListWidget* mThumbnailsWidget = nullptr;
};
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 23:06:15 +01:00
lcInstructionsPageWidget* mPageWidget = nullptr;
lcInstructionsPageListWidget* mPageListWidget = nullptr;
2021-01-06 03:48:12 +01:00
QToolBar* mPageSettingsToolBar = nullptr;
QAction* mVerticalPageAction = nullptr;
QAction* mHorizontalPageAction = nullptr;
QSpinBox* mRowsSpinBox = nullptr;
QSpinBox* mColumnsSpinBox = nullptr;
2020-06-01 03:46:36 +02:00
};