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
1847afc6
Commit
1847afc6
authored
Mar 13, 2013
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADD: test for TreeWidget fill
parent
588c8a6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
0 deletions
+78
-0
Testing/Common/CMakeLists.txt
Testing/Common/CMakeLists.txt
+8
-0
Testing/Common/mvdCommonTests.cxx
Testing/Common/mvdCommonTests.cxx
+1
-0
Testing/Common/mvdFillToolBoxWidgetTreeTest.cxx
Testing/Common/mvdFillToolBoxWidgetTreeTest.cxx
+69
-0
No files found.
Testing/Common/CMakeLists.txt
View file @
1847afc6
...
...
@@ -23,6 +23,7 @@ include_directories(
set
(
Common_SRCS
mvdApplicationsToolBoxTest.cxx
mvdApplicationsBrowserTest.cxx
mvdFillToolBoxWidgetTreeTest.cxx
)
#-------------- Monteverdi Common Tests ---------------------------------
...
...
@@ -36,6 +37,13 @@ add_test(apTvMonteverdi2ApplicationsBrowser ${Common_TESTS}
${
OTB_DIR
}
/bin
)
# Fill ToolBox algorithms tree
add_test
(
apTvMonteverdi2FillToolBoxTree
${
Common_TESTS
}
mvdFillToolBoxWidgetTreeTest
${
OTB_DIR
}
/bin
)
add_executable
(
mvdCommonTests mvdCommonTests.cxx
${
Common_SRCS
}
)
target_link_libraries
(
mvdCommonTests Monteverdi2_Common OTBTesting
)
...
...
Testing/Common/mvdCommonTests.cxx
View file @
1847afc6
...
...
@@ -28,4 +28,5 @@ void RegisterTests()
{
REGISTER_TEST
(
mvdApplicationsToolBoxTest
);
REGISTER_TEST
(
mvdApplicationsBrowserTest
);
REGISTER_TEST
(
mvdFillToolBoxWidgetTreeTest
);
}
Testing/Common/mvdFillToolBoxWidgetTreeTest.cxx
0 → 100644
View file @
1847afc6
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
//
// Configuration include.
//// Included at first position before any other ones.
#include "ConfigureMonteverdi2.h"
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
//
// System includes (sorted by alphabetic order)
// Monteverdi includes (sorted by alphabetic order)
#include "mvdApplicationsToolBox.h"
#include "mvdApplicationsBrowser.h"
int
mvdFillToolBoxWidgetTreeTest
(
int
argc
,
char
*
argv
[])
{
//
// instanciate the algorithms toolbox widget
QApplication
app
(
argc
,
argv
);
mvd
::
ApplicationsToolBox
*
appToolBox
=
new
mvd
::
ApplicationsToolBox
();
//
// instanciate applications browser
mvd
::
ApplicationsBrowser
*
browser
=
new
mvd
::
ApplicationsBrowser
();
//
// connections
QObject
::
connect
(
browser
,
SIGNAL
(
AvailableApplicationsTagsChanged
(
const
ApplicationsTagContainer
&
)
),
appToolBox
,
SLOT
(
OnAvailableApplicationsTagsChanged
(
const
ApplicationsTagContainer
&
)
)
);
//
// is search path set
if
(
argc
>
1
)
{
browser
->
SetAutoLoadPath
(
argv
[
1
]);
}
//
// get the algorithms/tags map container in the widget
browser
->
SearchAvailableApplicationsTags
();
//
// show the application for a while
appToolBox
->
show
();
QTimer
::
singleShot
(
1000
,
&
app
,
SLOT
(
quit
()));
return
app
.
exec
();
}
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