Пример #1
0
	void GanttWidget::onHideContextMenu ()
	{
		Ui::SettingsGantt * ui = m_config_ui->ui();
		disconnect(ui->applyButton, SIGNAL(clicked()), this, SLOT(onApplyButton()));
		disconnect(ui->saveButton, SIGNAL(clicked()), this, SLOT(onSaveButton()));
		m_config_ui->onHideContextMenu();
	}
Пример #2
0
void FrameView::onShowContextMenu (QPoint const & pos)
{
	qDebug("%s this=0x%08x", __FUNCTION__, this);
	QRect widgetRect = geometry();
	m_config_ui.onShowContextMenu(QCursor::pos());
	Ui::SettingsFrameView * ui = m_config_ui.ui();

	setConfigValuesToUI(m_config);

	connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(onApplyButton()));
	connect(ui->clearDataButton, SIGNAL(clicked()), this, SLOT(onClearAllDataButton()));
	connect(ui->saveButton, SIGNAL(clicked()), this, SLOT(onSaveButton()));
	connect(ui->resetButton, SIGNAL(clicked()), this, SLOT(onResetViewButton()));
	//connect(ui->defaultButton, SIGNAL(clicked()), this, SLOT(onDefaultButton()));
}
Пример #3
0
	void GanttWidget::onShowContextMenu (QPoint const & pos)
	{
		//qDebug("%s this=0x%08x", __FUNCTION__, this);
		m_config_ui->onShowContextMenu(QCursor::pos());
		Ui::SettingsGantt * ui = m_config_ui->ui();

		setConfigValuesToUI(m_config);
		connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(onApplyButton()));
		connect(ui->saveButton, SIGNAL(clicked()), this, SLOT(onSaveButton()));
		connect(ui->ganttViewComboBox, SIGNAL(activated(int)), this, SLOT(onGanttViewActivate(int)));
		connect(ui->fitSelectionButton, SIGNAL(clicked()), this, SLOT(onFitSelectionButton()));
		connect(ui->fitAllButton, SIGNAL(clicked()), this, SLOT(onFitAllButton()));
		connect(ui->fitFrameButton, SIGNAL(clicked()), this, SLOT(onFitFrameButton()));
		connect(ui->prevFrameButton, SIGNAL(clicked()), this, SLOT(onPrevFrameButton()));
		connect(ui->nextFrameButton, SIGNAL(clicked()), this, SLOT(onNextFrameButton()));
		connect(ui->nextFrameButton, SIGNAL(valueChanged(int)), this, SLOT(onFrameValueChanged(int)));
	}