fixed: 0 1;
}
}
+ rect { "bubble.content_event_blocker"; scale;
+ repeat_events: 0;
+ mouse_events: 1;
+ desc { "default";
+ rel1.to: "base";
+ rel2.to: "base";
+ color: 0 0 0 0;
+ max: 0 0;
+ }
+ desc { "block";
+ inherit: "default";
+ max: -1 -1;
+ }
+ }
}
programs{
program { name: "play_sound";
action: STATE_SET "default" 0.0;
target: "bubble.bg.selected";
}
+ program { name: "block_event";
+ signal: "block_event";
+ source: "";
+ action: STATE_SET "block" 0.0;
+ target: "bubble.content_event_blocker";
+ }
+ program { name: "unblock_event";
+ signal: "unblock_event";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "bubble.content_event_blocker";
+ }
}
}
Evas_Object *createProgress();
Evas_Object *createFailedButton();
void updateItemType(ConvItemType type);
+ void updateContentBlocker();
+ void updateSelectedState(bool state);
private:
ConvItemType m_Type;
void ConvListViewItem::setCheckedState(bool state, bool updateUi)
{
- const char *sig = state ? "show_selected" : "hide_selected";
- ListItem::setCheckedState(state, false);
- emitSignal(sig, "");
+ updateContentBlocker();
+ updateSelectedState(state);
}
void ConvListViewItem::setInfoStatus(InfoStatusType statusType)
}
}
+void ConvListViewItem::updateContentBlocker()
+{
+ const char *sig = getOwner()->getCheckMode() ? "block_event" : "unblock_event";
+ emitSignal(sig, "");
+}
+
+void ConvListViewItem::updateSelectedState(bool state)
+{
+ const char *sig = state ? "show_selected" : "hide_selected";
+ ListItem::setCheckedState(state, false);
+ emitSignal(sig, "");
+}
+
void ConvListViewItem::onRealized(ListItem &item)
{
// Update CheckedState