示例#1
0
文件: sidebar.cpp 项目: ryoon/poedit
 void Update(const CatalogItemPtr& item) override
 {
 #ifdef __WXMSW__
     auto add = _("Add comment");
     auto edit = _("Edit comment");
 #else
     auto add = _("Add Comment");
     auto edit = _("Edit Comment");
 #endif
     m_btn->SetLabel(item->HasComment() ? edit : add);
 }
示例#2
0
文件: sidebar.cpp 项目: ryoon/poedit
 bool ShouldShowForItem(const CatalogItemPtr& item) const override
 {
     return item->HasComment();
 }