leocad/common/lc_instructionsdialog.h

76 lines
1.6 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-07 20:48:43 +01:00
lcInstructionsPageWidget(QWidget* Parent, lcInstructions* Instructions);
2020-06-01 03:46:36 +02:00
2021-01-06 03:48:12 +01:00
void SetCurrentPage(const lcInstructionsPage* Page);
2021-01-07 20:48:43 +01:00
protected:
lcInstructions* mInstructions;
2020-06-01 03:46:36 +02:00
};
2021-01-06 23:06:15 +01:00
class lcInstructionsPageListWidget : public QDockWidget
{
Q_OBJECT
public:
2021-01-07 19:46:57 +01:00
lcInstructionsPageListWidget(QWidget* Parent, lcInstructions* Instructions);
2021-01-06 23:06:15 +01:00
2021-01-07 19:46:57 +01:00
protected slots:
void ShowPageSetupDialog();
2021-01-07 02:45:38 +01:00
2021-01-07 19:46:57 +01:00
public:
//protected:
// QComboBox* mSizeComboBox = nullptr;
// QLineEdit* mWidthEdit = nullptr;
// QLineEdit* mHeightEdit = nullptr;
//
// QRadioButton* mPortraitButton = nullptr;
// QRadioButton* mLandscapeButton = nullptr;
//
// QLineEdit* mLeftMarginEdit = nullptr;
// QLineEdit* mRightMarginEdit = nullptr;
// QLineEdit* mTopMarginEdit = nullptr;
// QLineEdit* mBottomMarginEdit = nullptr;
//
// QComboBox* mUnitsComboBox = nullptr;
2021-01-07 02:45:38 +01:00
2021-01-06 23:06:15 +01:00
QListWidget* mThumbnailsWidget = nullptr;
2021-01-07 19:46:57 +01:00
protected:
lcInstructions* mInstructions;
2021-01-06 23:06:15 +01:00
};
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
};