31 lines
573 B
C++
31 lines
573 B
C++
#ifndef XMENULIST_H
|
|
#define XMENULIST_H
|
|
|
|
#include "xstring.h"
|
|
#include "xmenudef.h"
|
|
|
|
class XMenuList : public XAsset
|
|
{
|
|
public:
|
|
XMenuList();
|
|
~XMenuList();
|
|
|
|
void SetMenuListName(XString aName);
|
|
XString MenuListName() const;
|
|
|
|
int GetMenuCount() const;
|
|
|
|
void SetMenuEntry(int aIndex, XMenuDef aMenuDef);
|
|
XMenuDef GetMenuEntry(int aIndex) const;
|
|
|
|
virtual void Clear() override;
|
|
virtual void ParseData(XDataStream *aStream) override;
|
|
|
|
private:
|
|
XString mName;
|
|
quint32 mMenuCount;
|
|
QVector<XMenuDef> mMenus;
|
|
};
|
|
|
|
#endif // XMENULIST_H
|