Movie::Movie( std::vector< std::vector< std::string > > &db ) { setIMDBID( db[0][0] ); setTitle( db[0][1] ); setRated( db[0][2] ); setReleased( db[0][3] ); setRuntime( db[0][4] ); setPlot( db[0][5] ); setPoster( db[0][6] ); setType( db[0][7] ); setYear( std::stoi( db[0][8] ) ); setIMDBRating( std::stod( db[0][9] ) ); setIMDBVotes( std::stoi( db[0][10] ) ); setTomatoFresh( std::stoi( db[0][11] ) ); setTomatoImage( db[0][12] ); setTomatoMeter( std::stoi( db[0][13] ) ); setTomatoRating( std::stod( db[0][14] ) ); setTomatoReviews( std::stoi( db[0][15] ) ); setTomatoRotten( std::stoi( db[0][16] ) ); setTomatoUserMeter( std::stoi( db[0][17] ) ); setTomatoUserRating( std::stod( db[0][18] ) ); setTomatoUserReviews( std::stoi( db[0][19] ) ); for( int row = 0; row < db.size(); row++ ) { this->addActor( db[row][20] ); this->addDirector( db[row][21] ); this->addGenre( db[row][22] ); this->addWriter( db[row][23] ); } }
void TCompGuiButton::Clicked() { if (checkEnabled()) { if (!checkOver()) { ChangeState(STRING(Enabled)); render_state_target = RSTATE_ENABLED; notifyOver(false); } else if (checkReleased()) { setReleased(); //logic_manager->throwEvent(CLogicManagerModule::EVENT::OnClicked, MY_NAME, MY_OWNER); } } }
Movie::Movie( std::string imdb_id, std::string title, std::string rated, std::string release, std::string runtime, std::string plot, std::string poster, std::string type, int year, double imdb_rating, int imdb_votes, int tomato_fresh, std::string tomato_image, int tomato_meter, double tomato_rating, int tomato_reviews, int tomato_rotten, int tomato_user_meter, double tomato_user_rating, int tomato_user_reviews) { setIMDBID( imdb_id ); setTitle( title ); setRated( rated ); setReleased( release ); setRuntime( runtime ); setPlot( plot ); setPoster( poster ); setType( type ); setYear( year ); setIMDBRating( imdb_rating ); setIMDBVotes( imdb_votes ); setTomatoFresh( tomato_fresh ); setTomatoImage( tomato_image ); setTomatoMeter( tomato_meter ); setTomatoRating( tomato_rating ); setTomatoReviews( tomato_reviews ); setTomatoRotten( tomato_rotten ); setTomatoUserMeter( tomato_user_meter ); setTomatoUserRating( tomato_user_rating ); setTomatoUserReviews( tomato_user_reviews ); }
Movie::Movie( std::vector< std::string > &db ) { setIMDBID( db[0] ); setTitle( db[1] ); setRated( db[2] ); setReleased( db[3] ); setRuntime( db[4] ); setPlot( db[5] ); setPoster( db[6] ); setType( db[7] ); setYear( std::stoi( db[8] ) ); setIMDBRating( std::stod( db[9] ) ); setIMDBVotes( std::stoi( db[10] ) ); setTomatoFresh( std::stoi( db[11] ) ); setTomatoImage( db[12] ); setTomatoMeter( std::stoi( db[13] ) ); setTomatoRating( std::stod( db[14] ) ); setTomatoReviews( std::stoi( db[15] ) ); setTomatoRotten( std::stoi( db[16] ) ); setTomatoUserMeter( std::stoi( db[17] ) ); setTomatoUserRating( std::stod( db[18] ) ); setTomatoUserReviews( std::stoi( db[19] ) ); }
//Messages void TCompGuiButton::onClick(const TMsgClicked&) { setReleased(); }