~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Tools/LayoutEditor/PropertyFieldEditBox.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           12/2010
5
 
*/
6
 
#ifndef __PROPERTY_FIELD_EDIT_BOX_H__
7
 
#define __PROPERTY_FIELD_EDIT_BOX_H__
8
 
 
9
 
#include "EditorToolTip.h"
10
 
#include "BaseLayout/BaseLayout.h"
11
 
#include "IPropertyField.h"
12
 
 
13
 
namespace tools
14
 
{
15
 
        class PropertyFieldEditBox :
16
 
                public wraps::BaseLayout,
17
 
                public IPropertyField
18
 
        {
19
 
        public:
20
 
                PropertyFieldEditBox(MyGUI::Widget* _parent);
21
 
                virtual ~PropertyFieldEditBox();
22
 
 
23
 
                virtual void initialise(const std::string& _type);
24
 
 
25
 
                virtual void setTarget(MyGUI::Widget* _currentWidget);
26
 
                virtual void setValue(const std::string& _value);
27
 
                virtual void setName(const std::string& _value);
28
 
 
29
 
                virtual void setVisible(bool _value);
30
 
                virtual bool getVisible();
31
 
 
32
 
                virtual MyGUI::IntSize getContentSize();
33
 
                virtual void setCoord(const MyGUI::IntCoord& _coord);
34
 
 
35
 
        private:
36
 
                void notifyApplyProperties(MyGUI::Widget* _sender, bool _force);
37
 
                void notifyTryApplyProperties(MyGUI::EditBox* _sender);
38
 
                void notifyForceApplyProperties(MyGUI::EditBox* _widget);
39
 
 
40
 
        protected:
41
 
                virtual bool onCheckValue();
42
 
                virtual void onAction(const std::string& _value, bool _final);
43
 
 
44
 
        protected:
45
 
                MyGUI::TextBox* mText;
46
 
                MyGUI::EditBox* mField;
47
 
                MyGUI::Widget* mCurrentWidget;
48
 
                std::string mType;
49
 
                std::string mName;
50
 
        };
51
 
 
52
 
} // namespace tools
53
 
 
54
 
#endif // __PROPERTY_FIELD_EDIT_BOX_H__
 
1
/*!
 
2
        @file
 
3
        @author         Albert Semenov
 
4
        @date           12/2010
 
5
*/
 
6
 
 
7
#ifndef _c1d21eed_2872_4685_9244_e8e11dff7029_
 
8
#define _c1d21eed_2872_4685_9244_e8e11dff7029_
 
9
 
 
10
#include "EditorToolTip.h"
 
11
#include "BaseLayout/BaseLayout.h"
 
12
#include "IPropertyField.h"
 
13
 
 
14
namespace tools
 
15
{
 
16
 
 
17
        class PropertyFieldEditBox :
 
18
                public wraps::BaseLayout,
 
19
                public IPropertyField
 
20
        {
 
21
        public:
 
22
                PropertyFieldEditBox(MyGUI::Widget* _parent);
 
23
                virtual ~PropertyFieldEditBox();
 
24
 
 
25
                virtual void initialise(const std::string& _type);
 
26
 
 
27
                virtual void setTarget(MyGUI::Widget* _currentWidget);
 
28
                virtual void setValue(const std::string& _value);
 
29
                virtual void setName(const std::string& _value);
 
30
 
 
31
                virtual void setVisible(bool _value);
 
32
                virtual bool getVisible();
 
33
 
 
34
                virtual MyGUI::IntSize getContentSize();
 
35
                virtual void setCoord(const MyGUI::IntCoord& _coord);
 
36
 
 
37
        private:
 
38
                void notifyApplyProperties(MyGUI::Widget* _sender, bool _force);
 
39
                void notifyTryApplyProperties(MyGUI::EditBox* _sender);
 
40
                void notifyForceApplyProperties(MyGUI::EditBox* _widget);
 
41
 
 
42
        protected:
 
43
                virtual bool onCheckValue();
 
44
                virtual void onAction(const std::string& _value, bool _final);
 
45
 
 
46
        protected:
 
47
                MyGUI::TextBox* mText;
 
48
                MyGUI::EditBox* mField;
 
49
                MyGUI::Widget* mCurrentWidget;
 
50
                std::string mType;
 
51
                std::string mName;
 
52
        };
 
53
 
 
54
}
 
55
 
 
56
#endif