Example #1
0
void OpenIGTLinkPlugin::CreateQtPartControl(QWidget *parent)
{
  // create GUI widgets from the Qt Designer's .ui file
  m_Controls.setupUi(parent);
  connect(m_Controls.buttonConnect, SIGNAL(clicked()), this, SLOT(ConnectButtonClicked()));
  connect(m_Controls.buttonReceive, SIGNAL(clicked()), this, SLOT(ReceivingButtonClicked()));
  connect(&m_Timer, SIGNAL(timeout()), this, SLOT(UpdatePipeline()));

  m_Image2dNode = mitk::DataNode::New();

  m_State = IDLE;
  StateChanged(m_State);
}
Example #2
0
CFtpSelection::CFtpSelection(QWidget *parent): QDialog(parent)
{
	_ui.setupUi(this);
	connect(_ui.connectButton, SIGNAL(clicked()), this, SLOT(ConnectButtonClicked()));
	connect(_ui.doneButton, SIGNAL(clicked()), this, SLOT(DoneButtonClicked()));
	connect(_ui.cdToParrent, SIGNAL(clicked()), this, SLOT(cdToParent()));
	connect(_ui.cancelButton, SIGNAL(clicked()), this, SLOT(reject()));

	// file list
	connect(_ui.fileList, SIGNAL(itemActivated(QTreeWidgetItem *,int)),this, SLOT(processItem(QTreeWidgetItem *,int)));
	_ui.fileList->setEnabled(false);
	_ui.fileList->setRootIsDecorated(false);
	_ui.fileList->setHeaderLabels(QStringList() << tr("Name") << tr("Size") << tr("Owner") << tr("Group") << tr("Time"));
	_ui.fileList->header()->setStretchLastSection(false);

	// buttons
	_ui.cdToParrent->setEnabled(false);
	_ui.doneButton->setEnabled(false);

	status = false;
}