Commit 90da89da authored by Langella Olivier's avatar Langella Olivier
Browse files

WIP: building tandem param form

parent 7d070b93
......@@ -2,11 +2,14 @@
<ui version="4.0">
<class>EditTandemPresetView</class>
<widget class="QDialog" name="EditTandemPresetView">
<property name="windowModality">
<enum>Qt::ApplicationModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>875</width>
<width>1000</width>
<height>580</height>
</rect>
</property>
......@@ -108,7 +111,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>567</width>
<width>656</width>
<height>198</height>
</rect>
</property>
......@@ -130,7 +133,7 @@
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="parent_ion_window_unit_combo_push_button">
<widget class="QPushButton" name="parent_ion_window_unit_push_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -311,7 +314,7 @@
</layout>
</widget>
</widget>
<widget class="QPlainTextEdit" name="plainTextEdit">
<widget class="QTextEdit" name="doc_plain_text_edit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......@@ -415,7 +418,7 @@
</hints>
</connection>
<connection>
<sender>parent_ion_window_unit_combo_push_button</sender>
<sender>parent_ion_window_unit_push_button</sender>
<signal>clicked()</signal>
<receiver>EditTandemPresetView</receiver>
<slot>doHelp()</slot>
......
......@@ -73,7 +73,18 @@ void EditTandemPresetDialog::doHelp() {
qDebug() << "EditTandemPresetDialog::doHelp begin " << senderObjName;
if(senderObjName == "parent_ion_window_unit_push_button")
{
//Implement Button A Specific
//spmmeu.html
QFile html_doc(":/tandem/resources/html_doc/spmmeu.html");
if (html_doc.open(QFile::ReadOnly | QFile::Text)) {
QTextStream in(&html_doc);
ui->doc_plain_text_edit->setHtml(in.readAll());
qDebug() << "EditTandemPresetDialog::doHelp doc " << in.readAll();
}
else {
qDebug() << "EditTandemPresetDialog::doHelp doc not found";
}
}
qDebug() << "EditTandemPresetDialog::doHelp end " << senderObjName;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment