Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
76779f20
Commit
76779f20
authored
Aug 22, 2016
by
Stéphane Albert
Browse files
COMP: Fixed missing renaming of mvd::MaplaApplication.
parent
24d1201f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Modules/Visualization/Mapla/include/mvdMaplaApplication.h
View file @
76779f20
...
...
@@ -65,10 +65,10 @@ class OTBApplicationsModel;
/*****************************************************************************/
/* CLASS DEFINITION SECTION */
/** \class Application
/** \class
Mapla
Application
*
*/
class
Monteverdi_EXPORT
Application
class
Monteverdi_EXPORT
Mapla
Application
:
public
I18nApplication
{
...
...
@@ -91,27 +91,27 @@ public:
*
* \param qtApp The parent Qt application (\see I18nApplication).
*/
Application
(
QApplication
*
qtApp
);
Mapla
Application
(
QApplication
*
qtApp
);
/** \brief Destructor. */
virtual
~
Application
();
virtual
~
Mapla
Application
();
//
// STATIC METHODS.
/**
* \brief Access the const instance of application singleton.
* \return The const instance to the singleton Application.
* \return The const instance to the singleton
Mapla
Application.
*/
inline
static
const
Application
*
ConstInstance
();
static
const
Mapla
Application
*
ConstInstance
();
/**
* \brief Access the non-const instance of application singleton.
* \return The non-const instance to the singleton Application.
* \return The non-const instance to the singleton
Mapla
Application.
*/
inline
static
Application
*
Instance
();
static
Mapla
Application
*
Instance
();
/**
*/
...
...
@@ -166,20 +166,20 @@ namespace mvd
/*****************************************************************************/
inline
const
Application
*
Application
const
Mapla
Application
*
Mapla
Application
::
ConstInstance
()
{
return
I18nCoreApplication
::
ConstInstance
<
Application
>
();
return
I18nCoreApplication
::
ConstInstance
<
Mapla
Application
>
();
}
/*****************************************************************************/
inline
Application
*
Application
Mapla
Application
*
Mapla
Application
::
Instance
()
{
return
I18nCoreApplication
::
Instance
<
Application
>
();
return
I18nCoreApplication
::
Instance
<
Mapla
Application
>
();
}
}
// end namespace 'mvd'
...
...
Modules/Visualization/Mapla/src/main.cxx
View file @
76779f20
...
...
@@ -82,11 +82,11 @@ main( int argc, char* argv[] )
//
// Coverity-14835
// {
mvd
::
Application
*
application
=
NULL
;
mvd
::
Mapla
Application
*
application
=
NULL
;
try
{
application
=
new
mvd
::
Application
(
&
qtApp
);
application
=
new
mvd
::
Mapla
Application
(
&
qtApp
);
assert
(
application
!=
NULL
);
application
->
Initialize
();
...
...
@@ -119,7 +119,7 @@ main( int argc, char* argv[] )
//
// 2. Initialize main-window (UI).
mvd
::
MainWindow
mainWindow
;
mvd
::
Mapla
MainWindow
mainWindow
;
mainWindow
.
Initialize
();
application
->
Foo
();
...
...
Modules/Visualization/Mapla/src/mvdMaplaApplication.cxx
View file @
76779f20
...
...
@@ -64,26 +64,26 @@ namespace mvd
/* CLASS IMPLEMENTATION SECTION */
/*******************************************************************************/
Application
::
Application
(
QApplication
*
qtApp
)
:
Mapla
Application
::
Mapla
Application
(
QApplication
*
qtApp
)
:
I18nApplication
(
qtApp
)
{
}
/*******************************************************************************/
Application
::~
Application
()
Mapla
Application
::~
Mapla
Application
()
{
}
/*******************************************************************************/
void
Application
Mapla
Application
::
virtual_InitializeCore
()
{
I18nApplication
::
virtual_InitializeCore
();
setObjectName
(
"Application"
);
setObjectName
(
"
Mapla
Application"
);
InitializeCore
(
"Monteverdi Application Launcher"
,
Monteverdi_VERSION_STRING
,
...
...
@@ -93,7 +93,7 @@ Application
/*******************************************************************************/
void
Application
Mapla
Application
::
Foo
()
{
SetModel
(
new
OTBApplicationsModel
(
this
)
);
...
...
Modules/Visualization/Mapla/src/mvdMaplaMainWindow.cxx
View file @
76779f20
...
...
@@ -117,7 +117,7 @@ MaplaMainWindow
this
);
assert
(
Application
::
Instance
()
);
assert
(
Mapla
Application
::
Instance
()
);
setCentralWidget
(
m_ApplicationsToolBoxController
->
GetWidget
()
);
...
...
@@ -163,10 +163,10 @@ void
MaplaMainWindow
::
closeEvent
(
QCloseEvent
*
event
)
{
assert
(
Application
::
Instance
()
);
assert
(
Mapla
Application
::
Instance
()
);
assert
(
Application
::
Instance
()
->
GetModel
()
==
Application
::
Instance
()
->
GetModel
<
OTBApplicationsModel
>
()
Mapla
Application
::
Instance
()
->
GetModel
()
==
Mapla
Application
::
Instance
()
->
GetModel
<
OTBApplicationsModel
>
()
);
SaveLayout
(
Monteverdi_UI_VERSION
);
...
...
@@ -216,20 +216,20 @@ MaplaMainWindow
{
#ifdef OTB_USE_QT4
assert
(
Application
::
ConstInstance
()
!=
NULL
);
assert
(
Application
::
ConstInstance
()
->
GetModel
()
!=
NULL
);
assert
(
Mapla
Application
::
ConstInstance
()
!=
NULL
);
assert
(
Mapla
Application
::
ConstInstance
()
->
GetModel
()
!=
NULL
);
assert
(
Application
::
ConstInstance
()
->
GetModel
()
==
Application
::
ConstInstance
()
->
GetModel
<
OTBApplicationsModel
>
()
Mapla
Application
::
ConstInstance
()
->
GetModel
()
==
Mapla
Application
::
ConstInstance
()
->
GetModel
<
OTBApplicationsModel
>
()
);
assert
(
Application
::
ConstInstance
()
Mapla
Application
::
ConstInstance
()
->
GetModel
<
OTBApplicationsModel
>
()
->
GetLauncher
()
!=
NULL
);
QWidget
*
appWindow
=
Application
::
ConstInstance
()
Mapla
Application
::
ConstInstance
()
->
GetModel
<
OTBApplicationsModel
>
()
->
GetLauncher
()
->
NewOtbApplicationWindow
(
appName
,
true
,
this
);
...
...
Write
Preview
Supports
Markdown
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