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

« back to all changes in this revision

Viewing changes to Tools/SkinEditor/TextureToolControl.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           08/2010
5
 
*/
6
 
#ifndef __TEXTURE_TOOL_CONTROL_H__
7
 
#define __TEXTURE_TOOL_CONTROL_H__
8
 
 
9
 
#include "TextureControl.h"
10
 
 
11
 
namespace tools
12
 
{
13
 
 
14
 
        class TextureToolControl :
15
 
                public TextureControl
16
 
        {
17
 
        public:
18
 
                TextureToolControl(MyGUI::Widget* _parent);
19
 
                virtual ~TextureToolControl();
20
 
 
21
 
                void setActivate(bool _value);
22
 
                bool getActivate() const;
23
 
 
24
 
        protected:
25
 
                virtual void onMouseWheel(int _rel);
26
 
 
27
 
                virtual void onChangeActivate();
28
 
 
29
 
                bool checkCommand();
30
 
                bool checkMenuCommand();
31
 
 
32
 
        private:
33
 
                void notifySettingsChanged(const MyGUI::UString& _sectorName, const MyGUI::UString& _propertyName);
34
 
 
35
 
                void CommandChangeNextScale(const MyGUI::UString& _commandName, bool& _result);
36
 
                void CommandChangePrevScale(const MyGUI::UString& _commandName, bool& _result);
37
 
                void CommandChangeScale(const MyGUI::UString& _commandName, bool& _result);
38
 
 
39
 
                bool doPrevScale();
40
 
                bool doNextScale();
41
 
 
42
 
        private:
43
 
                typedef std::vector<size_t> VectorSizeT;
44
 
                VectorSizeT mScaleValue;
45
 
                size_t mCurrentScaleValue;
46
 
 
47
 
                bool mActivate;
48
 
        };
49
 
 
50
 
} // namespace tools
51
 
 
52
 
#endif // __TEXTURE_TOOL_CONTROL_H__