/ingamemenuframe.h

http://cutefootball.googlecode.com/ · C Header · 49 lines · 23 code · 7 blank · 19 comment · 0 complexity · 9bcb746ed8ac7f3802c130aec1a8cbdd MD5 · raw file

  1. /*
  2. * Copyright 2010,2011 Timothy Rochford
  3. *
  4. * This file is part of CuteFootball.
  5. *
  6. * CuteFootball is free software: you can redistribute it and/or modify
  7. * it under the terms of the Lesser GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * CuteFootball is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * Lesser GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the Lesser GNU General Public License
  17. * along with CuteFootball. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. #ifndef INGAMEMENUFRAME_H
  21. #define INGAMEMENUFRAME_H
  22. #include <QFrame>
  23. #include "ui_ingamemenuframe.h"
  24. #include "mainwindow.h"
  25. #include "pitch.h"
  26. class InGameMenuFrame : public QFrame
  27. {
  28. Q_OBJECT
  29. public:
  30. explicit InGameMenuFrame(MWindow *parent = 0);
  31. ~InGameMenuFrame();
  32. void setHomeTeamGoals(int n) { ui->homeGoals->setText(QString::number(n)); }
  33. void setAwayTeamGoals(int n) { ui->awayGoals->setText(QString::number(n)); }
  34. void setHomeTeamFlag(QString flag) { ui->homeFlag->setPixmap(QPixmap(flag).scaled(40,30));}
  35. void setAwayTeamFlag(QString flag) { ui->awayFlag->setPixmap(QPixmap(flag).scaled(40,30));}
  36. public slots:
  37. void showFrame(MWindow::Frame f);
  38. private:
  39. Ui::InGameMenuFrame *ui;
  40. Pitch& m_pitch;
  41. };
  42. #endif // INGAMEMENUFRAME_H