Seamly2D
Code documentation
vabstractlayoutdialog.h
Go to the documentation of this file.
1 #ifndef VABSTRACTLAYOUTDIALOG_H
2 #define VABSTRACTLAYOUTDIALOG_H
3 
4 #include "../ifc/ifcdef.h"
5 
6 #include <QComboBox>
7 #include <QDialog>
8 
9 
10 
11 class VAbstractLayoutDialog : public QDialog
12 {
13 public:
14  enum class PaperSizeTemplate : char { A0 = 0,
15  A1,
16  A2,
17  A3,
18  A4,
19  Letter,
20  Legal,
21  Roll24in = 7, // Be careful when changing order roll type
22  Roll30in, // Used also for showing icon
23  Roll36in,
24  Roll42in,
25  Roll44in = 11,
26  Custom = 12};
27 
28  explicit VAbstractLayoutDialog(QWidget *parent = nullptr);
29 
30 protected:
31  typedef QStringList FormatsVector;
33  typedef int VIndexType;
34 
35  QSizeF getTemplateSize(const PaperSizeTemplate &tmpl, const Unit &unit) const;
36  QSizeF RoundTemplateSize(qreal width, qreal height, Unit unit) const;
37 
38  void initTemplates(QComboBox *comboBoxTemplates);
39 
40 
41 };
42 
43 #endif // VABSTRACTDIALOG_H
void initTemplates(QComboBox *comboBoxTemplates)
QSizeF RoundTemplateSize(qreal width, qreal height, Unit unit) const
QSizeF getTemplateSize(const PaperSizeTemplate &tmpl, const Unit &unit) const
DialogLayoutSettings::TemplateSize.
static const FormatsVector pageFormatNames
VAbstractLayoutDialog(QWidget *parent=nullptr)
Unit
Definition: def.h:105