代码拉取完成,页面将自动刷新
#ifndef WORKSPACE_H
#define WORKSPACE_H
#include "basespace.h"
#include "graphicsitemtype.h"
#include <QGraphicsItem>
QT_BEGIN_NAMESPACE
class QWebEngineView;
QT_END_NAMESPACE
class RectElement;
class BaseElement;
class Document;
class Page;
class BaseNode;
class QtRuleBar;
class QtCornerBox;
//class WorkSheet : public QGraphicsItem
//{
// QRectF m_geometry;
// QBrush m_background;
// Outline * m_outline;
//public:
// enum { Type = UserType+ GRAPHICSITEM_TYPE_WORKSHEET };
// int type() const
// {
// // Enable the use of qgraphicsitem_cast with this item.
// return Type;
// }
//public:
// WorkSheet(QGraphicsItem * parent= Q_NULLPTR);
// QRectF boundingRect() const override;
// void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
// QWidget *widget) override;
// void setSize(const QSizeF & value);
// inline QSizeF size() const {return m_geometry.size();}
// void setGeometry(qreal x,qreal y,qreal w,qreal h);
// void setGeometry(const QRectF & value);
// inline QRectF geometry() const {return m_geometry;}
// inline void setBackground(const QBrush & value) {m_background = value;}
// inline QBrush Background() const { return m_background;}
// void clear();
//};
class Workspace: public BaseSpace
{
Q_OBJECT
Document * m_document;
//WorkSheet * m_currentSheet;
QtRuleBar * m_hruler;
QtRuleBar * m_vruler;
QtCornerBox * box;
public:
Workspace(QWidget *parent = Q_NULLPTR);
~Workspace();
virtual void init() override;
private:
QPixmap getTileRect();
public slots:
void setDocument(Document * const &document);
protected:
void mouseMoveEvent(QMouseEvent * event) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
void scrollContentsBy(int dx, int dy) Q_DECL_OVERRIDE;
private slots:
void changePageSize(QSize pageSize);
void updateRuler();
};
#endif // WORKSPACE_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。