53 #ifndef MAINWINDOWSNOGUI_H
54 #define MAINWINDOWSNOGUI_H
56 #include <QMainWindow>
58 #include <QToolButton>
60 #include "../vlayout/vlayoutpiece.h"
63 #include "../vlayout/vlayoutgenerator.h"
64 #include "../vwidgets/vabstractmainwindow.h"
68 class QGraphicsRectItem;
86 void exportSVG(
const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene)
const;
87 void exportPNG(
const QString &name, QGraphicsScene *scene)
const;
88 void exportTIF(
const QString &name, QGraphicsScene *scene)
const;
89 void exportJPG(
const QString &name, QGraphicsScene *scene)
const;
90 void exportBMP(
const QString &name, QGraphicsScene *scene)
const;
91 void exportPPM(
const QString &name, QGraphicsScene *scene)
const;
96 void exportPS(
const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene,
bool ignoreMargins,
162 void ObjFile(const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene)const;
163 void FlatDxfFile(const QString &name,
int version,
bool binary, QGraphicsRectItem *paper, QGraphicsScene *scene,
165 void AAMADxfFile(const QString &name,
int version,
bool binary, const QSize &size,
184 bool IsPagesFit(
const QSizeF &printPaper)
const;
194 const QSize &size)
const;
void ExportApparelLayout(const ExportLayoutDialog &dialog, const QVector< VLayoutPiece > &pieces, const QString &name, const QSize &size) const
QGraphicsScene * tempSceneLayout
currentScene pointer to current scene.
virtual ~MainWindowsNoGUI() Q_DECL_OVERRIDE
void exportPPM(const QString &name, QGraphicsScene *scene) const
exportPPM save layout to gif file.
void PrepareTextForDXF(const QString &placeholder, const QList< QList< QGraphicsItem * > > &pieces) const
PrepareTextForDXF prepare QGraphicsSimpleTextItem items for export to flat dxf.
void exportSVG(const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene) const
exportSVG save layout to svg file.
VContainer * pattern
pattern container with data (points, arcs, splines, spline paths, variables)
bool IsPagesFit(const QSizeF &printPaper) const
void ExportData(const QVector< VLayoutPiece > &pieceList, const ExportLayoutDialog &dialog)
void refreshLabels()
refreshLabels call to recalculate piece labels. For example after changing a font.
QVector< QVector< VLayoutPiece > > piecesOnLayout
void convertPdfToPs(const QStringList ¶ms) const
convertPdfToPs use external tool "pdftops" for converting pdf to eps or ps format.
MainWindowsNoGUI(QWidget *parent=nullptr)
void AAMADxfFile(const QString &name, int version, bool binary, const QSize &size, const QVector< VLayoutPiece > &pieces) const
void exportTIF(const QString &name, QGraphicsScene *scene) const
exportTIF save layout to tif file.
void exportJPG(const QString &name, QGraphicsScene *scene) const
exportJPG save layout to jpg file.
void FlatDxfFile(const QString &name, int version, bool binary, QGraphicsRectItem *paper, QGraphicsScene *scene, const QList< QList< QGraphicsItem * > > &pieces) const
void PreparePaper(int index) const
void ObjFile(const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene) const
void exportEPS(const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene, bool ignoreMargins, const QMarginsF &margins) const
exportEPS( save layout to eps file.
void InitTempLayoutScene()
QList< QList< QGraphicsItem * > > pieces
QList< QGraphicsItem * > shadows
bool isPagesUniform() const
virtual void PrepareSceneList()=0
QPageSize FindQPrinterPageSize(const QSizeF &size) const
MainWindowsNoGUI::FindTemplate.
static QVector< VLayoutPiece > preparePiecesForLayout(const QHash< quint32, VPiece > &pieces)
void ExportFlatLayout(const ExportLayoutDialog &dialog, const QList< QGraphicsScene * > &scenes, const QList< QGraphicsItem * > &papers, const QList< QGraphicsItem * > &shadows, const QList< QList< QGraphicsItem * > > &pieces, bool ignoreMargins, const QMarginsF &margins)
QList< QGraphicsItem * > papers
doc dom document container
QAction * actionDockWidgetGroups
int ContinueIfLayoutStale()
QIcon ScenePreview(int i) const
void PrintPreviewOrigin()
void exportBMP(const QString &name, QGraphicsScene *scene) const
exportBMP save layout to bmp file.
bool IsLayoutGrayscale() const
void exportPNG(const QString &name, QGraphicsScene *scene) const
exportPNG save layout to png file.
QString layoutPrinterName
virtual void CleanLayout()=0
void exportPDF(const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene, bool ignoreMargins, const QMarginsF &margins) const
exportPDF save layout to pdf file.
QVector< VLayoutPiece > pieceList
void SetSizeHeightForIndividualM() const
void exportPiecesAsApparelLayout(const ExportLayoutDialog &dialog, QVector< VLayoutPiece > pieceList)
void RestorePaper(int index) const
void exportPS(const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene, bool ignoreMargins, const QMarginsF &margins) const
exportPS save layout to ps file.
QAction * actionDockWidgetToolOptions
void ErrorConsoleMode(const LayoutErrors &state)
void PrintPages(QPrinter *printer)
static QList< QGraphicsScene * > CreateScenes(const QList< QGraphicsItem * > &papers, const QList< QGraphicsItem * > &shadows, const QList< QList< QGraphicsItem * > > &pieces)
void exportPiecesAsFlatLayout(const ExportLayoutDialog &dialog, const QVector< VLayoutPiece > &pieceList)
bool LayoutSettings(VLayoutGenerator &lGenerator)
QAction * actionDockWidgetToolbox
void toolLayoutSettings(QToolButton *tButton, bool checked)
void SetPrinterSettings(QPrinter *printer, const PrintType &printType)
QList< QGraphicsScene * > scenes
QAction * actionDockWidgetLayouts
VPattern * doc
pattern container with data (points, arcs, splines, spline paths, variables)
void refreshSeamAllowances()
refreshSeamAllowances call to show / hide seam allowances.
static QList< QGraphicsItem * > CreateShadows(const QList< QGraphicsItem * > &papers)
void refreshGrainLines()
refreshGrainLines call to recalculate piece grainlines. For example after show / hide grainlines.
void ExportScene(const ExportLayoutDialog &dialog, const QList< QGraphicsScene * > &scenes, const QList< QGraphicsItem * > &papers, const QList< QGraphicsItem * > &shadows, const QList< QList< QGraphicsItem * > > &pieces, bool ignoreMargins, const QMarginsF &margins) const
void PdfTiledFile(const QString &name)
void RestoreTextAfterDXF(const QString &placeholder, const QList< QList< QGraphicsItem * > > &pieces) const
MainWindowsNoGUI::RestoreTextAfterDXF restore QGraphicsSimpleTextItem items after export to flat dxf.
QGraphicsScene * currentScene
The VContainer class container of all variables.
The VPattern class working with pattern file.