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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
9b3413fb
Commit
9b3413fb
authored
6 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: fix indent
parent
f251dee3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
+20
-20
20 additions, 20 deletions
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
with
20 additions
and
20 deletions
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
+
20
−
20
View file @
9b3413fb
...
...
@@ -73,17 +73,17 @@ int main(int argc, char* argv[])
parameterTypeToString
[
ParameterType_OutputVectorData
]
=
"QgsProcessingParameterVectorDestination"
;
parameterTypeToString
[
ParameterType_OutputFilename
]
=
"QgsProcessingParameterFileDestination"
;
parameterTypeToString
[
ParameterType_Directory
]
=
"QgsProcessingParameterFile"
;
//TODO
//
TODO
parameterTypeToString
[
ParameterType_StringList
]
=
"QgsProcessingParameterString"
;
//ListView parameters are treated as plain string (QLineEdit) in qgis processing ui.
//This seems rather unpleasant when comparing Qgis processing with Monteverdi/Mapla in OTB
//We tried to push something simple with checkboxes but its too risky for this version
//and clock is ticking...
//
//
ListView parameters are treated as plain string (QLineEdit) in qgis processing ui.
//
This seems rather unpleasant when comparing Qgis processing with Monteverdi/Mapla in OTB
//
We tried to push something simple with checkboxes but its too risky for this version
//
and clock is ticking...
parameterTypeToString
[
ParameterType_ListView
]
=
"QgsProcessingParameterString"
;
//For next update of plugin code ListView should use a custom widget wrapper and behave
//exactly like OTB Mapla. And this #if 0 block is our TODO remainder.
//
For next update of plugin code ListView should use a custom widget wrapper and behave
//
exactly like OTB Mapla. And this #if 0 block is our TODO remainder.
#if 0
parameterTypeToString[ParameterType_ListView] = "OTBParameterListView";
#endif
...
...
@@ -163,9 +163,9 @@ int main(int argc, char* argv[])
)
{
// group parameter cannot have any value.
//outxml and inxml parameters are not relevant for QGIS and is considered a bit noisy
//ram is added by qgis-otb processing provider plugin as an advanced parameter for all apps
//parameter role cannot be of type Role_Output
//
outxml and inxml parameters are not relevant for QGIS and is considered a bit noisy
//
ram is added by qgis-otb processing provider plugin as an advanced parameter for all apps
//
parameter role cannot be of type Role_Output
continue
;
}
...
...
@@ -179,8 +179,8 @@ int main(int argc, char* argv[])
bool
isDestination
=
false
;
bool
isEpsgCode
=
false
;
//use QgsProcessingParameterCrs if required.
//TODO: do a regex on name to match ==epsg || *\.epsg.\*
//
use QgsProcessingParameterCrs if required.
//
TODO: do a regex on name to match ==epsg || *\.epsg.\*
if
(
name
==
"epsg"
||
name
==
"map.epsg.code"
||
name
==
"mapproj.epsg.code"
...
...
@@ -244,19 +244,19 @@ int main(int argc, char* argv[])
}
else
if
(
type
==
ParameterType_InputImage
)
{
//default is None and nothing to add to dFile
//
default is None and nothing to add to dFile
}
else
if
(
type
==
ParameterType_String
)
{
//default is None and nothing to add to dFile
//
default is None and nothing to add to dFile
}
else
if
(
type
==
ParameterType_StringList
)
{
//default is None and nothing to add to dFile
//
default is None and nothing to add to dFile
}
else
if
(
type
==
ParameterType_ListView
)
{
//default is None and nothing to add to dFile
//
default is None and nothing to add to dFile
}
else
if
(
type
==
ParameterType_Bool
)
{
...
...
@@ -278,9 +278,9 @@ int main(int argc, char* argv[])
type
==
ParameterType_OutputImage
||
type
==
ParameterType_OutputFilename
)
{
//
n
o need for default_value, optional and extra fields in dFile
//
i
f parameter is a destination type. qgis_type|name|description is enough.
//
s
o we simply set isDestination to true and skip to end to append a new line.
//
N
o need for default_value, optional and extra fields in dFile
.
//
I
f parameter is a destination type. qgis_type|name|description is enough.
//
S
o we simply set isDestination to true and skip to end to append a new line.
isDestination
=
true
;
}
else
...
...
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