Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xtpcpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
PAPPSO
xtpcpp
Commits
52bbe6dc
Commit
52bbe6dc
authored
7 years ago
by
Olivier Langella
Browse files
Options
Downloads
Patches
Plain Diff
new tandem preset user interface file
parent
62f42894
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui
+119
-0
119 additions, 0 deletions
...ui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui
src/input/xtandemparamsaxhandler.cpp
+4
-4
4 additions, 4 deletions
src/input/xtandemparamsaxhandler.cpp
with
123 additions
and
4 deletions
src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui
0 → 100644
+
119
−
0
View file @
52bbe6dc
<?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>
This diff is collapsed.
Click to expand it.
src/input/xtandemparamsaxhandler.cpp
+
4
−
4
View file @
52bbe6dc
...
@@ -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
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment