mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
List of Drawings: DXF export added and multple sheets for large project added.
Pending work: - folio string to be formatted correctly. - thorough testing to be done because lot of changes to addDiagram / removeDiagram had to be done to add the feature of multiple folio list sheets git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2836 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,18 +19,32 @@
|
||||
#define DIAGRAMFOLIOLIST_H
|
||||
|
||||
#include "diagram.h"
|
||||
#include "qetgraphicsitem/independenttextitem.h"
|
||||
|
||||
class DiagramFolioList : public Diagram
|
||||
{
|
||||
public:
|
||||
DiagramFolioList(QObject *parent = 0) : Diagram(parent) {}
|
||||
virtual ~DiagramFolioList() {}
|
||||
DiagramFolioList(QObject *parent = 0);
|
||||
virtual ~DiagramFolioList();
|
||||
virtual QList<QLineF *> lines() const {return list_lines_;}
|
||||
virtual QList<QRectF *> rectangles() const {return list_rectangles_;}
|
||||
void setId(int i) {id = i;}
|
||||
int getId() const {return id;}
|
||||
|
||||
static int folioList_quantity;
|
||||
static qreal colWidths[4];
|
||||
|
||||
protected:
|
||||
void drawBackground(QPainter *, const QRectF &);
|
||||
|
||||
private:
|
||||
void fillRow(QPainter *, const QRectF &, QString, QString, QString, QString);
|
||||
void buildGrid(const QRectF &, int, int, qreal[]);
|
||||
|
||||
|
||||
QList<QLineF *> list_lines_;
|
||||
QList<QRectF *> list_rectangles_;
|
||||
int id;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user