text: #include "functionwidget.h"
  #include "ui_functionwidget.h"
  
  FunctionWidget::FunctionWidget(QWidget *parent) :
  	QDockWidget(parent),
  	ui(new Ui::FunctionWidget)
  {
  	ui->setupUi(this);
  }
  
  FunctionWidget::~FunctionWidget()
  {
  	delete ui;
  }
  
  void FunctionWidget::recvFilePath(QString filePath)
  {
  	ui->lb_filepath_01->setText(filePath);
  	emit sendXMLFilepath(ui->cb_xml_01->currentText());
  }
  
  void FunctionWidget::recvKeyStartPlay()
  {
  //	ui->pb_play->click();
  }
  
  void FunctionWidget::on_pb_play_clicked(bool checked)
  {
  	if(checked)
  	{
  //		ui->pb_play->setText("Pause");
  		emit sendChangeStatus(STATUS_PLAY);
  	}
  	else
  	{
  //		ui->pb_play->setText("Play");
  		emit sendChangeStatus(STATUS_PAUSE);
  	}
  
  }
  
  void FunctionWidget::on_pb_previous_clicked()
  {
  	emit sendPrevious();
  }
  
  void FunctionWidget::on_pb_next_clicked()
  {
  	emit sendNext();
  }
  
  void FunctionWidget::dragEnterEvent(QDragEnterEvent *event)
  {
  	if (event->mimeData()->hasUrls())
  	{
  		event->acceptProposedAction();
  	}
  }
  
  void FunctionWidget::dropEvent(QDropEvent *event)
  {
  	ui->lb_filepath_01->setText(event->mimeData()->urls().at(0).toLocalFile());
  }
  
  void FunctionWidget::on_dsb_pos_x_valueChanged(double arg1)
  {
  	emit sendGeometric(X, arg1);
  }
  
  void FunctionWidget::on_dsb_pos_y_valueChanged(double arg1)
  {
  	emit sendGeometric(Y, arg1);
  }
  
  void FunctionWidget::on_dsb_pos_z_valueChanged(double arg1)
  {
  	emit sendGeometric(Z, arg1);
  }
  
  void FunctionWidget::on_dsb_roll_valueChanged(double arg1)
  {
  	emit sendGeometric(ROLL, arg1);
  }
  
  void FunctionWidget::on_dsb_pitch_valueChanged(double arg1)
  {
  	emit sendGeometric(PITCH, arg1);
  }
  
  void FunctionWidget::on_dsb_yaw_valueChanged(double arg1)
  {
  	emit sendGeometric(YAW, arg1);
  }
  