Move mod info frame and handler to MCModInfoFrame, use on all instances

This commit is contained in:
Sky
2013-10-08 21:45:48 +01:00
parent 60e7e019fe
commit f2291ef161
10 changed files with 597 additions and 427 deletions

32
gui/MCModInfoFrame.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef MCMODINFOFRAME_H
#define MCMODINFOFRAME_H
#include <QFrame>
#include "logic/Mod.h"
namespace Ui {
class MCModInfoFrame;
}
class MCModInfoFrame : public QFrame
{
Q_OBJECT
public:
explicit MCModInfoFrame(QWidget *parent = 0);
~MCModInfoFrame();
void setName(QString name);
void setDescription(QString description);
void setAuthors(QString authors);
void setCredits(QString credits);
void setWebsite(QString website);
private:
Ui::MCModInfoFrame *ui;
};
void handleModInfoUpdate(Mod &m, MCModInfoFrame *frame);
#endif // MCMODINFOFRAME_H