6
#ifndef __FONT_PANEL_H__
7
#define __FONT_PANEL_H__
10
#include "MyGUI_ResourceTrueTypeFont.h"
11
#include "BaseLayout/BaseLayout.h"
13
#include "TextureView.h"
19
public wraps::BaseLayout
26
void initializeEditBox(MyGUI::EditBox* _editBox);
27
void initializeComboBox(MyGUI::ComboBox* _comboBox);
30
void enableSave(bool _enable, const MyGUI::UString& fileName = MyGUI::UString());
32
void notifyTextChange(MyGUI::EditBox* _sender);
33
void notifyComboBoxChangePosition(MyGUI::ComboBox* _sender, size_t _index);
34
void notifyComboBoxKeySetFocus(MyGUI::Widget* _sender, MyGUI::Widget* _old);
35
void notifyComboBoxKeyLostFocus(MyGUI::Widget* _sender, MyGUI::Widget* _old);
36
void notifyMouseButtonClick(MyGUI::Widget* _widget);
38
void generateFontTTFXml(MyGUI::xml::ElementPtr _root, const std::string& _fontName);
39
void generateFontManualXml(MyGUI::xml::ElementPtr _root, const std::string& _textureName, const std::string& _fontName);
41
void saveTexture(const std::string& _fontName, const std::string& _fileName);
42
void saveFontTTFXml(const std::string& _fontName, const std::string& _fileName);
43
void saveFontManualXml(const std::string& _fontName, const std::string& _textureName, const std::string& _fileName);
45
void removeFont(const std::string& _fontName);
47
void addCode(MyGUI::xml::Element* _node, MyGUI::Char _code, MyGUI::ResourceTrueTypeFont* _font, bool _isSubstitute);
50
MyGUI::ComboBox* mComboFont;
51
MyGUI::EditBox* mEditSize;
52
MyGUI::ComboBox* mComboResolution;
53
MyGUI::ComboBox* mComboAntialias;
54
MyGUI::ComboBox* mComboSpace;
55
MyGUI::ComboBox* mComboTab;
56
MyGUI::ComboBox* mComboOffset;
57
MyGUI::EditBox* mEditRange1A;
58
MyGUI::EditBox* mEditRange1B;
59
MyGUI::EditBox* mEditRange2A;
60
MyGUI::EditBox* mEditRange2B;
61
MyGUI::EditBox* mEditHideA;
62
MyGUI::EditBox* mEditHideB;
63
MyGUI::ComboBox* mComboSubstituteCode;
64
MyGUI::Button* mButtonGenerate;
65
MyGUI::EditBox* mEditSaveFileName;
66
MyGUI::Button* mButtonSave;
68
std::string mFontName;
72
TextureView* mTextureView;
77
#endif // __FONT_PANEL_H__