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

new tandem preset user interface file

parent 62f42894
No related branches found
No related tags found
No related merge requests found
<?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>
...@@ -41,7 +41,7 @@ XtandemParamSaxHandler::~XtandemParamSaxHandler() { ...@@ -41,7 +41,7 @@ XtandemParamSaxHandler::~XtandemParamSaxHandler() {
bool XtandemParamSaxHandler::startElement(const QString & namespaceURI, const QString & localName, bool XtandemParamSaxHandler::startElement(const QString & namespaceURI, const QString & localName,
const QString & qName, const QXmlAttributes & attributes) { 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); _tag_stack.push_back(qName);
bool is_ok = true; bool is_ok = true;
...@@ -134,20 +134,20 @@ bool XtandemParamSaxHandler::characters(const QString &str) { ...@@ -134,20 +134,20 @@ bool XtandemParamSaxHandler::characters(const QString &str) {
} }
bool XtandemParamSaxHandler::startElement_note(QXmlAttributes attributes) { bool XtandemParamSaxHandler::startElement_note(QXmlAttributes attributes) {
qDebug() << "XtandemParamSaxHandler::startElement_note begin " << attributes.value("type"); //qDebug() << "XtandemParamSaxHandler::startElement_note begin " << attributes.value("type");
_current_label = ""; _current_label = "";
if (attributes.value("type") == "input") { if (attributes.value("type") == "input") {
_current_label = attributes.value("label"); _current_label = attributes.value("label");
} }
qDebug() << "XtandemParamSaxHandler::startElement_note _current_label " << _current_label; // qDebug() << "XtandemParamSaxHandler::startElement_note _current_label " << _current_label;
return true; return true;
} }
bool XtandemParamSaxHandler::endElement_note() { 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()) { if (!_current_label.isEmpty()) {
_p_tandem_parameters->setParamLabelValue( _current_label, _current_text.simplified()); _p_tandem_parameters->setParamLabelValue( _current_label, _current_text.simplified());
} }
......
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