äºåã¡ã¢
ããã«ã¡ã¯ã Samsung Badaã¢ãã€ã«ãã©ãããã©ãŒã çšã®ã·ã³ãã«ãªã¢ããªã±ãŒã·ã§ã³ãäœæããŠãã¹ããŒããã©ã³ã®ç»é¢ã«ãããã衚瀺ããããã䜿çšããŠæäœãå®è¡ããç°¡åãªã¿ã¹ã¯ã解決ããæ¹æ³ã«ã€ããŠèª¬æããŸãã Badaã®éçºã®éå§ã«ã€ããŠã¯ã ããã§èª¬æããŸã ã
äºåæªçœ®
BadaãæèŒããã¹ããŒããã©ã³çšã®ãããããŒã¿ãããã€ããŒã¯... Googleã§ã¯ãããŸããã ïŒç§ã«ãšã£ãŠã¯ãAndroidã®äžçã®åŸãããã¯å°ãã·ã§ãã¯ã§ãããå°ãäžå¿«æãæããããã«èããŸãã-ç§ãã¡ã¯ããããªããšã«æ £ããã®ãç°¡åã§ãä»®æ³ã®ãã®ãã©ãã»ã©åŒ·åãïŒGoogleã¯ã¡ã€ã³ããŒãžãããªãŒããŒã®ãªã³ã¯ãåé€ãããšãããŠãŒã¶ãŒã®Haãã«é¢ããHabréã®ãããã¯ãæãåºããŸããïŒãããããç§ã¯æ°ãæ£ããŸãã...
èšäºã¯ãã®ããã«æ§æãããŠããŸãã æåã«ãæå°éã®æ©èœãåããã«ãŒãã衚瀺ãããšããäžè¬çãªã¿ã¹ã¯ã解決ãããSDKéçºè èªèº«ã®ããžãã¯ãããããŸãããã®åŸãå°ãããŠã䟿å©ãªæ©èœãè¿œå ãããŸãã ãã®ã¢ãããŒãã¯ããè³¢æãªC ++ã®èéãã®äžã§ãäŸãããã¥ã¡ã³ãã§äœæéãåã«ãæåã®ç¥ãåããã®ããã«å®è¡ããå¿ èŠã®ããã¢ã¯ã·ã§ã³ã®ããã€ããå®éã«éé¢ããããããå ã«é²ããšããäºå®ã«èµ·å ããŸãã
ãããã£ãŠãããã°ã©ãã³ã°ããåã«ãããã€ãã®è¿œå æé ãå®è¡ããå¿ èŠããããŸãã ãŸããSamsung Bada deCartaã®ãããããŒã¿ãããã€ããŒã®ãµã€ãã«ç»é²ããŸãïŒãªã³ã¯ã¯ã¡ã€ã³ããŒãžãæãã®ã§ã¯ãªããããã«DevZoneãæãïŒã ãµã€ãã¯çãããšèšããããåŸãªã-Chromeã§ãã°ã€ã³ãããšããã¹ã¯ãŒããéåžžã®ã¢ã¹ã¿ãªã¹ã¯ãªãã§ãã©ãŒã ã«å ¥åãããç»é²ç®çã«å¯Ÿããåå¿ïŒã«ãŒããæäœããããã®ãŠãŒã¶ãŒåãšãã¹ã¯ãŒãã®ååŸïŒããã³ããªãã«ã¡ãŒã«ã§å°æãããã®äžã äžè¬çã«ãç»é²åŸïŒBadaå°çšã«åãã€ããã§ããããšãçŽæ¥ç€ºãããšã¯å¯èœã§ãïŒãçŽ10åããããŸããããã®åŸããŠãŒã¶ãŒåãšãã¹ã¯ãŒããèšèŒããæçŽãåãåããŸããã
ã¢ããªã±ãŒã·ã§ã³ã®åææ¡ä»¶
BADA IDEã䜿çšããŠãã©ãŒã ããŒã¹ã®ãããžã§ã¯ããäœæããåŸããã©ãŒã ã¯ã©ã¹ã¡ãœããã«ãããã©ãŒã ãšãã®åæåã³ãŒãã«èŠªåã«è¿œå ããããã¿ã³ãããã«åé€ããŸãã
result SimpleMapForm::OnInitializing(void)
ïŒãã©ãŒã ã«SimpleMapFormãšããååãä»ããŸããïŒãå®éã«ã¯ããããããã©ãŒã ãšãã¿ã³ãå æããããã§ãã ããã§ããã¢ããªã±ãŒã·ã§ã³ãå¶åŸ¡ããããã«ããã©ãŒã ãã¯ãªãã¯ããåŸãïŒããããã£ïŒã¿ããéãããã©ãŒã ã«ïŒãºãŒã ã€ã³ïŒãšïŒãºãŒã ã¢ãŠãïŒã®ç¢æãä»ãã2ã€ã®ããœããããŒãããŒã衚瀺ããããšã瀺ããShow Softkey0ã®ããããã£ãããããå€æŽããŸããã SoftKey0 TextãShow Softkey1ãSoftkey1 Textã èµ·ãã£ãããšã¯æ¬¡ã®ããã«ãªããŸãïŒç¢æã¯å®å
šã«ã¯èŠããŸãããããã®åé¡ã¯å®è¡äžã®ã¢ããªã±ãŒã·ã§ã³ã«ã¯ååšããŸããïŒïŒ
ã¢ãã€ã«ããã€ã¹ã§ããããæäœããéã®äžè¬çãªã¿ã¹ã¯ã®1ã€ã¯ãã¹ã±ãŒãªã³ã°ããã³ãªã©ã§ãã ç»é¢äžã®ãŠãŒã¶ãŒã®ã¿ããã远跡ãããããã§ãããã解éã§ããããã«ããããã«ããã©ãŒã ã¯ã©ã¹ã«ããªã¹ããŒããžã®ãªã³ã¯ãè¿œå ããŸããïŒè±èªã®åèªè¿œè·¡ãå«ããªã®ã§ããã®ãããªçšèªã¯èš±ããŠãã ããïŒ
public Osp::Locations::Controls::IMapEventListener
ãã©ãŒã ããããŒãã¡ã€ã«å
ã ããªã¹ããŒãã¯ããããŒãã¡ã€ã«<FLocations.h>ã§å®£èšãããŸããããã¯ããã©ã«ãã§ã¯ååšããªããããå¿
ãè¿œå ããå¿
èŠããããŸãã äžè¬ã«ãã³ãŒãã®ãã®éšåã¯æ¬¡ã®ãšããã§ãã
#include <FBase.h> #include <FGraphics.h> #include <FUiControls.h> #include <FApp.h> #include <FLocations.h> class SimpleMapForm : public Osp::Ui::Controls::Form, public Osp::Locations::Controls::IMapEventListener, public Osp::Ui::IActionEventListener { // Construction public: SimpleMapForm(void); virtual ~SimpleMapForm(void);
è¿œå ãããããªã¹ããŒãã«ã€ããŠã¯ãã«ãŒãã䜿çšããããŸããŸãªãŠãŒã¶ãŒæäœã«å¿ããŠããªã¬ãŒã§ããã€ãã³ãã®ãã³ãã©ãŒã決å®ããå¿ èŠããããŸãã ããããå®è£ ãããŸã§ããã©ãŒã ã¯ã©ã¹ã®ãããªãã¯ã»ã¯ã·ã§ã³ã«è¿œå ããã ãã§ãã
// void OnMapMovingStarted(const Osp::Locations::Controls::Map& source){} void OnMapMovingEnded(const Osp::Locations::Controls::Map& source){} void OnMapZoomingStarted(const Osp::Locations::Controls::Map& source, const bool zoomIn){} void OnMapZoomingEnded(const Osp::Locations::Controls::Map& source, const bool zoomIn){} void OnMapDrawCompleted(const Osp::Locations::Controls::Map& source){} // void OnClosingEnded(const Osp::Locations::Controls::IMapInfoWindow& source){} void OnInfoWindowClicked(const Osp::Locations::Controls::IMapInfoWindow& source){} void OnMapClicked(const Osp::Locations::Controls::Map& source, const Osp::Graphics::Point& point, const Osp::Locations::Coordinates& coordinates){} void OnInfoWindowDoublePressed(const Osp::Locations::Controls::IMapInfoWindow& source){}
ãã®ãããIDEã«ã¯Map GUIã³ã³ããŒãã³ãããªãããããã³ãŒãã§ãè¿œå ããå¿ èŠããããŸãã
ã¢ããªã±ãŒã·ã§ã³ã§ã«ãŒããããã€ããŒãšã«ãŒãèªäœã宣èšããŸãã ãããè¡ãããã«ããã©ãŒã ã¯ã©ã¹ã®ããããŒãã¡ã€ã«ã«æ»ãããã©ã€ããŒãã»ã¯ã·ã§ã³ã«ïŒéçºè ãæšå¥šããããã«ãæ£çŽãªãšããããã®ãããªè©³çŽ°ãªä»æ§ã®çç±ãæ確ã«èª¬æã§ããŸããã§ããïŒçºè¡šãè¿œå ããŸãã
protected: private: Osp::Locations::Services::IMapServiceProvider* __pMapSvcProvider; Osp::Locations::Controls::Map* __pMap;
次ã«ããã©ãŒã ã¯ã©ã¹ã®cppãã¡ã€ã«ã«åå空éãè¿œå ããŸãã
using namespace Osp::Locations; using namespace Osp::Graphics; using namespace Osp::Locations::Services; using namespace Osp::Locations::Controls;
ããã³ãã©ãŒã ã¯ã©ã¹ã³ã³ã¹ãã©ã¯ã¿ãŒã§ã®ã«ãŒããããã€ããŒãšã«ãŒãèªäœã®åæå
SimpleMapForm::SimpleMapForm(void): __pMapSvcProvider(null), __pMap(null) { }
ããã§ããã©ãŒã ã®åæåã¡ãœãããèŠã€ããããšãã§ããŸã
result SimpleMapForm::OnInitializing(void)
ãããã€ããŒãšãããäœæãè¿œå ããŸãïŒ
const String providerName = L"deCarta"; const String extraInfo = L"ClientName=***;ClientPassword=***;HostUrl=http://developer.kr.dz.decarta.com:80/openls/openls"; const String prefProperty = L"global-mobile"; Coordinates center; Rectangle clientRect = GetClientAreaBounds(); __pMapSvcProvider = static_cast<IMapServiceProvider*>(ProviderManager::ConnectToServiceProviderN(providerName, LOC_SVC_PROVIDER_TYPE_MAP, extraInfo)); __pMap = new Map(); __pMap->Construct(Rectangle(0,0, clientRect.width, clientRect.height), *__pMapSvcProvider); center.Set(48,37.8, 200); __pMap->SetCenter(center, false); __pMap->SetZoomLevel(12.0, false); __pMap->AddMapEventListener(*this); AddControl(*__pMap);
ããªãéæãªååã®å®æ°ã¯ãã³ãŒãã§å®£èšãããŸãã次ã®ããšãè¡ãããç¬éã«ãextraInfoã®ã»ã¯ã·ã§ã³ClientNameãšClientPasswordã®è¡ã§ãããããdeCartaããåãåã£ããã°ã€ã³ãšãã¹ã¯ãŒããæå®ããå¿ èŠããããŸãã
次ã«ãclientRectã§ããã©ãŒã ã®ã¯ã©ã€ã¢ã³ãé åã®å¯žæ³ãè¿ãïŒããããŒãªãïŒãããããããã€ããŒãšã«ãŒãèªäœãäœæãããã®å¯žæ³ããã©ãŒã ã®åã寞æ³ã«èšå®ããŸãã ïŒRectangleã§ã¯ãOsp :: Graphicsã¹ããŒã¹ãè¿œå ããå¿ èŠããããŸãããã»ãšãã©å¿ããŠããŸããïŒã 次ã«ãå°å³ã®äžå¿ã®ç·¯åºŠãçµåºŠãããã³é«ããèšå®ããŠãSetCenterã¡ãœããã«æž¡ããŸãã ã«ãŒããæäœãããšãã®ã¢ãã¡ãŒã·ã§ã³å¹æã®åå ãšãªã2çªç®ã®ãã©ã¡ãŒã¿ãŒãfalseã«èšå®ããŸããã¢ãã¡ãŒã·ã§ã³ããªãå Žåã§ããã¹ããŒããã©ã³ã·ãã¥ã¬ãŒã¿ãŒã®é床ã¯ãåŽæ°Žã§ã¯ãªãããšè»œåºŠã«èšããŸãã 次ã«ãSetZoomLevelã§ç®çã®ãããã¹ã±ãŒã«ãèšå®ãïŒ2çªç®ã®ãã©ã¡ãŒã¿ãŒãããã§ã¢ãã¡ãŒã·ã§ã³ãåŠçããŸãïŒãããªã¹ããŒãããããã«ãã°ããè¿œå ãããã©ãŒã ã«è¿œå ããŸãã
ãã®æ®µéã§ããããžã§ã¯ããæ¢ã«ãã«ãããŠèµ·åããBadaã§ã©ã®ããã«èŠãããã確èªã§ããŸãã
ã¢ããªã±ãŒã·ã§ã³ãå®è¡ããŠããç§ã®ã·ãã¥ã¬ãŒã¿ã¯æ¬¡ã®ããã«ãªããŸãã
ååãšããŠãã¢ãã€ã«ã«ãŒããšããŠã¯éåžžã«åªããŠããã詳现ã§ãïŒãã°ããŒãã«ã¢ãã€ã«ãã¬ãã«ã®è©³çŽ°ã¬ãã«ã䜿çšããŸããïŒã ãã¡ããããããGoogleãYandexã®å°å³ãšæ¯èŒããåé¡ã¯æªè§£æ±ºã®ãŸãŸã§ãããããã¯æ¬¡ã®ãããã¯ã®ãããã¯ã«ãªããšæãããŸãã
ãã®ã¢ããªã±ãŒã·ã§ã³ã«ã¯ãã§ã«ããã€ãã®æ©èœããããŸãããã«ãŒãããã©ãã°ã¢ã³ãããããããããšã¯ã§ããŸããããšãã°ããŸã ããŸãæå³ããªããããçšåºŠã®æçšæ§ãå¿ èŠã§ãã
ãŠãŒã¶ãŒãå°å³ãæ¡å€§çž®å°ã§ããããã«ããŸãããã®ããã2ã€ã®ãœããããŒãã¢ããªã±ãŒã·ã§ã³ã«è¿œå ããŸããïŒå¯Ÿå¿ãããã·ã¢èªã®çšèªãèŠã€ããã®ã¯å°é£ã§ãïŒã
ãããè¡ãã«ã¯ãäž¡æ¹ã®ããŒã«ã€ãã³ãã®èå¥åãå²ãåœãŠãå¿ èŠããããŸãããã®èå¥åã¯ããã®ã€ãã³ãã®ãã³ãã©ãŒãšããªã¹ããŒãã«éä¿¡ãããŸãã ã¡ãœããã³ãŒãã§ããã°ã©ã ã§ãã£ãŠã¿ãŸããã
SimpleMapForm::OnInitializing(void)
ã¯ã©ã¹ãã©ãŒã ã 以äžãè¿œå ããŸãã
result SimpleMapForm::OnInitializing(void) { result r = E_SUCCESS; SetSoftkeyActionId(SOFTKEY_0,ID_ZOOM_IN); AddSoftkeyActionListener(SOFTKEY_0,*this); SetSoftkeyActionId(SOFTKEY_1,ID_ZOOM_OUT); AddSoftkeyActionListener(SOFTKEY_1,*this); SetOptionkeyActionId(ID_OPTION_MENU); AddOptionkeyActionListener(*this);
ãŸãããã©ãŒã ã¯ã©ã¹ã®ããããŒãã¡ã€ã«ã«æ»ãããã¿ã³ã®ã¿ããã€ãã³ããèå¥ãã2ã€ã®å®æ°ID_ZOOM_INããã³ID_ZOOM_OUTãè¿œå ããå¿ èŠããããŸãã
protected: // static const int ID_ZOOM_IN = 701; static const int ID_ZOOM_OUT = 702;
ããã«ããããºãŒã ã€ã³ãã¿ã³ãšãºãŒã ã¢ãŠããã¿ã³ã®ã¯ãªãã¯ãæ¢ã«åŠçã§ããŸãã ãããè¡ãã«ã¯ããã©ãŒã ã¯ã©ã¹ã®cppãã¡ã€ã«ã§ã¡ãœãããèŠã€ããŸã
SimpleMapForm::OnActionPerformed(constOsp::Ui::Control& source, int actionId)
actionIdãã©ã¡ãŒã¿ãŒãåæããŠãã¢ããªã±ãŒã·ã§ã³ã§çºçãããã¹ãŠã®ã€ãã³ããåŠçããããã«èšèšãããŠããŸãã
次ã®ã³ãŒããè¿œå ããŸãã
switch (actionId) { case ID_ZOOM_IN: { // float curZoomLevel = __pMap->GetZoomLevel(); if (curZoomLevel == __pMap->GetMaxZoomLevel()) { return; } ++curZoomLevel; if (curZoomLevel > __pMap->GetMaxZoomLevel()) { curZoomLevel = __pMap->GetMaxZoomLevel(); } __pMap->SetZoomLevel(curZoomLevel, true); RequestRedraw(true); // ----------------------------- } break; case ID_ZOOM_OUT:{ // float curZoomLevel = __pMap->GetZoomLevel(); if (curZoomLevel == 1.0) { return; } --curZoomLevel; if (curZoomLevel < 1.0) { curZoomLevel = 1.0; } __pMap->SetZoomLevel(curZoomLevel, true); RequestRedraw(true); //----------------------------- } break; default: break; }
æå³ã¯æ¬¡ã®ãšããã§ã-ãŠãŒã¶ãŒããã¿ã³ãæŒããšãããšãã°ããºãŒã ã€ã³ã ããã«å²ãåœãŠãããããªã¹ããŒããç¶ãããã®ã€ãã³ãã«å²ãåœãŠãå®æ°ID_ZOOM_INãOnActionPerformedã«æž¡ãããããã§actionIdãåæãããŸãã actionIdã®å€ã¯ID_ZOOM_INã«ãªãã察å¿ããã±ãŒã¹ãããã¯ãå®è¡ãããŸãã ã¡ãœããã®ååã«ã¯ééçãªååããããããã³ãŒãèªäœã¯ç解å¯èœã§ã説æãã»ãšãã©å¿ èŠãšããŸããã å¯äžã®ç¬é-SetZoomLevelã«ãºãŒã ã€ã³ããåŸããåæç»ããã©ãŒã ãèŠæ±ããŸã:)
ã·ãã¥ã¬ãŒã¿ã§ã¯æ¬¡ã®ããã«ãªããŸãã
1.èµ·åçŽåŸã®å ã®ã¹ã±ãŒã«ïŒ
2.ãºãŒã ã€ã³åŸïŒ
3.ãããŠãã»ãŒæ倧ãºãŒã ïŒ
ã·ãã¥ã¬ãŒã¿ãŒã®æåŸã®ã¹ãããã·ã§ãããèŠããšãGoogle MapsãYandex Mapsãšã¯ç°ãªãã家çªå·ããŸã£ãããªãããšãç°¡åã«ç¥ãããšãã§ããŸãïŒåããŠããŒãããããšãæåŸ ããŠããïŒããã®éãã¯ãããã¯ã®ã»ãŒäžå¿ã§ãæ éã«æ³šæããã
ãããŠãããã§ã»ãŒæçµæ®µéã§ãããŠãŒã¶ãŒã«ãç¹å®ã®åº§æšã§å°å³äžã®ããå ŽæãèŠãæ©äŒãäžããŸãããã
Badaã«ã¯ãMessageBoxã«éåžžã«ãã䌌ããããã¢ãããããã¢ããããããŸãïŒæåã®èšäºã§æåŸã®ãããã¢ãããèŠãããšãã§ããŸãïŒãããããã«ã³ã³ãããŒã«ãé 眮ã§ããŸããããã¯éåžžã«äŸ¿å©ãªããã§ããããã€ãã®å ¥åãã£ãŒã«ããšãã¿ã³ã®ãã©ãŒã å šäœãäœæããå¿ èŠã¯ãããŸããã ãããå©çšããŸãã
ãªãœãŒã¹ã®ããªãœãŒã¹ããŠã£ã³ããŠããã³ããããã¢ãããããªãŒã®ããŒãã§IDEã«ç§»åããŠããããã¢ãããäœæããŸãã å³ã¯ãªãã¯ããŠããæ¿å ¥ãŠã£ã¶ãŒããéãããéžæããŸãã ç®çã®ç»é¢è§£å床ãåŸãã«ã¯ããããã¢ãããéžæããŠãå®äºããã¯ãªãã¯ããŸããIDP_Popup1ã®ãããªãã®ããªãœãŒã¹ã«è¡šç€ºãããŸãã ãthisããå·Šã¯ãªãã¯ããŠãããžã¥ã¢ã«ã€ã³ã¿ãŒãã§ã€ã¹ãã«ããŒãã©ã®ããã«éããã確èªããŸãããã®äžã«ã³ã³ãããŒã«ããã©ãŒã ã«ãã©ãã°ã¢ã³ãããããã§ããŸãã 次ã®ãããã¢ãããäœæããŸããã
次ã«ããããã¢ãããããã®ãã¯ãªãã¯ããæ©èœãè¿œå ããŸãã ãã©ãŒã ã«æ»ããShow OptionKeyããããã£ãTrueã«èšå®ããŠããªãã·ã§ã³ã¡ãã¥ãŒããã©ãŒã ã«è¿œå ããŸãããã ãã©ãŒã ã«æ¬¡ã®ãããªãã®ã衚瀺ãããŸãã
OptionKeyã®å Žåãã€ãã³ãèå¥åãšãã®ããªã¹ããŒããã¡ãœããã«è¿œå ããŸã
SimpleMapForm::OnInitializing(void)
ãºãŒã ã€ã³ãšãºãŒã ã¢ãŠãã®åæ§ã®ã³ãŒãã®çŽåŸã«äœæãããå Žæãå€æŽãé
ç®ã1ã€è¿œå ããŸãã
SetOptionkeyActionId(ID_OPTION_MENU); AddOptionkeyActionListener(*this); // __pOptionMenu = new OptionMenu(); __pOptionMenu->Construct(); __pOptionMenu->AddActionEventListener(*this); __pOptionMenu->AddItem(L"Change place",ID_OPTION_MENU_ACTION1);
SetOptionkeyActionIdïŒID_OPTION_MENUïŒã¯SHOWING OptionKeyã®èå¥åã®èšå®ã§ããã__ pOptionMenu-> AddActionEventListenerïŒ* thisïŒããã³__pOptionMenu-> AddItemïŒL "Change place"ãID_OPTION_MENU_ACTION1ïŒããªã¹ããŒã®ãªã¹ããŒIDãèšå®ããããšã«æ³šæããŠãã ããOptionKeyã ãã¡ãããID_OPTION_MENUãšID_OPTION_MENU_ACTION1ããã©ãŒã ã¯ã©ã¹ã®ããããŒãã¡ã€ã«ã«è¿œå ããå¿ èŠããããŸãã
Popupãå°ãäœãã«äœæããããã䜿çšããŠäžè¬çãªã¢ã¯ã·ã§ã³ãå®è¡ããŸãã
__pPopup = new Popup(); __pPopup->Construct(L"IDP_POPUP_SET_NEW_PLACE"); __pPopup->SetName(L"CommonPopup"); __popupX = static_cast<EditField *>(__pPopup->GetControl(L"IDC_EDITFIELD1")); __popupY = static_cast<EditField *>(__pPopup->GetControl(L"IDC_EDITFIELD2")); __popupButtonOK = static_cast<Button *>(__pPopup->GetControl(L"IDC_BUTTON1")); __popupButtonOK->SetActionId(BUTTON_OK_POPUP); __popupButtonOK->AddActionEventListener(*this);
åæã«ã䜿çšããããã¹ãŠã®èå¥åã®å®£èšããã©ãŒã ã¯ã©ã¹ã®ãã©ã€ããŒãã»ã¯ã·ã§ã³ã«è¿œå ããŸããã次ã®ããã«ãªããŸãã
private: Osp::Locations::Services::IMapServiceProvider* __pMapSvcProvider; Osp::Locations::Controls::Map* __pMap; Osp::Ui::Controls::OptionMenu* __pOptionMenu; Osp::Ui::Controls::Popup* __pPopup; // Popup Osp::Ui::Controls::Label* __popupLabelTitle; Osp::Ui::Controls::Label* __popupLabelX; Osp::Ui::Controls::Label* __popupLabelY; Osp::Ui::Controls::EditField* __popupX; Osp::Ui::Controls::EditField* __popupY; Osp::Ui::Controls::Button* __popupButtonOK;
ããã§...ããã§ãActionPerformedã§ã®ãããã¢ãã衚瀺ãšããããéããåå¿ãåŠçããŸããããã«å¿ããŠãID_OPTION_MENUãID_OPTION_MENU_ACTION1ãBUTTON_OK_POPUPã®å€ã«ã€ããŠactionIDãåæããŸãã
ç§ã¯ãã®ããã«ããŸããïŒ
case ID_OPTION_MENU:{ // __pOptionMenu->SetShowState(true); __pOptionMenu->Show(); RequestRedraw(true); //------------------------- } break; case ID_OPTION_MENU_ACTION1:{ // 1 - Popup __pPopup->SetShowState(true); __pPopup->Show(); RequestRedraw(true); // --------------------- } break; case BUTTON_OK_POPUP:{ // Coordinates newCenter; String newXStr(__popupX->GetText()); String newYStr(__popupY->GetText()); double newX; double newY; result r1=Double::Parse(newXStr,newX); result r2=Double::Parse(newYStr,newY); newCenter.Set(newX, newY, 200); __pMap->SetCenter(newCenter, false); __pPopup->SetShowState(false); __pPopup->Show(); RequestRedraw(true); //------------------ }
ã€ã³ãã³ãããããã®:(
ãããã£ãŠãæçµçã«ã¯æ¬¡ã®ããã«ãªããŸãã
1. OptionKeyãã¯ãªãã¯ããŸãã
2. OptionKeyãã¿ã³ãã¯ãªãã¯ããŠããããã¢ããã®å€èŠ³ãšããã«åº§æšãå ¥åããŸãïŒããã¹ãã®èæ¯ã¯ç¡èŠã§ããŸããããã¯èæ¯è²ãéžæããããšã§ä¿®æ£ã§ããŸãïŒã
3.ãããŠæåŸ-æ°ãã座æšã«ãã£ãŠããŒããããããããæã€ã·ãã¥ã¬ãŒã¿ãŒãã¥ãŒïŒ
çµè«
Badaã®ããã°ã©ãã³ã°ã¯å°é£ã§ã-ç§ã®äž»èŠ³çãªæèŠã¯ãAndroidãšWP7ã®äžçã®åŸã§ãïŒç§ã®ä»äºã¯ãç§ãäžã§èª¬æãããã®ããã°ããŒãã«ã§ãïŒã ã·ãã¥ã¬ãŒã¿ãŒã®é床ã¯åŽæ°Žã§ã¯ãããŸããã ææžå-ãããæ©èœãå®èšŒããããã«ãå®éã®äœæ¥ã®ããã«äŸãæãäžããå¿ èŠããããŸãã éçºè ãã©ãŒã©ã ã®å€§éšåã¯éåœèªã§ãããççŽã«èšã£ãŠã圌ãã¯è±èªã®ãã©ã³ãã§ããã«çããŠãããŸããã ããã...ããã¯åäœããŸã!!! ãããŠãããããSQLiteããããŠç§ãC ++ãèªåã§å匷ãããšããäºå®ã§ãããéåžžã«å®å®ããŠåäœããŸã:)ïŒïŒ
ããã®ããã«ããã°ã©ãã³ã°ãé 匵ã£ãŠãã ããïŒ
ç§ã®é©åºŠãªèœåã®ããã«ããããããªã£ãã質åã«çããããšããŸãã
ãæž èŽããããšãããããŸããã