Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
4e01052c
Commit
4e01052c
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: empty parameter support (WIP)
parent
1c069b33
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx
+11
-10
11 additions, 10 deletions
Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx
Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h
+4
-0
4 additions, 0 deletions
Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h
with
15 additions
and
10 deletions
Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx
+
11
−
10
View file @
4e01052c
...
...
@@ -23,7 +23,8 @@ namespace Wrapper
{
QtWidgetEmptyParameter
::
QtWidgetEmptyParameter
(
EmptyParameter
*
emptyParam
,
QtWidgetModel
*
m
)
:
QtWidgetParameterBase
(
m
)
:
QtWidgetParameterBase
(
m
),
m_EmptyParam
(
emptyParam
)
{
}
...
...
@@ -39,18 +40,18 @@ void QtWidgetEmptyParameter::DoUpdateGUI()
void
QtWidgetEmptyParameter
::
DoCreateWidget
()
{
// Set up input text edit
QHBoxLayout
*
hLayout
=
new
QHBoxLayout
;
h
Layout
->
setSpacing
(
0
);
h
Layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
m_
QHBoxLayout
=
new
QHBoxLayout
;
m_QHBox
Layout
->
setSpacing
(
0
);
m_QHBox
Layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
//
QCheckBox
* checkbox
= new QCheckBox;
//c
heck
b
ox->setToolTip(
e
mptyParam->GetDescription());
m_
QCheckBox
=
new
QCheckBox
;
m_QC
heck
B
ox
->
setToolTip
(
m_E
mptyParam
->
GetDescription
());
//
QString optionID(
e
mptyParam->GetName());
//h
Layout->addWidget(
c
heck
b
ox);
h
Layout
->
addStretch
();
QString
optionID
(
m_E
mptyParam
->
GetName
());
m_QHBox
Layout
->
addWidget
(
m_QC
heck
B
ox
);
m_QHBox
Layout
->
addStretch
();
this
->
setLayout
(
h
Layout
);
this
->
setLayout
(
m_QHBox
Layout
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h
+
4
−
0
View file @
4e01052c
...
...
@@ -45,6 +45,10 @@ private:
virtual
void
DoCreateWidget
();
virtual
void
DoUpdateGUI
();
QHBoxLayout
*
m_QHBoxLayout
;
QCheckBox
*
m_QCheckBox
;
EmptyParameter
::
Pointer
m_EmptyParam
;
};
...
...
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