mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Title block : add two news variables, previous-folio-num and next-folio-num
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5664 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,31 +19,38 @@
|
||||
#define TITLEBLOCK_TEMPLATE_RENDERER_H
|
||||
#include <QPicture>
|
||||
#include "diagramcontext.h"
|
||||
|
||||
class TitleBlockTemplate;
|
||||
class TitleBlockTemplateRenderer : public QObject {
|
||||
|
||||
class TitleBlockTemplateRenderer : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TitleBlockTemplateRenderer(QObject * = nullptr);
|
||||
~TitleBlockTemplateRenderer() override;
|
||||
const TitleBlockTemplate *titleBlockTemplate() const;
|
||||
void setTitleBlockTemplate(const TitleBlockTemplate *);
|
||||
void setContext(const DiagramContext &context);
|
||||
int height() const;
|
||||
void render(QPainter *, int);
|
||||
void renderDxf(QRectF &, int, QString &, int);
|
||||
void invalidateRenderedTemplate();
|
||||
void setUseCache(bool);
|
||||
bool useCache() const;
|
||||
TitleBlockTemplateRenderer(QObject * = nullptr);
|
||||
~TitleBlockTemplateRenderer() override;
|
||||
|
||||
const TitleBlockTemplate *titleBlockTemplate() const;
|
||||
void setTitleBlockTemplate(const TitleBlockTemplate *);
|
||||
|
||||
void setContext(const DiagramContext &context);
|
||||
DiagramContext context()const;
|
||||
|
||||
int height() const;
|
||||
void render(QPainter *, int);
|
||||
void renderDxf(QRectF &, int, QString &, int);
|
||||
void invalidateRenderedTemplate();
|
||||
void setUseCache(bool);
|
||||
bool useCache() const;
|
||||
|
||||
private:
|
||||
void renderToQPicture(int);
|
||||
void renderToQPicture(int);
|
||||
|
||||
private:
|
||||
const TitleBlockTemplate *titleblock_template_;
|
||||
bool use_cache_;
|
||||
QPicture rendered_template_;
|
||||
DiagramContext context_;
|
||||
int last_known_titleblock_width_;
|
||||
const TitleBlockTemplate *m_titleblock_template;
|
||||
bool m_use_cache;
|
||||
QPicture m_rendered_template;
|
||||
DiagramContext m_context;
|
||||
int m_last_known_titleblock_width;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user