--- /dev/null
+//
+// Tizen C++ SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDF_FORM;
+extern const wchar_t* IDC_BUTTON_OK;
+extern const wchar_t* IDC_LABEL1;
+
+#endif /* _APP_RESOURCE_ID_H_ */
--- /dev/null
+//
+// Tizen C++ SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#include "AppResourceId.h"
+
+const wchar_t* IDF_FORM = L"IDF_FORM";
+const wchar_t* IDC_BUTTON_OK = L"IDC_BUTTON_OK";
+const wchar_t* IDC_LABEL1 = L"IDC_LABEL1";
#include <FApp.h>
+#include "AppResourceId.h"
#include "SampleType.h"
#include "SampleUiAppMainForm.h"
bool
SampleUiAppMainForm::Initialize(void)
{
- Construct(L"IDF_FORM");
+ Construct(IDF_FORM);
return true;
}
SetFormBackEventListener(this);
// Get a button via resource ID
- Button *pButtonOk = static_cast<Button*>(GetControl(L"IDC_BUTTON_OK"));
+ Button *pButtonOk = static_cast<Button*>(GetControl(IDC_BUTTON_OK));
if (pButtonOk != null)
{
pButtonOk->SetActionId(ID_BUTTON_OK);
AppLog("SampleUiApp : OnUserEventReceivedN is called. requestId is %d", requestId);
- Label* pLabel = dynamic_cast<Label*>(GetControl(L"IDC_LABEL1"));
- Button* pButton = dynamic_cast<Button*>(GetControl(L"IDC_BUTTON_OK"));
+ Label* pLabel = dynamic_cast<Label*>(GetControl(IDC_LABEL1));
+ Button* pButton = dynamic_cast<Button*>(GetControl(IDC_BUTTON_OK));
switch (requestId)
{