Commits

Stéphane ALBERT committed aeba127

BUG: MANTIS-756 (OTB-app ApplicationReady flag not correctly set).

Comments (0)

Files changed (2)

Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetFileSelection.cxx

 
   m_Input = new DropLineEdit( this );
   // m_Input->setFrameShape(QFrame::Box);
-  m_Input->setText(tr("Drag and drop a dataset here."));
+  m_Input->setToolTip( "Drag and drop a dataset here." );
+  // m_Input->setText( tr( "Drag and drop a dataset here." ) );
   m_HLayout->addWidget(m_Input);
   QObject::connect(
     m_Input, SIGNAL( textChanged( const QString& ) ),
     // set the filename
     m_Input->setText( QString( ofname.data() ) );
 
+#if 0
+    // QLabel replaced by QLineEdit.
     // since QLabel does not emit signal when textChanged, raise a signal
     // in the code
     emit textChanged( QString( ofname.data() ) );
+#endif
     }
   else if ( event->mimeData()->hasFormat("application/x-qabstractitemmodeldatalist") )
     {
     // set the filename
     m_Input->setText( ofname);
 
+#if 0
+    // QLabel replaced by QLineEdit.
     // since QLabel does not emit signal when textChanged, raise a signal
     // in the code
     emit textChanged( ofname );
+#endif
     }
 }
 #endif

Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetParameterFactory.cxx

     }
 
   if (0) {}
-  CREATEWIDGET(otb::Wrapper::EmptyParameter,          
+  CREATEWIDGET(otb::Wrapper::EmptyParameter,
                otb::Wrapper::QtWidgetEmptyParameter)
-  CREATEWIDGET(otb::Wrapper::IntParameter,            
+
+  CREATEWIDGET(otb::Wrapper::IntParameter,
                otb::Wrapper::QtWidgetIntParameter)
-  CREATEWIDGET(otb::Wrapper::FloatParameter,          
+
+  CREATEWIDGET(otb::Wrapper::FloatParameter,
                otb::Wrapper::QtWidgetFloatParameter)
-  CREATEWIDGET(otb::Wrapper::InputFilenameParameter,       
+
+  CREATEWIDGET(otb::Wrapper::InputFilenameParameter,
                otb::Wrapper::QtWidgetInputFilenameParameter)
-  CREATEWIDGET(otb::Wrapper::InputFilenameListParameter,       
+
+  CREATEWIDGET(otb::Wrapper::InputFilenameListParameter,
                otb::Wrapper::QtWidgetInputFilenameListParameter)
-  CREATEWIDGET(otb::Wrapper::OutputFilenameParameter,       
-               otb::Wrapper::QtWidgetOutputFilenameParameter)
-  CREATEWIDGET(otb::Wrapper::DirectoryParameter,      
+
+  CREATEWIDGET(otb::Wrapper::OutputFilenameParameter,
+	       otb::Wrapper::QtWidgetOutputFilenameParameter)
+
+    CREATEWIDGET(otb::Wrapper::DirectoryParameter,
                otb::Wrapper::QtWidgetDirectoryParameter)
-  CREATEWIDGET(otb::Wrapper::StringParameter,         
-               otb::Wrapper::QtWidgetStringParameter)
-  CREATEWIDGET(otb::Wrapper::StringListParameter,     
+
+  CREATEWIDGET(otb::Wrapper::StringParameter,
+	       otb::Wrapper::QtWidgetStringParameter)
+
+  CREATEWIDGET(otb::Wrapper::StringListParameter,
                otb::Wrapper::QtWidgetStringListParameter)
-  CREATEWIDGET(otb::Wrapper::ChoiceParameter,         
+
+  CREATEWIDGET(otb::Wrapper::ChoiceParameter,
                mvd::Wrapper::QtWidgetChoiceParameter)
-  CREATEWIDGET(otb::Wrapper::ListViewParameter,       
+
+  CREATEWIDGET(otb::Wrapper::ListViewParameter,
                otb::Wrapper::QtWidgetListViewParameter)
-  CREATEWIDGET(otb::Wrapper::InputImageParameter,     
-               mvd::Wrapper::QtWidgetInputImageParameter)
-  CREATEWIDGET(otb::Wrapper::ComplexInputImageParameter,  
-               otb::Wrapper::QtWidgetComplexInputImageParameter)
-  CREATEWIDGET(otb::Wrapper::ComplexOutputImageParameter,     
+
+  CREATEWIDGET(otb::Wrapper::InputImageParameter,
+	       mvd::Wrapper::QtWidgetInputImageParameter)
+
+  CREATEWIDGET(otb::Wrapper::ComplexInputImageParameter,
+	       otb::Wrapper::QtWidgetComplexInputImageParameter)
+
+  CREATEWIDGET(otb::Wrapper::ComplexOutputImageParameter,
                otb::Wrapper::QtWidgetComplexOutputImageParameter)
-  CREATEWIDGET(otb::Wrapper::InputImageListParameter, 
+
+  CREATEWIDGET(otb::Wrapper::InputImageListParameter,
                mvd::Wrapper::QtWidgetInputImageListParameter)
-  CREATEWIDGET(otb::Wrapper::InputVectorDataListParameter, 
+
+  CREATEWIDGET(otb::Wrapper::InputVectorDataListParameter,
                otb::Wrapper::QtWidgetInputVectorDataListParameter)
-  CREATEWIDGET(otb::Wrapper::InputVectorDataParameter, 
+
+  CREATEWIDGET(otb::Wrapper::InputVectorDataParameter,
                otb::Wrapper::QtWidgetInputVectorDataParameter)
-  CREATEWIDGET(otb::Wrapper::OutputImageParameter,    
+
+  CREATEWIDGET(otb::Wrapper::OutputImageParameter,
                otb::Wrapper::QtWidgetOutputImageParameter)
-  CREATEWIDGET(otb::Wrapper::OutputVectorDataParameter, 
+
+  CREATEWIDGET(otb::Wrapper::OutputVectorDataParameter,
                otb::Wrapper::QtWidgetOutputVectorDataParameter)
-  CREATEWIDGET(otb::Wrapper::EmptyParameter,          
+
+  CREATEWIDGET(otb::Wrapper::EmptyParameter,
                otb::Wrapper::QtWidgetEmptyParameter)
-  CREATEWIDGET(otb::Wrapper::ParameterGroup,          
+
+  CREATEWIDGET(otb::Wrapper::ParameterGroup,
                mvd::Wrapper::QtWidgetParameterGroup)
-  CREATEWIDGET(otb::Wrapper::RAMParameter,            
+
+  CREATEWIDGET(otb::Wrapper::RAMParameter,
                otb::Wrapper::QtWidgetRAMParameter)
+
 #if OTB_VERSION_CHECK( 3, 18, 2 )
-  CREATEWIDGET(otb::Wrapper::OutputProcessXMLParameter,        
+  CREATEWIDGET(otb::Wrapper::OutputProcessXMLParameter,
                otb::Wrapper::QtWidgetOutputProcessXMLParameter)
+
   CREATEWIDGET(otb::Wrapper::InputProcessXMLParameter,
                otb::Wrapper::QtWidgetInputProcessXMLParameter)
 #endif