-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dialog.h
38 lines (29 loc) · 721 Bytes
/
Dialog.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
#ifndef DIALOG_H
#define DIALOG_H
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <vector>
#include <string>
#include "NDialog.h"
#include "Component.h"
class Dialog
{
private:
std::vector<Component> components;
int width;
int height;
int timeout;
std::string backtitle;
std::string title;
private:
void GetXMLNodePropNum (xmlNode *node, const char *name, int *buf);
void GetXMLNodePropStr (xmlNode *node, const char *name, std::string &buf);
void GetXMLNodeContent (xmlNode *node, std::string &buf);
public:
Dialog():width(80), height(25), backtitle(""), title("") {}
~Dialog() {
}
void BuildFromXML (const char *file);
void Draw ();
};
#endif // DIALOG_H