Merging dangling default branch.
This commit is contained in:
commit
fb4875570e
60 changed files with 164 additions and 96 deletions
|
@ -35,6 +35,7 @@ namespace NLGUI
|
||||||
class CCtrlButton : public CCtrlBaseButton
|
class CCtrlButton : public CCtrlBaseButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlButton )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CCtrlButton(const TCtorParam ¶m) : CCtrlBaseButton(param)
|
CCtrlButton(const TCtorParam ¶m) : CCtrlBaseButton(param)
|
||||||
|
|
|
@ -36,6 +36,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlColPick )
|
||||||
|
|
||||||
CCtrlColPick(const TCtorParam ¶m);
|
CCtrlColPick(const TCtorParam ¶m);
|
||||||
~CCtrlColPick();
|
~CCtrlColPick();
|
||||||
|
|
|
@ -43,7 +43,8 @@ namespace NLGUI
|
||||||
class CCtrlPolygon : public CCtrlBase
|
class CCtrlPolygon : public CCtrlBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CCtrlPolygon();
|
DECLARE_UI_CLASS( CCtrlPolygon )
|
||||||
|
CCtrlPolygon( const TCtorParam ¶m );
|
||||||
virtual uint32 getMemory() { return (uint32)(sizeof(*this)+_Id.size()); }
|
virtual uint32 getMemory() { return (uint32)(sizeof(*this)+_Id.size()); }
|
||||||
virtual void updateCoords();
|
virtual void updateCoords();
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
|
|
|
@ -38,10 +38,12 @@ namespace NLGUI
|
||||||
class CCtrlQuad : public CCtrlBase
|
class CCtrlQuad : public CCtrlBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlQuad )
|
||||||
|
|
||||||
enum TWrapMode { Repeat = 0, Clamp, CustomUVs, WrapModeCount };
|
enum TWrapMode { Repeat = 0, Clamp, CustomUVs, WrapModeCount };
|
||||||
|
|
||||||
|
|
||||||
CCtrlQuad();
|
CCtrlQuad( const TCtorParam ¶m );
|
||||||
|
|
||||||
// from CInterfaceElement
|
// from CInterfaceElement
|
||||||
bool parse(xmlNodePtr cur,CInterfaceGroup *parentGroup);
|
bool parse(xmlNodePtr cur,CInterfaceGroup *parentGroup);
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace NLGUI
|
||||||
*/
|
*/
|
||||||
class CCtrlSheetSelection
|
class CCtrlSheetSelection
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Add a group, and returns its index, or -1 if already created.
|
// Add a group, and returns its index, or -1 if already created.
|
||||||
sint addGroup(const std::string &name);
|
sint addGroup(const std::string &name);
|
||||||
// Get a group by its name (must exist)
|
// Get a group by its name (must exist)
|
||||||
|
|
|
@ -38,6 +38,7 @@ namespace NLGUI
|
||||||
class CCtrlTextButton : public CCtrlBaseButton
|
class CCtrlTextButton : public CCtrlBaseButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlTextButton )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CCtrlTextButton(const TCtorParam ¶m);
|
CCtrlTextButton(const TCtorParam ¶m);
|
||||||
|
|
|
@ -39,6 +39,7 @@ namespace NLGUI
|
||||||
class CDBGroupComboBox : public CInterfaceGroup
|
class CDBGroupComboBox : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBGroupComboBox )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBGroupComboBox(const TCtorParam ¶m);
|
CDBGroupComboBox(const TCtorParam ¶m);
|
||||||
|
|
|
@ -39,6 +39,7 @@ namespace NLGUI
|
||||||
class CDBGroupSelectNumber : public CInterfaceGroup
|
class CDBGroupSelectNumber : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBGroupSelectNumber )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBGroupSelectNumber(const TCtorParam ¶m);
|
CDBGroupSelectNumber(const TCtorParam ¶m);
|
||||||
|
|
|
@ -37,6 +37,7 @@ namespace NLGUI
|
||||||
public:
|
public:
|
||||||
enum TViewBar { ViewBar_UltraMini, ViewBar_Mini, ViewBar_Normal, ViewBar_MiniThick };
|
enum TViewBar { ViewBar_UltraMini, ViewBar_Mini, ViewBar_Normal, ViewBar_MiniThick };
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBViewBar )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBViewBar(const TCtorParam ¶m)
|
CDBViewBar(const TCtorParam ¶m)
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace NLGUI
|
||||||
class CDBViewBar3 : public CViewBitmap
|
class CDBViewBar3 : public CViewBitmap
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBViewBar3 )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBViewBar3(const TCtorParam ¶m);
|
CDBViewBar3(const TCtorParam ¶m);
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace NLGUI
|
||||||
class CDBViewDigit : public CViewBase
|
class CDBViewDigit : public CViewBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBViewDigit )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBViewDigit(const TCtorParam ¶m);
|
CDBViewDigit(const TCtorParam ¶m);
|
||||||
|
|
|
@ -35,6 +35,7 @@ namespace NLGUI
|
||||||
class CDBViewNumber : public CViewText
|
class CDBViewNumber : public CViewText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBViewNumber )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBViewNumber(const TCtorParam ¶m);
|
CDBViewNumber(const TCtorParam ¶m);
|
||||||
|
|
|
@ -35,6 +35,7 @@ namespace NLGUI
|
||||||
class CDBViewQuantity : public CViewText
|
class CDBViewQuantity : public CViewText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CDBViewQuantity )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CDBViewQuantity(const TCtorParam ¶m);
|
CDBViewQuantity(const TCtorParam ¶m);
|
||||||
|
|
|
@ -48,6 +48,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlResizer )
|
||||||
|
|
||||||
CCtrlResizer(const TCtorParam ¶m);
|
CCtrlResizer(const TCtorParam ¶m);
|
||||||
virtual void draw ();
|
virtual void draw ();
|
||||||
|
@ -98,8 +99,9 @@ namespace NLGUI
|
||||||
class CCtrlMover : public CCtrlBase
|
class CCtrlMover : public CCtrlBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlMover )
|
||||||
|
|
||||||
CCtrlMover(const TCtorParam ¶m, bool canMove, bool canOpen);
|
CCtrlMover(const TCtorParam ¶m, bool canMove = true, bool canOpen = true );
|
||||||
~CCtrlMover();
|
~CCtrlMover();
|
||||||
virtual void draw ();
|
virtual void draw ();
|
||||||
virtual bool handleEvent (const NLGUI::CEventDescriptor &event);
|
virtual bool handleEvent (const NLGUI::CEventDescriptor &event);
|
||||||
|
@ -163,6 +165,7 @@ namespace NLGUI
|
||||||
virtual void childrenMoved(uint srcIndex, uint destIndex, CGroupContainer *children) = 0;
|
virtual void childrenMoved(uint srcIndex, uint destIndex, CGroupContainer *children) = 0;
|
||||||
};
|
};
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupContainer )
|
||||||
CGroupContainer(const TCtorParam ¶m);
|
CGroupContainer(const TCtorParam ¶m);
|
||||||
~CGroupContainer();
|
~CGroupContainer();
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ namespace NLGUI
|
||||||
class CGroupEditBox : public CGroupEditBoxBase
|
class CGroupEditBox : public CGroupEditBoxBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupEditBox )
|
||||||
|
|
||||||
class IComboKeyHandler
|
class IComboKeyHandler
|
||||||
{
|
{
|
||||||
|
@ -42,7 +43,6 @@ namespace NLGUI
|
||||||
|
|
||||||
enum TEntryType { Text, Integer, PositiveInteger, Float, PositiveFloat, Alpha, AlphaNum, AlphaNumSpace, Password, Filename, PlayerName }; // the type of entry this edit bot can deal with
|
enum TEntryType { Text, Integer, PositiveInteger, Float, PositiveFloat, Alpha, AlphaNum, AlphaNumSpace, Password, Filename, PlayerName }; // the type of entry this edit bot can deal with
|
||||||
|
|
||||||
DECLARE_UI_CLASS( CGroupEditBox )
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CGroupEditBox(const TCtorParam ¶m);
|
CGroupEditBox(const TCtorParam ¶m);
|
||||||
/// Dtor
|
/// Dtor
|
||||||
|
|
|
@ -36,6 +36,7 @@ namespace NLGUI
|
||||||
class CGroupFrame : public CInterfaceGroup
|
class CGroupFrame : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupFrame )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CGroupFrame(const TCtorParam ¶m);
|
CGroupFrame(const TCtorParam ¶m);
|
||||||
|
|
|
@ -35,6 +35,8 @@ namespace NLGUI
|
||||||
class CGroupHeader : public CGroupList
|
class CGroupHeader : public CGroupList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupHeader )
|
||||||
|
|
||||||
REFLECT_EXPORT_START(CGroupHeader, CGroupList)
|
REFLECT_EXPORT_START(CGroupHeader, CGroupList)
|
||||||
REFLECT_LUA_METHOD("enlargeColumns", luaEnlargeColumns);
|
REFLECT_LUA_METHOD("enlargeColumns", luaEnlargeColumns);
|
||||||
REFLECT_LUA_METHOD("resizeColumnsAndContainer", luaResizeColumnsAndContainer);
|
REFLECT_LUA_METHOD("resizeColumnsAndContainer", luaResizeColumnsAndContainer);
|
||||||
|
@ -67,6 +69,8 @@ namespace NLGUI
|
||||||
class CGroupHeaderEntry : public CInterfaceGroup
|
class CGroupHeaderEntry : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupHeaderEntry )
|
||||||
|
|
||||||
CGroupHeaderEntry(const TCtorParam ¶m);
|
CGroupHeaderEntry(const TCtorParam ¶m);
|
||||||
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
||||||
// from CInterfaceGroup
|
// from CInterfaceGroup
|
||||||
|
|
|
@ -54,6 +54,8 @@ namespace NLGUI
|
||||||
class CGroupHTML : public CGroupScrollText
|
class CGroupHTML : public CGroupScrollText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupHTML )
|
||||||
|
|
||||||
friend void TextAdd (struct _HText *me, const char * buf, int len);
|
friend void TextAdd (struct _HText *me, const char * buf, int len);
|
||||||
friend void TextBeginElement (_HText *me, int element_number, const BOOL *present, const char ** value);
|
friend void TextBeginElement (_HText *me, int element_number, const BOOL *present, const char ** value);
|
||||||
friend void TextEndElement (_HText *me, int element_number);
|
friend void TextEndElement (_HText *me, int element_number);
|
||||||
|
@ -658,6 +660,8 @@ namespace NLGUI
|
||||||
class CGroupHTMLInputOffset : public CInterfaceGroup
|
class CGroupHTMLInputOffset : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupHTMLInputOffset )
|
||||||
|
|
||||||
sint32 Offset;
|
sint32 Offset;
|
||||||
CGroupHTMLInputOffset(const TCtorParam ¶m);
|
CGroupHTMLInputOffset(const TCtorParam ¶m);
|
||||||
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
||||||
|
|
|
@ -30,6 +30,8 @@ namespace NLGUI
|
||||||
class CGroupList : public CInterfaceGroup
|
class CGroupList : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupList )
|
||||||
|
|
||||||
enum EAlign
|
enum EAlign
|
||||||
{
|
{
|
||||||
Bottom = 0,
|
Bottom = 0,
|
||||||
|
|
|
@ -42,6 +42,7 @@ namespace NLGUI
|
||||||
class CViewTextMenu : public CViewText
|
class CViewTextMenu : public CViewText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewTextMenu )
|
||||||
|
|
||||||
CViewTextMenu(const TCtorParam ¶m) : CViewText(param)
|
CViewTextMenu(const TCtorParam ¶m) : CViewText(param)
|
||||||
{
|
{
|
||||||
|
@ -97,6 +98,7 @@ namespace NLGUI
|
||||||
class CGroupSubMenu : public CGroupSubMenuBase
|
class CGroupSubMenu : public CGroupSubMenuBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupSubMenu )
|
||||||
|
|
||||||
CGroupSubMenu(const TCtorParam ¶m);
|
CGroupSubMenu(const TCtorParam ¶m);
|
||||||
virtual ~CGroupSubMenu();
|
virtual ~CGroupSubMenu();
|
||||||
|
@ -290,6 +292,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupMenu )
|
||||||
|
|
||||||
CGroupMenu(const TCtorParam ¶m);
|
CGroupMenu(const TCtorParam ¶m);
|
||||||
virtual ~CGroupMenu();
|
virtual ~CGroupMenu();
|
||||||
|
|
|
@ -35,6 +35,8 @@ namespace NLGUI
|
||||||
class CGroupModal : public CGroupFrame
|
class CGroupModal : public CGroupFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupModal )
|
||||||
|
|
||||||
bool SpawnOnMousePos : 1;
|
bool SpawnOnMousePos : 1;
|
||||||
bool ExitClickOut : 1;
|
bool ExitClickOut : 1;
|
||||||
bool ExitClickL : 1;
|
bool ExitClickL : 1;
|
||||||
|
|
|
@ -31,6 +31,8 @@ namespace NLGUI
|
||||||
class CCtrlLink : public CCtrlButton
|
class CCtrlLink : public CCtrlButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlLink )
|
||||||
|
|
||||||
CCtrlLink (const TCtorParam ¶m) : CCtrlButton(param)
|
CCtrlLink (const TCtorParam ¶m) : CCtrlButton(param)
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
@ -39,6 +41,8 @@ namespace NLGUI
|
||||||
class CGroupParagraph : public CInterfaceGroup
|
class CGroupParagraph : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupParagraph )
|
||||||
|
|
||||||
enum EAlign
|
enum EAlign
|
||||||
{
|
{
|
||||||
Bottom = 0,
|
Bottom = 0,
|
||||||
|
|
|
@ -39,6 +39,8 @@ namespace NLGUI
|
||||||
class CGroupScrollText : public CInterfaceGroup
|
class CGroupScrollText : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupScrollText )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CGroupScrollText(const TCtorParam ¶m);
|
CGroupScrollText(const TCtorParam ¶m);
|
||||||
~CGroupScrollText();
|
~CGroupScrollText();
|
||||||
|
|
|
@ -43,6 +43,7 @@ namespace NLGUI
|
||||||
class CGroupTab : public CInterfaceGroup
|
class CGroupTab : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupTab )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CGroupTab(const TCtorParam ¶m);
|
CGroupTab(const TCtorParam ¶m);
|
||||||
|
@ -153,6 +154,7 @@ namespace NLGUI
|
||||||
class CCtrlTabButton : public CCtrlTextButton
|
class CCtrlTabButton : public CCtrlTextButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CCtrlTabButton )
|
||||||
|
|
||||||
CCtrlTabButton(const TCtorParam ¶m);
|
CCtrlTabButton(const TCtorParam ¶m);
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
friend class CGroupTable;
|
friend class CGroupTable;
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupCell )
|
||||||
|
|
||||||
CGroupCell(const TCtorParam ¶m);
|
CGroupCell(const TCtorParam ¶m);
|
||||||
|
|
||||||
enum TAlign
|
enum TAlign
|
||||||
|
@ -121,6 +123,7 @@ namespace NLGUI
|
||||||
class CGroupTable : public CInterfaceGroup
|
class CGroupTable : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupTable )
|
||||||
|
|
||||||
///constructor
|
///constructor
|
||||||
CGroupTable(const TCtorParam ¶m);
|
CGroupTable(const TCtorParam ¶m);
|
||||||
|
|
|
@ -33,6 +33,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CGroupTree )
|
||||||
|
|
||||||
struct SNode;
|
struct SNode;
|
||||||
// optional callback that is called when a node has been added
|
// optional callback that is called when a node has been added
|
||||||
|
|
|
@ -28,6 +28,8 @@ namespace NLGUI
|
||||||
class CInterfaceGroupWheel : public CInterfaceGroup
|
class CInterfaceGroupWheel : public CInterfaceGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CInterfaceGroupWheel )
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
CInterfaceGroupWheel(const TCtorParam ¶m);
|
CInterfaceGroupWheel(const TCtorParam ¶m);
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,8 @@ namespace NLGUI
|
||||||
class CViewBitmapCombo : public CViewBase, public NLMISC::ICDBNode::IPropertyObserver
|
class CViewBitmapCombo : public CViewBase, public NLMISC::ICDBNode::IPropertyObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewBitmapCombo )
|
||||||
|
|
||||||
typedef std::vector<sint32> TIdArray;
|
typedef std::vector<sint32> TIdArray;
|
||||||
typedef std::vector<std::string> TStringArray;
|
typedef std::vector<std::string> TStringArray;
|
||||||
typedef std::vector<NLMISC::CRGBA> TColorArray;
|
typedef std::vector<NLMISC::CRGBA> TColorArray;
|
||||||
|
|
|
@ -36,6 +36,7 @@ namespace NLGUI
|
||||||
class CViewLink : public CViewText
|
class CViewLink : public CViewText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewLink )
|
||||||
|
|
||||||
// Default constructor
|
// Default constructor
|
||||||
CViewLink (const TCtorParam ¶m);
|
CViewLink (const TCtorParam ¶m);
|
||||||
|
|
|
@ -36,7 +36,9 @@ namespace NLGUI
|
||||||
class CViewPolygon : public CViewBase
|
class CViewPolygon : public CViewBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CViewPolygon();
|
DECLARE_UI_CLASS( CViewPolygon )
|
||||||
|
|
||||||
|
CViewPolygon( const TCtorParam ¶m );
|
||||||
virtual uint32 getMemory() { return (uint32)(sizeof(*this)+_Id.size()); }
|
virtual uint32 getMemory() { return (uint32)(sizeof(*this)+_Id.size()); }
|
||||||
virtual void updateCoords();
|
virtual void updateCoords();
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
|
|
|
@ -36,10 +36,12 @@ namespace NLGUI
|
||||||
class CViewQuad : public CViewBase
|
class CViewQuad : public CViewBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewQuad )
|
||||||
|
|
||||||
enum TWrapMode { Repeat = 0, Clamp, WrapModeCount };
|
enum TWrapMode { Repeat = 0, Clamp, WrapModeCount };
|
||||||
|
|
||||||
|
|
||||||
CViewQuad();
|
CViewQuad( const TCtorParam ¶m );
|
||||||
|
|
||||||
// from CInterfaceElement
|
// from CInterfaceElement
|
||||||
bool parse(xmlNodePtr cur,CInterfaceGroup *parentGroup);
|
bool parse(xmlNodePtr cur,CInterfaceGroup *parentGroup);
|
||||||
|
|
|
@ -35,6 +35,7 @@ namespace NLGUI
|
||||||
class CViewTextFormated : public CViewText
|
class CViewTextFormated : public CViewText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewTextFormated )
|
||||||
|
|
||||||
/// Interface for classes which can format the text for this view.
|
/// Interface for classes which can format the text for this view.
|
||||||
class IViewTextFormatter
|
class IViewTextFormatter
|
||||||
|
|
|
@ -48,6 +48,7 @@ namespace NLGUI
|
||||||
class CViewTextID : public CViewText
|
class CViewTextID : public CViewText
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewTextID )
|
||||||
|
|
||||||
/// Interface for classes which can provide text to CViewTextId
|
/// Interface for classes which can provide text to CViewTextId
|
||||||
class IViewTextProvider
|
class IViewTextProvider
|
||||||
|
|
|
@ -36,6 +36,8 @@ namespace NLGUI
|
||||||
class CViewTextIDFormated : public CViewTextID
|
class CViewTextIDFormated : public CViewTextID
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DECLARE_UI_CLASS( CViewTextIDFormated )
|
||||||
|
|
||||||
CViewTextIDFormated(const TCtorParam ¶m) : CViewTextID(param)
|
CViewTextIDFormated(const TCtorParam ¶m) : CViewTextID(param)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
// *********************************************************************************
|
// *********************************************************************************
|
||||||
CCtrlPolygon::CCtrlPolygon() : CCtrlBase(TCtorParam())
|
CCtrlPolygon::CCtrlPolygon( const TCtorParam ¶m ) : CCtrlBase( param )
|
||||||
{
|
{
|
||||||
// Construct
|
// Construct
|
||||||
_Color = CRGBA::White;
|
_Color = CRGBA::White;
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
// *********************************************************************************
|
// *********************************************************************************
|
||||||
CCtrlQuad::CCtrlQuad() : CCtrlBase(TCtorParam()), _Color(CRGBA::White),
|
CCtrlQuad::CCtrlQuad( const TCtorParam ¶m ) : CCtrlBase( param ), _Color(CRGBA::White),
|
||||||
_Additif(false),
|
_Additif(false),
|
||||||
_Filtered(true),
|
_Filtered(true),
|
||||||
_UMin(0.f),
|
_UMin(0.f),
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
// *********************************************************************************
|
// *********************************************************************************
|
||||||
CViewPolygon::CViewPolygon() : CViewBase(TCtorParam())
|
CViewPolygon::CViewPolygon( const TCtorParam ¶m ) : CViewBase( param )
|
||||||
{
|
{
|
||||||
// Construct
|
// Construct
|
||||||
_Color = CRGBA::White;
|
_Color = CRGBA::White;
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
|
|
||||||
// *********************************************************************************
|
// *********************************************************************************
|
||||||
CViewQuad::CViewQuad() : CViewBase(TCtorParam()), _Color(CRGBA::White),
|
CViewQuad::CViewQuad( const TCtorParam ¶m ) : CViewBase( param ), _Color(CRGBA::White),
|
||||||
_Additif(false),
|
_Additif(false),
|
||||||
_UMin(0.f),
|
_UMin(0.f),
|
||||||
_UMax(1.f),
|
_UMax(1.f),
|
||||||
|
|
|
@ -33,6 +33,7 @@ FIND_PACKAGE(Libwww REQUIRED)
|
||||||
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}
|
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${LIBXML2_INCLUDE_DIR}
|
${LIBXML2_INCLUDE_DIR}
|
||||||
|
${LUA_INCLUDE_DIR}
|
||||||
${QT_INCLUDES})
|
${QT_INCLUDES})
|
||||||
|
|
||||||
FILE(GLOB SRC *.cpp *.h)
|
FILE(GLOB SRC *.cpp *.h)
|
||||||
|
@ -108,6 +109,7 @@ TARGET_LINK_LIBRARIES(
|
||||||
${LUABIND_LIBRARIES}
|
${LUABIND_LIBRARIES}
|
||||||
${CURL_LIBRARIES}
|
${CURL_LIBRARIES}
|
||||||
${LIBWWW_LIBRARIES}
|
${LIBWWW_LIBRARIES}
|
||||||
|
${LIBXML2_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
NL_DEFAULT_PROPS(ovqt_plugin_gui_editor "NeL, Tools, 3D: Object Viewer Qt Plugin: GUI Editor")
|
NL_DEFAULT_PROPS(ovqt_plugin_gui_editor "NeL, Tools, 3D: Object Viewer Qt Plugin: GUI Editor")
|
||||||
|
|
|
@ -50,8 +50,8 @@ namespace GUIEditor
|
||||||
|
|
||||||
void ActionEditor::onOkButtonClicked()
|
void ActionEditor::onOkButtonClicked()
|
||||||
{
|
{
|
||||||
currentAction->Parameters = paramsEdit->text().toStdString();
|
currentAction->Parameters = paramsEdit->text().toUtf8().constData();
|
||||||
currentAction->Conditions = condEdit->text().toStdString();
|
currentAction->Conditions = condEdit->text().toUtf8().constData();
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,8 @@ namespace GUIEditor
|
||||||
|
|
||||||
projectParser.clear();
|
projectParser.clear();
|
||||||
|
|
||||||
if( !projectParser.parseProjectFile( fileName.toStdString() ) )
|
std::string projectFileName = fileName.toUtf8().constData();
|
||||||
|
if( !projectParser.parseProjectFile( projectFileName ) )
|
||||||
{
|
{
|
||||||
QMessageBox::critical( this,
|
QMessageBox::critical( this,
|
||||||
tr( "Error parsing project file" ),
|
tr( "Error parsing project file" ),
|
||||||
|
@ -185,7 +186,7 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CProjectFileSerializer serializer;
|
CProjectFileSerializer serializer;
|
||||||
serializer.setFile( currentProjectFile.toStdString() );
|
serializer.setFile( currentProjectFile.toUtf8().constData() );
|
||||||
if( !serializer.serialize( projectFiles ) )
|
if( !serializer.serialize( projectFiles ) )
|
||||||
{
|
{
|
||||||
QMessageBox::critical( this,
|
QMessageBox::critical( this,
|
||||||
|
@ -220,7 +221,7 @@ namespace GUIEditor
|
||||||
dir + "/" + projectFiles.projectName.c_str() + ".xml";
|
dir + "/" + projectFiles.projectName.c_str() + ".xml";
|
||||||
|
|
||||||
CProjectFileSerializer serializer;
|
CProjectFileSerializer serializer;
|
||||||
serializer.setFile( newFile.toStdString() );
|
serializer.setFile( newFile.toUtf8().constData() );
|
||||||
if( !serializer.serialize( projectFiles ) )
|
if( !serializer.serialize( projectFiles ) )
|
||||||
{
|
{
|
||||||
QMessageBox::critical( this,
|
QMessageBox::critical( this,
|
||||||
|
@ -230,7 +231,7 @@ namespace GUIEditor
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string guiFile =
|
std::string guiFile =
|
||||||
dir.toStdString() + "/" + "ui_" + projectFiles.projectName + ".xml";
|
std::string( dir.toUtf8().constData() ) + "/" + "ui_" + projectFiles.projectName + ".xml";
|
||||||
|
|
||||||
WidgetSerializer widgetSerializer;
|
WidgetSerializer widgetSerializer;
|
||||||
widgetSerializer.setFile( guiFile );
|
widgetSerializer.setFile( guiFile );
|
||||||
|
|
|
@ -78,11 +78,11 @@ namespace GUIEditor
|
||||||
if( !parser->getLinkData( currentLinkId, data ) )
|
if( !parser->getLinkData( currentLinkId, data ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
data.expr = expressionEdit->toPlainText().toStdString();
|
data.expr = expressionEdit->toPlainText().toUtf8().constData();
|
||||||
data.target = targetEdit->text().toStdString();
|
data.target = targetEdit->text().toUtf8().constData();
|
||||||
data.action = ahEdit->text().toStdString();
|
data.action = ahEdit->text().toUtf8().constData();
|
||||||
data.params = ahParamEdit->text().toStdString();
|
data.params = ahParamEdit->text().toUtf8().constData();
|
||||||
data.cond = condEdit->text().toStdString();
|
data.cond = condEdit->text().toUtf8().constData();
|
||||||
parser->updateLinkData( data.id, data );
|
parser->updateLinkData( data.id, data );
|
||||||
|
|
||||||
Q_EMIT okClicked();
|
Q_EMIT okClicked();
|
||||||
|
|
|
@ -88,7 +88,7 @@ namespace GUIEditor
|
||||||
&ok );
|
&ok );
|
||||||
if( ok )
|
if( ok )
|
||||||
{
|
{
|
||||||
if( CWidgetManager::getInstance()->getElementFromId( parent.toStdString() ) == NULL )
|
if( CWidgetManager::getInstance()->getElementFromId( parent.toUtf8().constData() ) == NULL )
|
||||||
{
|
{
|
||||||
QMessageBox::critical( this,
|
QMessageBox::critical( this,
|
||||||
tr( "Parent group doesn't exist" ),
|
tr( "Parent group doesn't exist" ),
|
||||||
|
@ -96,7 +96,7 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SLinkData data;
|
SLinkData data;
|
||||||
data.parent = parent.toStdString();
|
data.parent = parent.toUtf8().constData();
|
||||||
|
|
||||||
uint32 id = CWidgetManager::getInstance()->getParser()->addLinkData( data );
|
uint32 id = CWidgetManager::getInstance()->getParser()->addLinkData( data );
|
||||||
|
|
||||||
|
|
|
@ -67,9 +67,9 @@ namespace GUIEditor
|
||||||
}
|
}
|
||||||
|
|
||||||
SPropEntry prop;
|
SPropEntry prop;
|
||||||
prop.propName = nameEdit->text().toStdString();
|
prop.propName = nameEdit->text().toUtf8().constData();
|
||||||
prop.propType = typeCB->currentText().toStdString();
|
prop.propType = typeCB->currentText().toUtf8().constData();
|
||||||
prop.propDefault = defvalEdit->text().toStdString();
|
prop.propDefault = defvalEdit->text().toUtf8().constData();
|
||||||
widgetInfoTreeNode->addPropertyToAll( prop );
|
widgetInfoTreeNode->addPropertyToAll( prop );
|
||||||
|
|
||||||
widgetInfoTreeNode = NULL;
|
widgetInfoTreeNode = NULL;
|
||||||
|
@ -84,7 +84,7 @@ namespace GUIEditor
|
||||||
if( widgetInfoTreeNode == NULL )
|
if( widgetInfoTreeNode == NULL )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( widgetInfoTreeNode->hasProperty( nameEdit->text().toStdString() ) )
|
if( widgetInfoTreeNode->hasProperty( nameEdit->text().toUtf8().constData() ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -77,7 +77,7 @@ namespace GUIEditor
|
||||||
|
|
||||||
bool NewWidgetWidget::checkNameField()
|
bool NewWidgetWidget::checkNameField()
|
||||||
{
|
{
|
||||||
if( nameEdit->text().toStdString().empty() )
|
if( nameEdit->text().isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -88,7 +88,7 @@ namespace GUIEditor
|
||||||
if( widgetInfoTree == NULL )
|
if( widgetInfoTree == NULL )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
CWidgetInfoTreeNode *node = widgetInfoTree->findNodeByName( nameEdit->text().toStdString() );
|
CWidgetInfoTreeNode *node = widgetInfoTree->findNodeByName( nameEdit->text().toUtf8().constData() );
|
||||||
if( node != NULL )
|
if( node != NULL )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -98,16 +98,16 @@ namespace GUIEditor
|
||||||
|
|
||||||
void NewWidgetWidget::addNewWidget()
|
void NewWidgetWidget::addNewWidget()
|
||||||
{
|
{
|
||||||
CWidgetInfoTreeNode *node = widgetInfoTree->findNodeByName( ancestorCB->currentText().toStdString() );
|
CWidgetInfoTreeNode *node = widgetInfoTree->findNodeByName( ancestorCB->currentText().toUtf8().constData() );
|
||||||
if( node == NULL )
|
if( node == NULL )
|
||||||
{
|
{
|
||||||
nlerror( "Ancestor %s doesn't exist! Aborting addition!", ancestorCB->currentText().toStdString().c_str() );
|
nlerror( "Ancestor %s doesn't exist! Aborting addition!", ancestorCB->currentText().toUtf8().constData() );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWidgetInfo info;
|
SWidgetInfo info;
|
||||||
info.ancestor = ancestorCB->currentText().toStdString();
|
info.ancestor = ancestorCB->currentText().toUtf8().constData();
|
||||||
info.name = nameEdit->text().toStdString();
|
info.name = nameEdit->text().toUtf8().constData();
|
||||||
info.GUIName = "C" + info.name;
|
info.GUIName = "C" + info.name;
|
||||||
info.isAbstract = false;
|
info.isAbstract = false;
|
||||||
info.resolved = true;
|
info.resolved = true;
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace GUIEditor
|
||||||
|
|
||||||
currentProc = name;
|
currentProc = name;
|
||||||
IParser *parser = CWidgetManager::getInstance()->getParser();
|
IParser *parser = CWidgetManager::getInstance()->getParser();
|
||||||
CProcedure *proc = parser->getProc( name.toStdString() );
|
CProcedure *proc = parser->getProc( name.toUtf8().constData() );
|
||||||
|
|
||||||
std::vector< CProcAction >::const_iterator itr;
|
std::vector< CProcAction >::const_iterator itr;
|
||||||
for( itr = proc->Actions.begin(); itr != proc->Actions.end(); ++itr )
|
for( itr = proc->Actions.begin(); itr != proc->Actions.end(); ++itr )
|
||||||
|
@ -74,7 +74,7 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CProcedure *proc =
|
CProcedure *proc =
|
||||||
CWidgetManager::getInstance()->getParser()->getProc( currentProc.toStdString() );
|
CWidgetManager::getInstance()->getParser()->getProc( currentProc.toUtf8().constData() );
|
||||||
if( proc == NULL )
|
if( proc == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -96,14 +96,14 @@ namespace GUIEditor
|
||||||
if( ok )
|
if( ok )
|
||||||
{
|
{
|
||||||
CProcedure *proc =
|
CProcedure *proc =
|
||||||
CWidgetManager::getInstance()->getParser()->getProc( currentProc.toStdString() );
|
CWidgetManager::getInstance()->getParser()->getProc( currentProc.toUtf8().constData() );
|
||||||
if( proc != NULL )
|
if( proc != NULL )
|
||||||
{
|
{
|
||||||
proc->addAction( name.toStdString() );
|
proc->addAction( name.toUtf8().constData() );
|
||||||
actionList->addItem( name );
|
actionList->addItem( name );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
nlinfo( "Cannot find procedure %s", currentProc.toStdString().c_str() );
|
nlinfo( "Cannot find procedure %s", currentProc.toUtf8().constData() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,17 +123,17 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CProcedure *proc =
|
CProcedure *proc =
|
||||||
CWidgetManager::getInstance()->getParser()->getProc( currentProc.toStdString() );
|
CWidgetManager::getInstance()->getParser()->getProc( currentProc.toUtf8().constData() );
|
||||||
|
|
||||||
if( proc != NULL )
|
if( proc != NULL )
|
||||||
{
|
{
|
||||||
if( !proc->removeAction( static_cast< uint32 >( actionList->currentRow() ) ) )
|
if( !proc->removeAction( static_cast< uint32 >( actionList->currentRow() ) ) )
|
||||||
nlinfo( "Action #%d not found in procedure %s.", actionList->currentRow(), currentProc.toStdString().c_str() );
|
nlinfo( "Action #%d not found in procedure %s.", actionList->currentRow(), currentProc.toUtf8().constData() );
|
||||||
item = actionList->takeItem( actionList->currentRow() );
|
item = actionList->takeItem( actionList->currentRow() );
|
||||||
delete item;
|
delete item;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
nlinfo( "Cannot find procedure %s", currentProc.toStdString().c_str() );
|
nlinfo( "Cannot find procedure %s", currentProc.toUtf8().constData() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcEditor::onUpButtonClicked()
|
void ProcEditor::onUpButtonClicked()
|
||||||
|
@ -149,7 +149,7 @@ namespace GUIEditor
|
||||||
if( prevItem == NULL )
|
if( prevItem == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CProcedure *proc = CWidgetManager::getInstance()->getParser()->getProc( currentProc.toStdString() );
|
CProcedure *proc = CWidgetManager::getInstance()->getParser()->getProc( currentProc.toUtf8().constData() );
|
||||||
if( proc == NULL )
|
if( proc == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ namespace GUIEditor
|
||||||
if( nextItem == NULL )
|
if( nextItem == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CProcedure *proc = CWidgetManager::getInstance()->getParser()->getProc( currentProc.toStdString() );
|
CProcedure *proc = CWidgetManager::getInstance()->getParser()->getProc( currentProc.toUtf8().constData() );
|
||||||
if( proc == NULL )
|
if( proc == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ namespace GUIEditor
|
||||||
if( item == NULL )
|
if( item == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CProcedure *proc = parser->getProc( item->text().toStdString() );
|
CProcedure *proc = parser->getProc( item->text().toUtf8().constData() );
|
||||||
if( proc == NULL )
|
if( proc == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ namespace GUIEditor
|
||||||
if( ok )
|
if( ok )
|
||||||
{
|
{
|
||||||
IParser *parser = CWidgetManager::getInstance()->getParser();
|
IParser *parser = CWidgetManager::getInstance()->getParser();
|
||||||
if( !parser->addProc( newProc.toStdString() ) )
|
if( !parser->addProc( newProc.toUtf8().constData() ) )
|
||||||
{
|
{
|
||||||
QMessageBox::critical( this,
|
QMessageBox::critical( this,
|
||||||
tr( "Cannot add new procedure" ),
|
tr( "Cannot add new procedure" ),
|
||||||
|
@ -113,7 +113,7 @@ namespace GUIEditor
|
||||||
if( button != QMessageBox::Yes )
|
if( button != QMessageBox::Yes )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( !parser->removeProc( item->text().toStdString() ) )
|
if( !parser->removeProc( item->text().toUtf8().constData() ) )
|
||||||
return;
|
return;
|
||||||
item = procList->takeItem( procList->currentRow() );
|
item = procList->takeItem( procList->currentRow() );
|
||||||
delete item;
|
delete item;
|
||||||
|
|
|
@ -121,7 +121,7 @@ namespace GUIEditor
|
||||||
QString name = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
QString name = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
||||||
if( name.isEmpty() )
|
if( name.isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
files.projectName = name.toStdString();
|
files.projectName = name.toUtf8().constData();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if( reader.name() == "version" )
|
if( reader.name() == "version" )
|
||||||
|
@ -137,7 +137,7 @@ namespace GUIEditor
|
||||||
QString mg = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
QString mg = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
||||||
if( mg.isEmpty() )
|
if( mg.isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
files.masterGroup = mg.toStdString();
|
files.masterGroup = mg.toUtf8().constData();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if( reader.name() == "activegroup" )
|
if( reader.name() == "activegroup" )
|
||||||
|
@ -145,7 +145,7 @@ namespace GUIEditor
|
||||||
QString ag = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
QString ag = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
||||||
if( ag.isEmpty() )
|
if( ag.isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
files.activeGroup = ag.toStdString();
|
files.activeGroup = ag.toUtf8().constData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ namespace GUIEditor
|
||||||
QString fileName = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
QString fileName = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
||||||
if( fileName.isEmpty() )
|
if( fileName.isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
files.guiFiles.push_back( fileName.toStdString() );
|
files.guiFiles.push_back( fileName.toUtf8().constData() );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ namespace GUIEditor
|
||||||
QString fileName = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
QString fileName = reader.readElementText( QXmlStreamReader::ErrorOnUnexpectedElement );
|
||||||
if( fileName.isEmpty() )
|
if( fileName.isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
files.mapFiles.push_back( fileName.toStdString() );
|
files.mapFiles.push_back( fileName.toUtf8().constData() );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ namespace GUIEditor
|
||||||
for( int i = 0; i < c; i++ )
|
for( int i = 0; i < c; i++ )
|
||||||
{
|
{
|
||||||
QTreeWidgetItem *item = topItem->child( i );
|
QTreeWidgetItem *item = topItem->child( i );
|
||||||
projectFiles.guiFiles.push_back( item->text( 0 ).toStdString() );
|
projectFiles.guiFiles.push_back( item->text( 0 ).toUtf8().constData() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ namespace GUIEditor
|
||||||
for( int i = 0; i < c; i++ )
|
for( int i = 0; i < c; i++ )
|
||||||
{
|
{
|
||||||
QTreeWidgetItem *item = topItem->child( i );
|
QTreeWidgetItem *item = topItem->child( i );
|
||||||
projectFiles.mapFiles.push_back( item->text( 0 ).toStdString() );
|
projectFiles.mapFiles.push_back( item->text( 0 ).toUtf8().constData() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,13 +82,9 @@ namespace GUIEditor
|
||||||
|
|
||||||
currentElement = id;
|
currentElement = id;
|
||||||
|
|
||||||
std::string n;
|
std::string n = e->getClassName();
|
||||||
n = typeid( *e ).name();
|
|
||||||
std::string::size_type i = n.find_last_of( ':' );
|
|
||||||
if( i != std::string::npos )
|
|
||||||
n = n.substr( i + 1, n.size() - 1 );
|
|
||||||
|
|
||||||
setupProperties( n, e );
|
setupProperties( n, e );
|
||||||
connect( propertyMgr, SIGNAL( propertyChanged( QtProperty* ) ),
|
connect( propertyMgr, SIGNAL( propertyChanged( QtProperty* ) ),
|
||||||
this, SLOT( onPropertyChanged( QtProperty* ) ) );
|
this, SLOT( onPropertyChanged( QtProperty* ) ) );
|
||||||
}
|
}
|
||||||
|
@ -109,7 +105,7 @@ namespace GUIEditor
|
||||||
CInterfaceElement *e = CWidgetManager::getInstance()->getElementFromId( currentElement );
|
CInterfaceElement *e = CWidgetManager::getInstance()->getElementFromId( currentElement );
|
||||||
if( e == NULL )
|
if( e == NULL )
|
||||||
return;
|
return;
|
||||||
e->setProperty( propName.toStdString(), propValue.toStdString() );
|
e->setProperty( propName.toUtf8().constData(), propValue.toUtf8().constData() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPropBrowserCtrl::setupProperties( const std::string &type, const CInterfaceElement *element )
|
void CPropBrowserCtrl::setupProperties( const std::string &type, const CInterfaceElement *element )
|
||||||
|
@ -163,4 +159,4 @@ namespace GUIEditor
|
||||||
p->setValue( v );
|
p->setValue( v );
|
||||||
browser->addProperty( p );
|
browser->addProperty( p );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace
|
||||||
item = item->parent();
|
item = item->parent();
|
||||||
}
|
}
|
||||||
|
|
||||||
name = s.toStdString();
|
name = s.toUtf8().constData();
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,8 @@ namespace GUIEditor
|
||||||
if( item->parent() == NULL )
|
if( item->parent() == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::string selection = makeFullName( item, item->text( 0 ).toStdString() );
|
std::string n = item->text( 0 ).toUtf8().constData();
|
||||||
|
std::string selection = makeFullName( item, n );
|
||||||
CWidgetManager::getInstance()->setCurrentEditorSelection( selection );
|
CWidgetManager::getInstance()->setCurrentEditorSelection( selection );
|
||||||
|
|
||||||
Q_EMIT selectionChanged( selection );
|
Q_EMIT selectionChanged( selection );
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace GUIEditor
|
||||||
std::vector< SPropEntry >::const_iterator itr = parentInfo.props.begin();
|
std::vector< SPropEntry >::const_iterator itr = parentInfo.props.begin();
|
||||||
while( itr != parentInfo.props.end() )
|
while( itr != parentInfo.props.end() )
|
||||||
{
|
{
|
||||||
std::vector< SPropEntry >::const_iterator fItr;
|
std::vector< SPropEntry >::iterator fItr;
|
||||||
fItr = std::find( props.begin(), props.end(), *itr );
|
fItr = std::find( props.begin(), props.end(), *itr );
|
||||||
if( fItr == props.end() )
|
if( fItr == props.end() )
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -82,7 +82,7 @@ namespace GUIEditor
|
||||||
/// Remove child by name
|
/// Remove child by name
|
||||||
bool removeChildByName( const std::string &name )
|
bool removeChildByName( const std::string &name )
|
||||||
{
|
{
|
||||||
for( std::vector< CWidgetInfoTreeNode* >::const_iterator itr = children.begin(); itr != children.end(); ++itr )
|
for( std::vector< CWidgetInfoTreeNode* >::iterator itr = children.begin(); itr != children.end(); ++itr )
|
||||||
{
|
{
|
||||||
if( ( *itr )->getInfo().name == name )
|
if( ( *itr )->getInfo().name == name )
|
||||||
{
|
{
|
||||||
|
@ -98,7 +98,7 @@ namespace GUIEditor
|
||||||
/// Remove child by name, but don't delete the child
|
/// Remove child by name, but don't delete the child
|
||||||
bool removeChildByNameND( const std::string &name )
|
bool removeChildByNameND( const std::string &name )
|
||||||
{
|
{
|
||||||
for( std::vector< CWidgetInfoTreeNode* >::const_iterator itr = children.begin(); itr != children.end(); ++itr )
|
for( std::vector< CWidgetInfoTreeNode* >::iterator itr = children.begin(); itr != children.end(); ++itr )
|
||||||
{
|
{
|
||||||
if( ( *itr )->getInfo().name == name )
|
if( ( *itr )->getInfo().name == name )
|
||||||
{
|
{
|
||||||
|
@ -113,7 +113,7 @@ namespace GUIEditor
|
||||||
/// Remove child by ancestor's name
|
/// Remove child by ancestor's name
|
||||||
bool removeChildByAncestor( const std::string &ancestor )
|
bool removeChildByAncestor( const std::string &ancestor )
|
||||||
{
|
{
|
||||||
for( std::vector< CWidgetInfoTreeNode* >::const_iterator itr = children.begin(); itr != children.end(); ++itr )
|
for( std::vector< CWidgetInfoTreeNode* >::iterator itr = children.begin(); itr != children.end(); ++itr )
|
||||||
{
|
{
|
||||||
if( ( *itr )->getInfo().ancestor == ancestor )
|
if( ( *itr )->getInfo().ancestor == ancestor )
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,7 @@ namespace GUIEditor
|
||||||
/// Removes this property from the node
|
/// Removes this property from the node
|
||||||
void removeProperty( const SPropEntry &prop )
|
void removeProperty( const SPropEntry &prop )
|
||||||
{
|
{
|
||||||
std::vector< SPropEntry >::const_iterator itr = info.props.begin();
|
std::vector< SPropEntry >::iterator itr = info.props.begin();
|
||||||
while( itr != info.props.end() )
|
while( itr != info.props.end() )
|
||||||
{
|
{
|
||||||
if( ( itr->propName == prop.propName ) &&
|
if( ( itr->propName == prop.propName ) &&
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "widget_info_serializer.h"
|
#include "widget_info_serializer.h"
|
||||||
#include "new_property_widget.h"
|
#include "new_property_widget.h"
|
||||||
#include "new_widget_widget.h"
|
#include "new_widget_widget.h"
|
||||||
#include <qmessagebox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
namespace GUIEditor{
|
namespace GUIEditor{
|
||||||
CWidgetProperties::CWidgetProperties( QWidget *parent ) :
|
CWidgetProperties::CWidgetProperties( QWidget *parent ) :
|
||||||
|
@ -63,7 +63,7 @@ namespace GUIEditor{
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QListWidgetItem *item = widgetList->item( i );
|
QListWidgetItem *item = widgetList->item( i );
|
||||||
setPropsOf( item->text().toStdString().c_str() );
|
setPropsOf( item->text().toUtf8().constData() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ namespace GUIEditor{
|
||||||
if( reply != QMessageBox::Yes )
|
if( reply != QMessageBox::Yes )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
tree->removeNode( widgetName.toStdString() );
|
tree->removeNode( widgetName.toUtf8().constData() );
|
||||||
widgetPropTree->clear();
|
widgetPropTree->clear();
|
||||||
buildWidgetList();
|
buildWidgetList();
|
||||||
}
|
}
|
||||||
|
@ -91,12 +91,12 @@ namespace GUIEditor{
|
||||||
void CWidgetProperties::onRemovePButtonClicked()
|
void CWidgetProperties::onRemovePButtonClicked()
|
||||||
{
|
{
|
||||||
QTreeWidgetItem *item = widgetPropTree->currentItem();
|
QTreeWidgetItem *item = widgetPropTree->currentItem();
|
||||||
CWidgetInfoTreeNode *node = tree->findNodeByName( widgetList->currentItem()->text().toStdString() );
|
CWidgetInfoTreeNode *node = tree->findNodeByName( widgetList->currentItem()->text().toUtf8().constData() );
|
||||||
|
|
||||||
if( ( item == NULL ) || ( node == NULL ) )
|
if( ( item == NULL ) || ( node == NULL ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::string name = item->text( 0 ).toStdString();
|
std::string name = item->text( 0 ).toUtf8().constData();
|
||||||
|
|
||||||
std::vector< SPropEntry >::const_iterator itr = node->getInfo().findProp( name );
|
std::vector< SPropEntry >::const_iterator itr = node->getInfo().findProp( name );
|
||||||
if( itr == node->getInfo().props.end() )
|
if( itr == node->getInfo().props.end() )
|
||||||
|
@ -133,7 +133,7 @@ namespace GUIEditor{
|
||||||
if( ( widgetList->currentRow() >= widgetList->count() ) || ( widgetList->currentRow() < 0 ) )
|
if( ( widgetList->currentRow() >= widgetList->count() ) || ( widgetList->currentRow() < 0 ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CWidgetInfoTreeNode *node = tree->findNodeByName( widgetList->currentItem()->text().toStdString() );
|
CWidgetInfoTreeNode *node = tree->findNodeByName( widgetList->currentItem()->text().toUtf8().constData() );
|
||||||
if( node == NULL )
|
if( node == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace GUIEditor
|
||||||
f.close();
|
f.close();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
nlwarning( QString( "File %1 cannot be opened!" ).arg( file ).toStdString().c_str() );
|
nlwarning( QString( "File %1 cannot be opened!" ).arg( file ).toUtf8().constData() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWidgetPropParser::parseGUIWidgetXML( QFile &file )
|
void CWidgetPropParser::parseGUIWidgetXML( QFile &file )
|
||||||
|
@ -126,19 +126,19 @@ namespace GUIEditor
|
||||||
if( !reader.hasError() )
|
if( !reader.hasError() )
|
||||||
{
|
{
|
||||||
if( key == "name" )
|
if( key == "name" )
|
||||||
info.name = value.toStdString();
|
info.name = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "guiname" )
|
if( key == "guiname" )
|
||||||
info.GUIName = value.toStdString();
|
info.GUIName = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "ancestor" )
|
if( key == "ancestor" )
|
||||||
info.ancestor = value.toStdString();
|
info.ancestor = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "description" )
|
if( key == "description" )
|
||||||
info.description = value.toStdString();
|
info.description = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "icon" )
|
if( key == "icon" )
|
||||||
info.icon == value.toStdString();
|
info.icon == value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "abstract" )
|
if( key == "abstract" )
|
||||||
{
|
{
|
||||||
|
@ -169,7 +169,7 @@ namespace GUIEditor
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::map< std::string, SWidgetInfo >::iterator itr =
|
std::map< std::string, SWidgetInfo >::iterator itr =
|
||||||
widgetInfo->find( widgetName.toStdString() );
|
widgetInfo->find( widgetName.toUtf8().constData() );
|
||||||
if( itr == widgetInfo->end() )
|
if( itr == widgetInfo->end() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -192,15 +192,15 @@ namespace GUIEditor
|
||||||
if( !reader.hasError() )
|
if( !reader.hasError() )
|
||||||
{
|
{
|
||||||
if( key == "name" )
|
if( key == "name" )
|
||||||
prop.propName = value.toStdString();
|
prop.propName = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "type" )
|
if( key == "type" )
|
||||||
prop.propType = value.toStdString();
|
prop.propType = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
if( key == "default" )
|
if( key == "default" )
|
||||||
prop.propDefault = value.toStdString();
|
prop.propDefault = value.toUtf8().constData();
|
||||||
else
|
else
|
||||||
nlwarning( QString( "Unknown tag %1 within a property" ).arg( key ).toStdString().c_str() );
|
nlwarning( QString( "Unknown tag %1 within a property" ).arg( key ).toUtf8().constData() );
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -733,7 +733,8 @@ bool CGroupMap::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
//if (pCB != NULL) pCB->setActive(false);
|
//if (pCB != NULL) pCB->setActive(false);
|
||||||
}
|
}
|
||||||
nlassert(!_FrustumView);
|
nlassert(!_FrustumView);
|
||||||
_FrustumView = new CCtrlQuad;
|
CViewBase::TCtorParam param;
|
||||||
|
_FrustumView = new CCtrlQuad( param );
|
||||||
_FrustumView->setActive(false);
|
_FrustumView->setActive(false);
|
||||||
addView(_FrustumView);
|
addView(_FrustumView);
|
||||||
_FrustumView->setParent(this);
|
_FrustumView->setParent(this);
|
||||||
|
|
|
@ -548,9 +548,10 @@ void CDisplayerVisualActivitySequence::setWorldMapNumEdges(uint count)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
uint left = count - (uint)_WorldMapEdges.size();
|
uint left = count - (uint)_WorldMapEdges.size();
|
||||||
|
CViewBase::TCtorParam param;
|
||||||
while (left --)
|
while (left --)
|
||||||
{
|
{
|
||||||
CCtrlQuad *cq = new CCtrlQuad;
|
CCtrlQuad *cq = new CCtrlQuad( param );
|
||||||
cq->setModulateGlobalColor(false);
|
cq->setModulateGlobalColor(false);
|
||||||
cq->setActive(true);
|
cq->setActive(true);
|
||||||
gm->addCtrl(cq);
|
gm->addCtrl(cq);
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace R2
|
||||||
class CCtrlPolygonSelectable : public CCtrlPolygon, public IDisplayerUIHandle
|
class CCtrlPolygonSelectable : public CCtrlPolygon, public IDisplayerUIHandle
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CCtrlPolygonSelectable(CInstance &instance) : Instance(instance) {}
|
CCtrlPolygonSelectable( CViewBase::TCtorParam ¶m, CInstance &instance) : Instance(instance), CCtrlPolygon( param ) {}
|
||||||
// from IDisplayerUIHandle
|
// from IDisplayerUIHandle
|
||||||
virtual CInstance &getDisplayedInstance() { return Instance; }
|
virtual CInstance &getDisplayedInstance() { return Instance; }
|
||||||
// from IDisplayerUIHandle
|
// from IDisplayerUIHandle
|
||||||
|
@ -99,7 +99,7 @@ protected:
|
||||||
class CCtrlQuadSelectable : public CCtrlQuad, public IDisplayerUIHandle
|
class CCtrlQuadSelectable : public CCtrlQuad, public IDisplayerUIHandle
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CCtrlQuadSelectable(CInstance &instance, uint edgeIndex) : Instance(instance), EdgeIndex(edgeIndex) {}
|
CCtrlQuadSelectable( CViewBase::TCtorParam ¶m, CInstance &instance, uint edgeIndex) : Instance(instance), EdgeIndex(edgeIndex), CCtrlQuad( param ){}
|
||||||
// from IDisplayerUIHandle
|
// from IDisplayerUIHandle
|
||||||
virtual CInstance &getDisplayedInstance() { return Instance; }
|
virtual CInstance &getDisplayedInstance() { return Instance; }
|
||||||
// from IDisplayerUIHandle
|
// from IDisplayerUIHandle
|
||||||
|
@ -179,7 +179,8 @@ CCtrlPolygon *CDisplayerVisualGroup::CSelectablePrimRender::newCtrlPolygon() con
|
||||||
{
|
{
|
||||||
//H_AUTO(R2_CDisplayerVisualGroup_CSelectablePrimRender)
|
//H_AUTO(R2_CDisplayerVisualGroup_CSelectablePrimRender)
|
||||||
nlassert(DisplayedInstance);
|
nlassert(DisplayedInstance);
|
||||||
CCtrlPolygonSelectable *result = new CCtrlPolygonSelectable(*DisplayedInstance);
|
CViewBase::TCtorParam param;
|
||||||
|
CCtrlPolygonSelectable *result = new CCtrlPolygonSelectable( param, *DisplayedInstance);
|
||||||
result->setId(DisplayedInstance->getId());
|
result->setId(DisplayedInstance->getId());
|
||||||
result->setToolTipParent(CCtrlBase::TTMouse);
|
result->setToolTipParent(CCtrlBase::TTMouse);
|
||||||
result->setToolTipParentPosRef(Hotspot_BR);
|
result->setToolTipParentPosRef(Hotspot_BR);
|
||||||
|
@ -192,7 +193,8 @@ CCtrlQuad *CDisplayerVisualGroup::CSelectablePrimRender::newCtrlQuad(uint edgeIn
|
||||||
{
|
{
|
||||||
//H_AUTO(R2_CDisplayerVisualGroup_CSelectablePrimRender)
|
//H_AUTO(R2_CDisplayerVisualGroup_CSelectablePrimRender)
|
||||||
nlassert(DisplayedInstance);
|
nlassert(DisplayedInstance);
|
||||||
CCtrlQuadSelectable *result = new CCtrlQuadSelectable(*DisplayedInstance, edgeIndex);
|
CViewBase::TCtorParam param;
|
||||||
|
CCtrlQuadSelectable *result = new CCtrlQuadSelectable( param, *DisplayedInstance, edgeIndex);
|
||||||
result->setToolTipParent(CCtrlBase::TTMouse);
|
result->setToolTipParent(CCtrlBase::TTMouse);
|
||||||
result->setToolTipParentPosRef(Hotspot_BR);
|
result->setToolTipParentPosRef(Hotspot_BR);
|
||||||
result->setToolTipPosRef(Hotspot_TL);
|
result->setToolTipPosRef(Hotspot_TL);
|
||||||
|
|
|
@ -110,7 +110,8 @@ CCtrlQuad *CInstanceMapDeco::newQuad(CGroupMap &owner)
|
||||||
{
|
{
|
||||||
//H_AUTO(R2_CInstanceMapDeco_newQuad)
|
//H_AUTO(R2_CInstanceMapDeco_newQuad)
|
||||||
nlassert(_Instance);
|
nlassert(_Instance);
|
||||||
CCtrlQuad *q = new CCtrlQuad;
|
CViewBase::TCtorParam param;
|
||||||
|
CCtrlQuad *q = new CCtrlQuad( param );
|
||||||
q->setActive(false);
|
q->setActive(false);
|
||||||
q->setModulateGlobalColor(false);
|
q->setModulateGlobalColor(false);
|
||||||
owner.addCtrl(q);
|
owner.addCtrl(q);
|
||||||
|
@ -156,9 +157,11 @@ void CInstanceMapDeco::onAdd(CGroupMap &owner)
|
||||||
CInterfaceGroup *window = owner.getParentContainer();
|
CInterfaceGroup *window = owner.getParentContainer();
|
||||||
if (window)
|
if (window)
|
||||||
{
|
{
|
||||||
|
CViewBase::TCtorParam param;
|
||||||
|
|
||||||
for(uint k = 0; k < 2; ++k)
|
for(uint k = 0; k < 2; ++k)
|
||||||
{
|
{
|
||||||
_GlowStar[k] = new CCtrlQuad;
|
_GlowStar[k] = new CCtrlQuad( param );
|
||||||
_GlowStar[k]->setActive(false);
|
_GlowStar[k]->setActive(false);
|
||||||
_GlowStar[k]->setModulateGlobalColor(false);
|
_GlowStar[k]->setModulateGlobalColor(false);
|
||||||
window->addCtrl(_GlowStar[k]);
|
window->addCtrl(_GlowStar[k]);
|
||||||
|
|
|
@ -188,6 +188,8 @@ CCtrlPolygon *CPrimRender::newCtrlPolygon() const
|
||||||
//H_AUTO(R2_CPrimRender_newCtrlPolygon)
|
//H_AUTO(R2_CPrimRender_newCtrlPolygon)
|
||||||
class CCtrlMapPolygon : public CCtrlPolygon
|
class CCtrlMapPolygon : public CCtrlPolygon
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
CCtrlMapPolygon( CViewBase::TCtorParam ¶m ) : CCtrlPolygon( param ){}
|
||||||
protected:
|
protected:
|
||||||
// from CCtrlPolygon
|
// from CCtrlPolygon
|
||||||
void computeScaledVertex(NLMISC::CVector2f &dest, const NLMISC::CVector2f &src)
|
void computeScaledVertex(NLMISC::CVector2f &dest, const NLMISC::CVector2f &src)
|
||||||
|
@ -197,14 +199,16 @@ CCtrlPolygon *CPrimRender::newCtrlPolygon() const
|
||||||
gm->worldToWindow(dest, src);
|
gm->worldToWindow(dest, src);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return new CCtrlMapPolygon;
|
CViewBase::TCtorParam param;
|
||||||
|
return new CCtrlMapPolygon( param );
|
||||||
}
|
}
|
||||||
|
|
||||||
// *********************************************************
|
// *********************************************************
|
||||||
CCtrlQuad *CPrimRender::newCtrlQuad(uint /* edgeIndex */) const
|
CCtrlQuad *CPrimRender::newCtrlQuad(uint /* edgeIndex */) const
|
||||||
{
|
{
|
||||||
//H_AUTO(R2_CPrimRender_newCtrlQuad)
|
//H_AUTO(R2_CPrimRender_newCtrlQuad)
|
||||||
return new CCtrlQuad;
|
CViewBase::TCtorParam param;
|
||||||
|
return new CCtrlQuad( param );
|
||||||
}
|
}
|
||||||
|
|
||||||
// *********************************************************
|
// *********************************************************
|
||||||
|
|
Loading…
Reference in a new issue