From 52bbe6dcc16eb940bd5362b0e0b49a500070aca1 Mon Sep 17 00:00:00 2001 From: Olivier Langella <Olivier.Langella@moulon.inra.fr> Date: Thu, 21 Sep 2017 11:44:25 +0200 Subject: [PATCH] new tandem preset user interface file --- .../edit_tandem_preset_dialog.ui | 119 ++++++++++++++++++ src/input/xtandemparamsaxhandler.cpp | 8 +- 2 files changed, 123 insertions(+), 4 deletions(-) create mode 100644 src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui diff --git a/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui b/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui new file mode 100644 index 00000000..8f519ea4 --- /dev/null +++ b/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>EditLabelMethodView</class> + <widget class="QDialog" name="EditLabelMethodView"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>826</width> + <height>574</height> + </rect> + </property> + <property name="contextMenuPolicy"> + <enum>Qt::CustomContextMenu</enum> + </property> + <property name="windowTitle"> + <string>Labeling methods editor</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <widget class="QMenuBar" name="menubar"/> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QGroupBox" name="groupBox"> + <property name="title"> + <string>Labeling methods</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QListView" name="method_list_view"/> + </item> + </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="cancel_button"> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="ok_button"> + <property name="text"> + <string>OK</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + <item> + <widget class="QStatusBar" name="statusbar"/> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>cancel_button</sender> + <signal>clicked()</signal> + <receiver>EditLabelMethodView</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>675</x> + <y>527</y> + </hint> + <hint type="destinationlabel"> + <x>881</x> + <y>559</y> + </hint> + </hints> + </connection> + <connection> + <sender>ok_button</sender> + <signal>clicked()</signal> + <receiver>EditLabelMethodView</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>764</x> + <y>518</y> + </hint> + <hint type="destinationlabel"> + <x>879</x> + <y>484</y> + </hint> + </hints> + </connection> + </connections> + <slots> + <slot>doNotValidHide(bool)</slot> + <slot>doNotCheckedHide(bool)</slot> + <slot>doNotGroupedHide(bool)</slot> + <slot>doActionBrowse()</slot> + <slot>doActionReplace()</slot> + <slot>reject()</slot> + <slot>accept()</slot> + </slots> +</ui> diff --git a/src/input/xtandemparamsaxhandler.cpp b/src/input/xtandemparamsaxhandler.cpp index 60665161..0b8f6009 100644 --- a/src/input/xtandemparamsaxhandler.cpp +++ b/src/input/xtandemparamsaxhandler.cpp @@ -41,7 +41,7 @@ XtandemParamSaxHandler::~XtandemParamSaxHandler() { bool XtandemParamSaxHandler::startElement(const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & attributes) { - qDebug()<< "XtandemParamSaxHandler::startElement begin" << namespaceURI << " " << localName << " " << qName ; + //qDebug()<< "XtandemParamSaxHandler::startElement begin" << namespaceURI << " " << localName << " " << qName ; _tag_stack.push_back(qName); bool is_ok = true; @@ -134,20 +134,20 @@ bool XtandemParamSaxHandler::characters(const QString &str) { } bool XtandemParamSaxHandler::startElement_note(QXmlAttributes attributes) { - qDebug() << "XtandemParamSaxHandler::startElement_note begin " << attributes.value("type"); + //qDebug() << "XtandemParamSaxHandler::startElement_note begin " << attributes.value("type"); _current_label = ""; if (attributes.value("type") == "input") { _current_label = attributes.value("label"); } - qDebug() << "XtandemParamSaxHandler::startElement_note _current_label " << _current_label; + // qDebug() << "XtandemParamSaxHandler::startElement_note _current_label " << _current_label; return true; } bool XtandemParamSaxHandler::endElement_note() { - qDebug() << "XtandemParamSaxHandler::endElement_note begin " << _current_label << " " << _current_text.simplified(); +// qDebug() << "XtandemParamSaxHandler::endElement_note begin " << _current_label << " " << _current_text.simplified(); if (!_current_label.isEmpty()) { _p_tandem_parameters->setParamLabelValue( _current_label, _current_text.simplified()); } -- GitLab