+ implement primitive dialog as task panel
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5365 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -63,6 +63,8 @@ LocationWidget::LocationWidget (QWidget * parent)
|
||||
QGridLayout* gridLayout = new QGridLayout(this);
|
||||
gridLayout->addLayout(box, 0, 0, 1, 2);
|
||||
|
||||
connect(dValue, SIGNAL(activated(int)),
|
||||
this, SLOT(on_direction_activated(int)));
|
||||
retranslateUi();
|
||||
}
|
||||
|
||||
@@ -72,7 +74,7 @@ LocationWidget::~LocationWidget()
|
||||
|
||||
QSize LocationWidget::sizeHint() const
|
||||
{
|
||||
return QSize(150,190);
|
||||
return QSize(150,100);
|
||||
}
|
||||
|
||||
void LocationWidget::changeEvent(QEvent* e)
|
||||
@@ -121,6 +123,13 @@ Base::Vector3f LocationWidget::getPosition() const
|
||||
(float)this->zValue->value());
|
||||
}
|
||||
|
||||
void LocationWidget::setPosition(const Base::Vector3f& v)
|
||||
{
|
||||
this->xValue->setValue(v.x);
|
||||
this->yValue->setValue(v.y);
|
||||
this->zValue->setValue(v.z);
|
||||
}
|
||||
|
||||
void LocationWidget::setDirection(const Base::Vector3f& dir)
|
||||
{
|
||||
if (dir.Length() < FLT_EPSILON) {
|
||||
|
||||
Reference in New Issue
Block a user