59 lines
1.2 KiB
C++
59 lines
1.2 KiB
C++
|
|
#include "basePannelPropertyProxy.h"
|
||
|
|
#include "baseDrawingPanel.h"
|
||
|
|
#include "propertyType/pannelColorGadget.h"
|
||
|
|
|
||
|
|
BasePannelPropertyProxy::BasePannelPropertyProxy(BaseDrawingPanel* pPanel)
|
||
|
|
: BasePropertyProxy(pPanel)
|
||
|
|
,_pPanel(pPanel)
|
||
|
|
{
|
||
|
|
_pColorGadget = new PannelColorGadget(_pPanel);
|
||
|
|
}
|
||
|
|
|
||
|
|
BasePannelPropertyProxy::~BasePannelPropertyProxy()
|
||
|
|
{
|
||
|
|
if(_pColorGadget)
|
||
|
|
delete _pColorGadget;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
QString BasePannelPropertyProxy::getName() const
|
||
|
|
{
|
||
|
|
|
||
|
|
return _pPanel->pageName();
|
||
|
|
}
|
||
|
|
|
||
|
|
void BasePannelPropertyProxy::setName(QString str)
|
||
|
|
{
|
||
|
|
_pPanel->setPageName(str);
|
||
|
|
}
|
||
|
|
|
||
|
|
QSize BasePannelPropertyProxy::getSize() const
|
||
|
|
{
|
||
|
|
return _pPanel->size();
|
||
|
|
}
|
||
|
|
|
||
|
|
void BasePannelPropertyProxy::setSize(QSize size)
|
||
|
|
{
|
||
|
|
_pPanel->resize(size);
|
||
|
|
}
|
||
|
|
|
||
|
|
/*QColor BasePannelPropertyProxy::getBackColor() const
|
||
|
|
{
|
||
|
|
return _pPanel->getScene()->getBackGoundColor();
|
||
|
|
}
|
||
|
|
|
||
|
|
void BasePannelPropertyProxy::setBackColor(QColor color)
|
||
|
|
{
|
||
|
|
_pPanel->getScene()->setBackGoundColor(color);
|
||
|
|
}
|
||
|
|
|
||
|
|
QColor BasePannelPropertyProxy::getGridColor() const
|
||
|
|
{
|
||
|
|
return _pPanel->getScene()->getGridColor();
|
||
|
|
}
|
||
|
|
|
||
|
|
void BasePannelPropertyProxy::setGridColor(QColor color)
|
||
|
|
{
|
||
|
|
_pPanel->getScene()->setGridColor(color);
|
||
|
|
}*/
|