Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
9941b80c
Commit
9941b80c
authored
Mar 13, 2013
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: comments
parent
6fd8858c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
Code/Common/Gui/mvdApplicationsToolBox.cxx
Code/Common/Gui/mvdApplicationsToolBox.cxx
+8
-7
Testing/Common/mvdFillToolBoxWidgetTreeTest.cxx
Testing/Common/mvdFillToolBoxWidgetTreeTest.cxx
+1
-1
No files found.
Code/Common/Gui/mvdApplicationsToolBox.cxx
View file @
9941b80c
...
...
@@ -99,24 +99,25 @@ ApplicationsToolBox
mainItem
->
setText
(
0
,
"Orfeo Toolbox Algorithms"
);
//
//
// Fill the map as following
// - key -> tag
// - value -> list of applications having this tag
ApplicationsTagContainer
::
const_iterator
itTag
=
m_AppTags
.
begin
();
while
(
itTag
!=
m_AppTags
.
end
()
)
{
//
Step # 1 -> Tag as a main item
// s
et current t
ag as a main item
//
// s
tep # 1 -> T
ag as a main item
QTreeWidgetItem
*
cmainItem
=
new
QTreeWidgetItem
(
mainItem
);
QString
qcurrentMainItem
(
(
*
itTag
).
first
.
c_str
()
);
cmainItem
->
setText
(
0
,
qcurrentMainItem
);
//
// step #2 -> Applications name as secondary items
// iterate over the StringVector containing the apps relative to
// this tag
StringVector
::
const_iterator
itApps
=
(
*
itTag
).
second
.
begin
();
while
(
itApps
!=
(
*
itTag
).
second
.
end
()
)
{
//
// set current
tag as main
item
// set current
application name as secondary
item
QTreeWidgetItem
*
secItem
=
new
QTreeWidgetItem
(
cmainItem
);
QString
qcurrentSecItem
(
(
*
itApps
).
c_str
()
);
secItem
->
setText
(
0
,
qcurrentSecItem
);
...
...
Testing/Common/mvdFillToolBoxWidgetTreeTest.cxx
View file @
9941b80c
...
...
@@ -58,7 +58,7 @@ int mvdFillToolBoxWidgetTreeTest(int argc, char* argv[])
}
//
// get the
algorithms/ta
gs map container in the widget
// get the
tags/al
gs map container in the widget
browser
->
SearchAvailableApplicationsTags
();
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment