String apc_reserialize(const String& str) { if (str.empty() || !apcExtension::EnableApcSerialize) return str; VariableUnserializer uns(str.data(), str.size(), VariableUnserializer::Type::APCSerialize); StringBuffer buf; reserialize(&uns, buf); return buf.detach(); }
void GenerateDlg::SetPlayRange() { wxColor sel(200,200,255); wxColor uns(240,240,255); wxBitmapButton *tbtn; tbtn = (wxBitmapButton*)FindWindow("IDC_PLAY_ALL"); tbtn->SetBackgroundColour(playSome ? uns : sel); tbtn->Enable(playSome); tbtn = (wxBitmapButton*)FindWindow("IDC_PLAY_SOME"); tbtn->Enable(!playSome); tbtn->SetBackgroundColour(playSome ? sel : uns); }
void GenerateDlg::SetPlayOutput() { wxColor sel(200,200,255); wxColor uns(240,240,255); wxBitmapButton *tbtn; tbtn = (wxBitmapButton*)FindWindow("IDC_DISK"); tbtn->SetBackgroundColour(playLive ? uns : sel); tbtn->Enable(playLive); tbtn = (wxBitmapButton*)FindWindow("IDC_PLAY_LIVE"); tbtn->SetBackgroundColour(playLive ? sel : uns); tbtn->Enable(!playLive); }