}
}
part {
+ name: "elm.swallow.backward";
+ type: SWALLOW;
+ mouse_events: 1;
+ repeat_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: 91 79;
+ max: 91 79;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1 { relative: 1.0 1.0; }
+ rel2 { relative: 1.0 1.0; }
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
name: "elm.swallow.toolbar";
type: SWALLOW;
mouse_events: 1;
}//end of parts
programs {
+ program { name: "show,backward";
+ signal: "show,backward,signal";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.backward";
+ }
+ program { name: "hide,backward";
+ signal: "hide,backward,signal";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.backward";
+ }
program { name: "show,toolbar";
signal: "show,toolbar,signal";
action: STATE_SET "visible" 0.0;
void WindowData::setViewMode(
const char *title,
bool fullscreen,
+ bool backbutton,
CtxMenuItems ctxMenuItems)
{
LogDebug("setViewMode " <<m_debugMode);
LogDebug("fullscreen: " << fullscreen);
+ LogDebug("backbutton: " << backbutton);
m_fullscreen = fullscreen;
toggleIndicator(m_fullscreen);
+ if (backbutton) {
+ createFloatBackButton();
+ }
+
m_title = title;
m_ctxMenuItems = ctxMenuItems;
void setViewMode(
const char *title,
bool fullscreen,
+ bool backbutton,
CtxMenuItems ctxMenuItems);
void initFullViewMode();
return;
}
m_widget->Reset();
+ m_windowData->emitSignalForUserLayout(EDJE_SHOW_BACKWARD_SIGNAL, "");
m_widgetState = WidgetState_Running;
} else {
if (true == checkArgument())
m_widget->SetUserDelegates(cbs);
m_widget->Show();
+ m_windowData->emitSignalForUserLayout(EDJE_SHOW_BACKWARD_SIGNAL, "");
ADD_PROFILING_POINT("launchStep", "stop");
}
Assert(m_dao);
auto windowModes = m_dao->getWindowModes();
bool fullscreen = false;
+ bool backbutton = false;
+ if (m_dao->getWidgetType().appType == WrtDB::APP_TYPE_TIZENWEBAPP) {
+ WidgetSettings widgetSettings;
+ m_dao->getWidgetSettings(widgetSettings);
+ WidgetSettingList settings(widgetSettings);
+ backbutton =
+ (settings.getBackButtonPresence() == BackButton_Enable);
+ }
+
+
FOREACH(it, windowModes)
{
std::string viewMode = DPL::ToUTF8String(*it);
m_windowData->setViewMode(name.c_str(),
fullscreen,
+ backbutton,
ctxMenuItems);
}
WidgetSettings widgetSettings;
m_dao->getWidgetSettings(widgetSettings);
WidgetSettingList settings(widgetSettings);
+ if (settings.getBackButtonPresence() == BackButton_Enable) {
+ m_windowData->addFloatBackButtonCallback(
+ "clicked",
+ &WrtClient::backButtonCallback,
+ this);
+ }
+
WidgetSettingScreenLock rotationValue = settings.getRotationValue();
if (rotationValue == Screen_Portrait) {
elm_win_rotation_with_resize_set(m_windowData->m_win, 0);