set_int(sub_end_text_visible, 0);
}
}
+ program { name: "reset_check";
+ signal: "elm,state,reset_check";
+ source: "elm";
+ script {
+ set_state(PART:"elm.padding.D.C", "default", 0.0);
+ }
+ }
program { name: "pressed";
signal: "elm,state,selected";
source: "elm";
void ListView::setCheckMode(bool check)
{
m_CheckMode = check;
- if (!check)
- {
- // Restore "default" state:
- for(ListItem *item: getRealizedItems())
- {
- item->emitSignal("elm,state,default", "elm");
- }
- }
}
bool ListView::getCheckMode() const
void ConvList::setMode(ConvList::Mode mode)
{
m_Mode = mode;
- bool isSelectMode = (m_Mode == ConvList::SelectMode);
- MSG_LOG("isSelectMode: ",isSelectMode);
+ bool isCheckMode = (m_Mode == ConvList::SelectMode);
- showSelectAllMode(isSelectMode);
- m_pList->setCheckMode(isSelectMode);
- if(isSelectMode)
+ showSelectAllMode(isCheckMode);
+ m_pList->setCheckMode(isCheckMode);
+ if(isCheckMode)
{
selectListItems(false);
m_pSelectAll->setCheckState(false);
}
+ else
+ {
+ ConvListViewItem::resetCheckMode(*m_pList);
+ }
m_pList->updateRealizedItems();
}
ConvListViewItem(ConvItemType type);
virtual ~ConvListViewItem();
+ static void resetCheckMode(ListView &listView);
protected:
virtual Evas_Object *getBubbleContent() = 0;
break;
}
}
+
+void ConvListViewItem::resetCheckMode(ListView &listView)
+{
+ for(ListItem *item: listView.getRealizedItems())
+ {
+ item->emitSignal("elm,state,default", "elm");
+ }
+}
{
m_DeleteMode = value;
setCheckMode(value);
+ ThreadListViewItem::resetCheckMode(*this);
checkAllItems(false, true);
showSelectAllItem(value);
}
void setState(State state, bool updateUi);
State getState() const;
+ static void resetCheckMode(ListView &listView);
protected:
virtual std::string getName() = 0;
{
return TextDecorator::make(text, draftTextStyle);
}
+
+void ThreadListViewItem::resetCheckMode(ListView &listView)
+{
+ for(ListItem *item: listView.getRealizedItems())
+ {
+ item->emitSignal("elm,state,reset_check", "elm");
+ }
+}