void VSTPlugin::Edit(bool open) { if(Is()) { if(open) { if(HasEditor() && !IsEdited()) StartEditor(this); } else if(IsEdited()) StopEditor(this); } }
void VSTPlugin::ToFront() { if(Is() && IsEdited()) { FrontEditor(this); Dispatch(effEditTop,0,0,vendorname); } }
void tcNumberEditControl::IndicateChanges() { if (!IsEdited()) { textCtrl->SetBackgroundColour(wxColour(0xFFFFFF)); } else { textCtrl->SetBackgroundColour(wxColour(0xE0FFE0)); } textCtrl->Refresh(); }
void VSTPlugin::Free() { // This should only also in destruction try { if(effect) { FLEXT_ASSERT(!IsEdited()); // shut down plugin Dispatch(effMainsChanged, 0, 0); Dispatch(effClose); } } catch(...) {} FreePlugin(); }
bool CTUTaskReport::IsSaveable() { return (IsEdited() || IsSaved() || IsCustomTextSaved() || IsNotesSaved() || GetStatus() == TUTaskRejected); }
void VSTPlugin::BelowFront() { if(Is() && IsEdited()) BelowEditor(this); }
void VSTPlugin::SetTitle(const char *t) { title = t; if(Is() && IsEdited()) TitleEditor(this,t); }
void VSTPlugin::SetHandle(bool h) { handle = h; if(Is() && IsEdited()) HandleEditor(this,h); }
void VSTPlugin::SetCaption(bool c) { caption = c; if(Is() && IsEdited()) CaptionEditor(this,c); }
void VSTPlugin::SetSize(int x,int y,bool upd) { sizex = x; sizey = y; if(upd && Is() && IsEdited()) SizeEditor(this,sizex,sizey); }
void VSTPlugin::SetPos(int x,int y,bool upd) { posx = x; posy = y; if(upd && Is() && IsEdited()) MoveEditor(this,posx,posy); }
void VSTPlugin::Visible(bool vis,bool upd) { visible = vis; if(upd && Is() && IsEdited()) ShowEditor(this,vis); }
void VSTPlugin::StopEditing() { if(Is() && IsEdited()) Dispatch(effEditClose); }