Skip to content
Snippets Groups Projects
Commit de726e8a authored by Olivier Langella's avatar Olivier Langella
Browse files

wip : dialog box

parent 21b90375
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,37 @@
<layout class="QVBoxLayout" name="filter_parameter_layout"/>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
......@@ -52,8 +83,8 @@
<slot>chooseFiles()</slot>
<hints>
<hint type="sourcelabel">
<x>319</x>
<y>236</y>
<x>345</x>
<y>202</y>
</hint>
<hint type="destinationlabel">
<x>550</x>
......@@ -61,8 +92,42 @@
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_2</sender>
<signal>clicked()</signal>
<receiver>LoadResultsDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>371</x>
<y>271</y>
</hint>
<hint type="destinationlabel">
<x>568</x>
<y>234</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton</sender>
<signal>clicked()</signal>
<receiver>LoadResultsDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>508</x>
<y>275</y>
</hint>
<hint type="destinationlabel">
<x>648</x>
<y>216</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>chooseFiles()</slot>
<slot>reject()</slot>
<slot>accept()</slot>
</slots>
</ui>
......@@ -41,6 +41,7 @@ LoadResultsDialog::LoadResultsDialog(QWidget * parent):
AutomaticFilterWidget* p_automatic_filter_widget = new AutomaticFilterWidget(this);
p_automatic_filter_widget->hideButton();
ui->filter_parameter_layout->addWidget(p_automatic_filter_widget);
#if QT_VERSION >= 0x050000
// Qt5 code
......
......@@ -43,6 +43,11 @@ AutomaticFilterWidget::~AutomaticFilterWidget()
delete ui;
}
void AutomaticFilterWidget::hideButton() {
qDebug() << "AutomaticFilterWidget::hideButton begin ";
ui->set_param_button->setVisible(false);
qDebug() << "AutomaticFilterWidget::hideButton end ";
}
void AutomaticFilterWidget::setAutomaticFilterParameters(const AutomaticFilterParameters & params) {
qDebug() << "AutomaticFilterWidget::setAutomaticFilterParameters begin ";
_parameters = params;
......
......@@ -41,6 +41,7 @@ public:
~AutomaticFilterWidget();
void setAutomaticFilterParameters(const AutomaticFilterParameters & params);
void hideButton();
public slots:
void doPeptideEvalue(double evalue);
......
......@@ -58,8 +58,7 @@ ProjectWindow::ProjectWindow(MainWindow *parent):
// Qt4 code
//connect (_protein_list_window, SIGNAL(proteinMatchClicked(ProteinMatch *)), this //,SLOT(doProteinMatchClicked(ProteinMatch *)));
connect (_p_automatic_filter_widget, SIGNAL(automaticFilterParametersChanged(AutomaticFilterParameters)), this,SLOT(doAutomaticFilterParametersChanged(AutomaticFilterParameters)));
connect (this, SIGNAL(identificationGroupGrouped(IdentificationGroup *)), _p_automatic_filter_widget,SLOT(doIdentificationGroupGrouped(IdentificationGroup *)));
#endif
/*
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment