+void
+ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, shared_ptr<DCPContent> dcp, bool can_reference, wxString cannot) const
+{
+ button->Enable (can_reference);
+
+ if (dcp && !can_reference) {
+ note->SetLabel (cannot);
+ } else {
+ note->SetLabel (wxT(""));
+ }
+
+ note->Wrap (400);
+
+ if (cannot.IsEmpty() || Config::instance()->interface_complexity() == Config::INTERFACE_SIMPLE) {
+ note->Hide ();
+ } else {
+ note->Show ();
+ }
+
+ _sizer->Layout ();
+}