Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. DASM(std::string filename, std::function<void(unsigned int, unsigned int)> f = nullptr);
  2.  
  3. if(f!=nullptr)
  4. f(i,decodedInstructionsCount);
  5.  
  6. std::function<void(unsigned int,unsigned int)> get_f()
  7. {
  8. std::function<void(unsigned int,unsigned int)> ret = std::bind(&LoadWindow::pb_next,_2,_1);
  9. return ret;
  10. }
  11.  
  12. void LoadWindow::pb_next(unsigned int now, unsigned int max)
  13. {
  14. this->m_progressbar.set_fraction(((double)now/(double)max));
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement