, public Tizen::Ui::IActionEventListener
, public Tizen::Ui::Controls::IListViewItemProvider
, public Tizen::Base::Runtime::ITimerEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
{\r
public:\r
StopwatchForm(void);\r
virtual result OnDraw(void);
virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
\r
//IListViewItemProvider
virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
<Id>$(manifestAppId)</Id>
- <Version>1.0.0</Version>
+ <Version>2.0.0</Version>
<Type>C++App</Type>
<Author/>
<Descriptions>
//
#include "Stopwatch.h"\r
-#include "StopwatchFrame.h"
+#include "StopwatchFrame.h"\r
\r
using namespace Tizen::System;\r
using namespace Tizen::App;\r
bool\r
StopwatchForm::Initialize(void)\r
{\r
- Construct(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER);\r
+ Construct(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
return true;\r
}\r
\r
\r
Header * pHeader = Form::GetHeader();\r
pHeader->SetTitleText("STOPWATCH");\r
+
+ Footer* pFooter = GetFooter();
+ pFooter->SetBackButton();
+ SetFormBackEventListener(this);
\r
// Get X Position of "00:00:00"\r
Dimension tempDim;\r
delete pItem;\r
pItem = null;\r
return true;\r
+}
+
+void
+StopwatchForm::OnFormBackRequested(Form& source)
+{
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
}\r