forked from organicmaps/organicmaps
[Tizen] Add pro version png.
Add menu event listener.
This commit is contained in:
parent
ab21befe8c
commit
ea00c6e665
5 changed files with 21 additions and 4 deletions
|
@ -23,6 +23,7 @@ class MapsWithMeForm
|
|||
, public Tizen::Ui::Controls::IListViewItemProviderF
|
||||
, public Tizen::Ui::Controls::IListViewItemEventListener
|
||||
, public Tizen::Ui::Scenes::ISceneEventListener
|
||||
, public Tizen::Ui::Controls::IFormMenuEventListener
|
||||
{
|
||||
public:
|
||||
MapsWithMeForm();
|
||||
|
@ -61,7 +62,9 @@ public:
|
|||
virtual void OnAccuracyChanged(Tizen::Locations::LocationAccuracy accuracy);
|
||||
|
||||
// IFormBackEventListener
|
||||
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
|
||||
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form & source);
|
||||
// IFormMenuEventListener
|
||||
virtual void OnFormMenuRequested(Tizen::Ui::Controls::Form & source);
|
||||
|
||||
//IListViewItemProvider
|
||||
virtual Tizen::Ui::Controls::ListItemBase * CreateItem (int index, float itemWidth);
|
||||
|
|
|
@ -4,15 +4,18 @@
|
|||
<Version>1.0.0</Version>
|
||||
<Type>C++App</Type>
|
||||
<Requirements>
|
||||
<Feature Name="http://tizen.org/feature/platform.core.cpu.arch.armv7">true</Feature>
|
||||
<Feature Name="http://tizen.org/feature/platform.core.fpu.arch.vfpv3">true</Feature>
|
||||
<Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
|
||||
<Feature Name="http://tizen.org/feature/screen.size.normal">true</Feature>
|
||||
</Requirements>
|
||||
<Apps>
|
||||
<ApiVersion>2.2</ApiVersion>
|
||||
<Privileges>
|
||||
<Privilege>http://tizen.org/privilege/web.service</Privilege>
|
||||
<Privilege>http://tizen.org/privilege/location</Privilege>
|
||||
<Privilege>http://tizen.org/privilege/application.launch</Privilege>
|
||||
<Privilege>http://tizen.org/privilege/web.service</Privilege>
|
||||
<Privilege>http://tizen.org/privilege/http</Privilege>
|
||||
<Privilege>http://tizen.org/privilege/application.launch</Privilege>
|
||||
</Privileges>
|
||||
<UiApp HwAcceleration="On" LaunchingHistoryVisible="True" Main="True" MenuIconVisible="True" Name="MapsWithMe">
|
||||
<UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
|
||||
|
@ -21,7 +24,7 @@
|
|||
<DisplayName Locale="eng-GB">MapsWithMe</DisplayName>
|
||||
</DisplayNames>
|
||||
<Icons>
|
||||
<Icon Section="MainMenu">ic_launcher.png</Icon>
|
||||
<Icon Section="MainMenu">Pro.png</Icon>
|
||||
</Icons>
|
||||
<LaunchConditions/>
|
||||
</UiApp>
|
||||
|
|
BIN
tizen/MapsWithMe/res/screen-density-high/Pro.png
Normal file
BIN
tizen/MapsWithMe/res/screen-density-high/Pro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
BIN
tizen/MapsWithMe/shared/res/screen-density-xhigh/Pro.png
Normal file
BIN
tizen/MapsWithMe/shared/res/screen-density-xhigh/Pro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
|
@ -95,6 +95,7 @@ result MapsWithMeForm::OnInitializing(void)
|
|||
m_locationEnabled = false;
|
||||
|
||||
SetFormBackEventListener(this);
|
||||
SetFormMenuEventListener(this);
|
||||
|
||||
CreateBookMarkPanel();
|
||||
CreateSplitPanel();
|
||||
|
@ -532,6 +533,16 @@ void MapsWithMeForm::OnFormBackRequested(Form& source)
|
|||
}
|
||||
}
|
||||
|
||||
void MapsWithMeForm::OnFormMenuRequested(Tizen::Ui::Controls::Form & source)
|
||||
{
|
||||
if (m_bookMArkSplitPanelEnabled)
|
||||
return;
|
||||
if (m_splitPanelEnabled)
|
||||
HideSplitPanel();
|
||||
else
|
||||
ShowSplitPanel();
|
||||
}
|
||||
|
||||
void MapsWithMeForm::UpdateButtons()
|
||||
{
|
||||
bool bEnableScaleButtons = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue