type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
- visible: 0;
- }
- description { state: "show" 0.0;
- inherit: "default" 0.0;
visible: 1;
}
- description { state: "hide" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
}
}
programs {
SIG("show_nocontent", "show", "swl.nocontent");
SIG("hide_content", "hide", "swl.content");
SIG("show_content", "show", "swl.content");
- SIG("hide_more_option", "hide", "swl.more_option");
- SIG("show_more_option", "show", "swl.more_option");
SIG("hide_select_button", "hide", "swl.select_button");
SIG("show_select_button", "show", "swl.select_button");
SIG("hide_bottom_button", "hide", "swl.bottom_button");
void showContent(bool show);
void showNoContent(bool show);
- void showMoreOption(bool show);
void showSelectButton(bool show);
void showBottomButton(bool show);
};
bool getOpened() const;
void addOpenedCb(Evas_Smart_Cb cb, void *data);
void addClosedCb(Evas_Smart_Cb cb, void *data);
+ void showCue(bool showed = true);
private:
void onItemClicked(Evas_Object *obj, void *event);
emitSignal(sig);
}
-void DefaultLayout::showMoreOption(bool show)
-{
- const char *sig = show ? "show_more_option" : "hide_more_option";
- emitSignal(sig);
-}
-
void DefaultLayout::showSelectButton(bool show)
{
const char *sig = show ? "show_select_button" : "hide_select_button";
addSmartCb("more,option,closed", cb, data);
}
+void MoreOption::showCue(bool showed)
+{
+ const char *sig = showed ? "cue,show" : "cue,hide";
+ Evas_Object *panelRight = getContent("elm.swallow.right");
+ emitSignal(panelRight, sig, "elm");
+}
+
void MoreOption::onItemClicked(Evas_Object *obj, void *event)
{
MSG_LOG("");
{
MSG_LOG("");
m_Mode = NormalMode;
- m_pLayout->showMoreOption(true);
+ m_pMoreOption->showCue(true);
m_pLayout->showBottomButton(false);
if (m_pSelectButton)
m_pSelectButton->showButton(false);
m_pSelectButton->showButton(true);
m_pDeleteButton->disabled(true);
m_pLayout->showBottomButton(true);
- m_pLayout->showMoreOption(false);
+ m_pMoreOption->showCue(false);
m_pList->setDeleteMode(true);
updateDeleteViews();
}
MSG_LOG("");
m_Mode = NormalMode;
hideSelectPopup();
- m_pLayout->showMoreOption(true);
+ m_pMoreOption->showCue(true);
m_pLayout->showBottomButton(false);
if (m_pSelectButton)
m_pSelectButton->showButton(false);
m_pSelectButton->showButton(true);
m_pDeleteButton->disabled(true);
m_pLayout->showBottomButton(true);
- m_pLayout->showMoreOption(false);
+ m_pMoreOption->showCue(false);
m_pThreadList->setDeleteMode(true);
}
}
if (!m_pLayout) {
m_pLayout = new DefaultLayout(getParent());
m_pLayout->showSelectButton(true);
- m_pLayout->showMoreOption(true);
m_pLayout->addHwButtonEvent(EEXT_CALLBACK_BACK, makeCbFirst(&SettingsBlockedMessagesFrame::onHwBackButtonPressed), this);
}
}
m_pLayout->showNoContent(noContent);
m_pLayout->showContent(!noContent);
- m_pLayout->showMoreOption(!noContent);
+ m_pMoreOption->showCue(!noContent);
}
void SettingsBlockedMessagesFrame::deleteMessages(const std::vector<BlockedMsgListItem*> &items)
{
if (!m_pLayout) {
m_pLayout = new DefaultLayout(getParent());
- m_pLayout->showMoreOption(true);
}
}
m_IsSelectMode = value;
m_pLayout->showBottomButton(value);
- m_pLayout->showMoreOption(!value);
+ m_pMoreOption->showCue(!value);
m_pList->setCheckMode(value);
m_pList->checkAllItems(false);
m_pList->updateRealizedItems();
if (!m_pLayout) {
m_pLayout = new DefaultLayout(getParent());
m_pLayout->showSelectButton(true);
- m_pLayout->showMoreOption(true);
m_pLayout->addHwButtonEvent(EEXT_CALLBACK_BACK, makeCbFirst(&SettingsBlockedNumbersFrame::onHwBackButtonPressed), this);
}
}
m_pLayout->showNoContent(noContent);
m_pLayout->showContent(!noContent);
- m_pLayout->showMoreOption(!noContent);
+ m_pMoreOption->showCue(!noContent);
+
}
void SettingsBlockedNumbersFrame::deleteNumbers(const std::vector<BlockedNumberListItem*> &items)