void HBackground::showStuff() { s_showingStuff=1; _sc->setBackgroundBrush(QBrush(QColor("black"))); ArtistAvatar::_ready=1; closeMode(); if(!s_mco) { s_mco=new HMainContextOptions; s_mco->setMinimumWidth(1024); QGraphicsProxyWidget* pw=_sc->addWidget(s_mco); s_mco->show(); pw->setPos(183,-305); connect(s_mco,SIGNAL(localMode()),this,SLOT(onLocalMode())); connect(s_mco,SIGNAL(suggMode()),this,SLOT(onSuggMode())); connect(s_mco,SIGNAL(topMode()),this,SLOT(onTopMode())); connect(s_mco,SIGNAL(albumMode()),this,SLOT(onAlbumMode())); connect(s_mco,SIGNAL(listMode()),this,SLOT(onListMode())); connect(s_mco,SIGNAL(playMode()),this,SLOT(onPlayMode())); } list.clear(); if(s_mode==Top) { if(s_gotTop) { list=s_toplist; showStuff_makeList(); } else { QMap<QString, QString> p1; p1["method"] = "library.getArtists"; p1["user"] = lastfm::ws::Username; // p1["period"]="3month"; p1["limit"]="5000"; QNetworkReply* reply = lastfm::ws::get( p1 ); connect(reply,SIGNAL(finished()),this,SLOT(showStuff_makeList())); } } else if(s_mode==Suggestions) { if(s_gotRec) { list=s_reclist; showStuff_makeList(); } else { QMap<QString, QString> p1; p1["method"] = "user.getRecommendedArtists"; p1["limit"]="5000"; QNetworkReply* reply = lastfmext_post(p1); connect(reply,SIGNAL(finished()),this,SLOT(showStuff_makeList())); } } else { s_showingStuff=0; if(s_stopRequest) { doStopRequest(); } return; } }
void PlayLabel::prepareSlot() { connect(m_pBtResid,SIGNAL(clicked()),this,SLOT(onBtResidClicked())); // connect(GuiEventNotify::getInstance(),SIGNAL(spliteScreen(int,int,fromWidget)),this,SLOT(onAddCbxItems(int,int,fromWidget))); connect(GuiEventNotify::getInstance(),SIGNAL(selectLabel(int,bool)),this,SLOT(onSelectLabel(int,bool))); connect(GuiEventNotify::getInstance(),SIGNAL(playMode(PlayMode,ScaleRate)),this,SLOT(onPlayMode(PlayMode))); connect(m_pAcCircle,SIGNAL(triggered()),this,SLOT(onAcRetangleTrigged())); connect(m_pAcClear,SIGNAL(triggered()),this,SLOT(onAcClearTrigged())); connect(m_pBtZoomIn,SIGNAL(clicked()),this,SLOT(onBtZoomInClicked())); connect(m_pBtZoomOut,SIGNAL(clicked()),this,SLOT(onBtZoomOutClicked())); connect(GuiEventNotify::getInstance(),SIGNAL(addMark(int,int)),this,SLOT(onAddMark(int,int))); connect(GuiEventNotify::getInstance(),SIGNAL(selectMark(int,int)),this,SLOT(onSelectMark(int,int))); connect(GuiEventNotify::getInstance(),SIGNAL(modifyMark(int,int,QString)),this,SLOT(onModifyMark(int,int,QString))); connect(GuiEventNotify::getInstance(),SIGNAL(unselectMark(int,int)),this,SLOT(onUnselectMark(int,int))); }