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

« back to all changes in this revision

Viewing changes to Tools/SkinEditor/SkinPropertyControl.cpp

  • 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           08/2010
5
 
*/
6
 
#include "Precompiled.h"
7
 
#include "SkinPropertyControl.h"
8
 
#include "SkinManager.h"
9
 
 
10
 
namespace tools
11
 
{
12
 
 
13
 
        SkinPropertyControl::SkinPropertyControl(MyGUI::Widget* _parent) :
14
 
                wraps::BaseLayout("SkinPropertyControl.layout", _parent),
15
 
                mPropertyCoordControl(nullptr),
16
 
                mPropertyTexturesControl(nullptr)
17
 
        {
18
 
                assignBase(mPropertyCoordControl, "PropertyCoord");
19
 
                assignBase(mPropertyTexturesControl, "PropertyTextures");
20
 
 
21
 
                initialiseAdvisor();
22
 
        }
23
 
 
24
 
        SkinPropertyControl::~SkinPropertyControl()
25
 
        {
26
 
                shutdownAdvisor();
27
 
        }
28
 
 
29
 
        void SkinPropertyControl::updateSkinProperties()
30
 
        {
31
 
                SkinItem* skin = getCurrentSkin();
32
 
                mPropertyCoordControl->setProperty(skin != nullptr ? skin->getPropertySet()->getChild("Coord") : nullptr);
33
 
                mPropertyTexturesControl->setProperty(skin != nullptr ? skin->getPropertySet()->getChild("Texture") : nullptr);
34
 
        }
35
 
 
36
 
} // namespace tools