-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreportinfo.h
40 lines (28 loc) · 898 Bytes
/
reportinfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#ifndef _CSMAP_REPORTINFO
#define _CSMAP_REPORTINFO
#include "messagelist.h"
#include <fx.h>
#include <list>
#include <memory>
#include <vector>
class FXReportInfo : public FXMessageList
{
public:
void create();
FXReportInfo(FXComposite* p, FXObject* tgt = nullptr, FXSelector sel = 0, FXuint opts = 0, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
virtual ~FXReportInfo();
virtual void setMapFile(std::shared_ptr<datafile>& f);
protected:
void addMessage(FXTreeItem* group, const datablock& msg);
void addBattle(const datablock::itor& block);
void addFaction(const datablock::itor& block);
protected:
FXReportInfo() {}
FXReportInfo(const FXReportInfo&) = delete;
private:
static const char *messageSection(const FXString& section);
FXTreeItem* messages = nullptr;
FXTreeItem* battles = nullptr;
};
#endif //_CSMAP_MESSAGES