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
66bbf2c9
Commit
66bbf2c9
authored
8 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Mantis-1254: keep Execute button disabled when processing
parent
594d18c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetModel.h
+2
-0
2 additions, 0 deletions
Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetModel.h
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx
+10
-3
10 additions, 3 deletions
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx
with
12 additions
and
3 deletions
Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetModel.h
+
2
−
0
View file @
66bbf2c9
...
...
@@ -169,6 +169,8 @@ private:
Application
::
Pointer
m_Application
;
QtLogOutput
::
Pointer
m_LogOutput
;
bool
m_IsRunning
;
};
...
...
This diff is collapsed.
Click to expand it.
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetModel.cxx
+
10
−
3
View file @
66bbf2c9
...
...
@@ -26,7 +26,8 @@ namespace Wrapper
QtWidgetModel
::
QtWidgetModel
(
Application
*
app
)
:
m_Application
(
app
),
m_LogOutput
()
m_LogOutput
(),
m_IsRunning
(
false
)
{
// Init only if not already done
if
(
!
m_Application
->
IsInitialized
())
...
...
@@ -54,8 +55,11 @@ QtWidgetModel
emit
UpdateGui
();
// Notify all
bool
applicationStatus
=
m_Application
->
IsApplicationReady
();
emit
SetApplicationReady
(
applicationStatus
);
if
(
!
m_IsRunning
)
{
bool
applicationStatus
=
m_Application
->
IsApplicationReady
();
emit
SetApplicationReady
(
applicationStatus
);
}
}
void
...
...
@@ -64,6 +68,7 @@ QtWidgetModel
{
// Deactivate the Execute button while processing
emit
SetApplicationReady
(
false
);
m_IsRunning
=
true
;
// launch the output image writing
AppliThread
*
taskAppli
=
new
AppliThread
(
m_Application
);
...
...
@@ -94,6 +99,8 @@ void
QtWidgetModel
::
OnApplicationExecutionDone
(
int
status
)
{
m_IsRunning
=
false
;
// Require GUI update.
NotifyUpdate
();
...
...
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