GUIBuilder.h
См. документацию.00001
00002
00003
00004
00012
00013 #ifndef GUIBuilder_H_
00014 #define GUIBuilder_H_
00015
00016 #include <string>
00017 #include "UniXML.h"
00018
00019
00020 using namespace std;
00021
00022 namespace UniSetGraphics
00023 {
00024
00025 class GUIBuilder
00026 {
00027 public:
00028 GUIBuilder(const string fileConf);
00029 ~GUIBuilder();
00030
00031 struct NotFound
00032 {
00033 NotFound():msg("GUIBuilder::NotFound"){};
00034 NotFound(const string m):msg(m){};
00035 string msg;
00036 };
00037
00038 struct BoxInfo
00039 {
00040 BoxInfo():x(0),y(0),width(0),height(0){}
00041 ~BoxInfo(){}
00042
00043 int x;
00044 int y;
00045 int width;
00046 int height;
00047
00048 friend std::ostream& operator<<(std::ostream& os, BoxInfo& bi );
00049 };
00050
00056 BoxInfo getBoxInfo( const string& name, const string nodename="");
00057
00063 string getFont( const string& name, const string nodename="");
00064
00065 protected:
00066 GUIBuilder();
00067 UniXML xml;
00068
00073 xmlNode* findNode( const string& searchname, const string field="name", const string nodename="" );
00074 private:
00075
00076 };
00077
00078
00079 }
00080
00081 #endif