projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compile error. Non initialized variable.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
tool-bar
/
tool-bar-impl.cpp
diff --git
a/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp
b/dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp
index
aea6c50
..
33431c9
100644
(file)
--- a/
dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp
+++ b/
dali-toolkit/internal/controls/tool-bar/tool-bar-impl.cpp
@@
-24,7
+24,7
@@
#include <dali/public-api/object/type-registry-helper.h>
// INTERNAL INCLUDES
#include <dali/public-api/object/type-registry-helper.h>
// INTERNAL INCLUDES
-#include <dali-toolkit/
public
-api/controls/alignment/alignment.h>
+#include <dali-toolkit/
devel
-api/controls/alignment/alignment.h>
namespace Dali
{
namespace Dali
{
@@
-47,7
+47,7
@@
DALI_TYPE_REGISTRATION_BEGIN( Toolkit::ToolBar, Toolkit::Control, Create )
DALI_TYPE_REGISTRATION_END()
const float DEFAULT_RELATIVE_SIZE( 0.1f );
DALI_TYPE_REGISTRATION_END()
const float DEFAULT_RELATIVE_SIZE( 0.1f );
-const Toolkit::Alignment::Type DEFAULT_ALIGNMENT( Toolkit::Alignment::H
orizontalLeft
);
+const Toolkit::Alignment::Type DEFAULT_ALIGNMENT( Toolkit::Alignment::H
ORIZONTAL_LEFT
);
} // namespace
Toolkit::ToolBar ToolBar::New()
} // namespace
Toolkit::ToolBar ToolBar::New()
@@
-71,7
+71,7
@@
void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment:
unsigned int index = 0;
switch( alignment )
{
unsigned int index = 0;
switch( alignment )
{
- case Toolkit::Alignment::H
orizontalLeft
:
+ case Toolkit::Alignment::H
ORIZONTAL_LEFT
:
{
index = mLeftOffset;
++mLeftOffset;
{
index = mLeftOffset;
++mLeftOffset;
@@
-79,14
+79,14
@@
void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment:
++mRightBase;
break;
}
++mRightBase;
break;
}
- case Toolkit::Alignment::H
orizontalCenter
:
+ case Toolkit::Alignment::H
ORIZONTAL_CENTER
:
{
index = mCenterBase + mCenterOffset;
++mCenterOffset;
++mRightBase;
break;
}
{
index = mCenterBase + mCenterOffset;
++mCenterOffset;
++mRightBase;
break;
}
- case Toolkit::Alignment::H
orizontalRight
:
+ case Toolkit::Alignment::H
ORIZONTAL_RIGHT
:
{
index = mRightBase - mRightOffset;
++mRightBase;
{
index = mRightBase - mRightOffset;
++mRightBase;
@@
-122,7
+122,7
@@
void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment:
// Update spaces between left, center and right groups of controls.
switch( alignment )
{
// Update spaces between left, center and right groups of controls.
switch( alignment )
{
- case Toolkit::Alignment::H
orizontalLeft
:
+ case Toolkit::Alignment::H
ORIZONTAL_LEFT
:
{
mLeftRelativeSpace -= relativeSize;
if ( mLeftRelativeSpace < 0.f )
{
mLeftRelativeSpace -= relativeSize;
if ( mLeftRelativeSpace < 0.f )
@@
-131,7
+131,7
@@
void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment:
}
break;
}
}
break;
}
- case Toolkit::Alignment::H
orizontalCenter
:
+ case Toolkit::Alignment::H
ORIZONTAL_CENTER
:
{
mLeftRelativeSpace -= 0.5f * relativeSize;
if ( mLeftRelativeSpace < 0.f )
{
mLeftRelativeSpace -= 0.5f * relativeSize;
if ( mLeftRelativeSpace < 0.f )
@@
-145,7
+145,7
@@
void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment:
}
break;
}
}
break;
}
- case Toolkit::Alignment::H
orizontalRight
:
+ case Toolkit::Alignment::H
ORIZONTAL_RIGHT
:
{
mRightRelativeSpace -= relativeSize;
if ( mRightRelativeSpace < 0.f )
{
mRightRelativeSpace -= relativeSize;
if ( mRightRelativeSpace < 0.f )
@@
-179,18
+179,18
@@
void ToolBar::RemoveControl( Actor control )
// Update spaces between left, center and right groups of controls.
if( 1.0 > mAccumulatedRelativeSpace )
{
// Update spaces between left, center and right groups of controls.
if( 1.0 > mAccumulatedRelativeSpace )
{
- Toolkit::Alignment::Type alignment = Toolkit::Alignment::H
orizontalLeft
;
+ Toolkit::Alignment::Type alignment = Toolkit::Alignment::H
ORIZONTAL_LEFT
;
if( position.columnIndex < mLeftOffset )
{
if( position.columnIndex < mLeftOffset )
{
- alignment = Toolkit::Alignment::H
orizontalLeft
;
+ alignment = Toolkit::Alignment::H
ORIZONTAL_LEFT
;
}
else if( ( position.columnIndex > mLeftOffset ) && ( position.columnIndex < mCenterBase + mCenterOffset ) )
{
}
else if( ( position.columnIndex > mLeftOffset ) && ( position.columnIndex < mCenterBase + mCenterOffset ) )
{
- alignment = Toolkit::Alignment::H
orizontalCenter
;
+ alignment = Toolkit::Alignment::H
ORIZONTAL_CENTER
;
}
else if( position.columnIndex > mCenterBase + mCenterOffset )
{
}
else if( position.columnIndex > mCenterBase + mCenterOffset )
{
- alignment = Toolkit::Alignment::H
orizontalRight
;
+ alignment = Toolkit::Alignment::H
ORIZONTAL_RIGHT
;
}
else
{
}
else
{
@@
-201,7
+201,7
@@
void ToolBar::RemoveControl( Actor control )
switch( alignment )
{
switch( alignment )
{
- case Toolkit::Alignment::H
orizontalLeft
:
+ case Toolkit::Alignment::H
ORIZONTAL_LEFT
:
{
mLeftRelativeSpace += relativeSize;
if ( mLeftRelativeSpace < 0.f )
{
mLeftRelativeSpace += relativeSize;
if ( mLeftRelativeSpace < 0.f )
@@
-210,7
+210,7
@@
void ToolBar::RemoveControl( Actor control )
}
break;
}
}
break;
}
- case Toolkit::Alignment::H
orizontalCenter
:
+ case Toolkit::Alignment::H
ORIZONTAL_CENTER
:
{
mLeftRelativeSpace += 0.5f * relativeSize;
if ( mLeftRelativeSpace < 0.f )
{
mLeftRelativeSpace += 0.5f * relativeSize;
if ( mLeftRelativeSpace < 0.f )
@@
-224,7
+224,7
@@
void ToolBar::RemoveControl( Actor control )
}
break;
}
}
break;
}
- case Toolkit::Alignment::H
orizontalRight
:
+ case Toolkit::Alignment::H
ORIZONTAL_RIGHT
:
{
mRightRelativeSpace += relativeSize;
if ( mRightRelativeSpace < 0.f )
{
mRightRelativeSpace += relativeSize;
if ( mRightRelativeSpace < 0.f )