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

« back to all changes in this revision

Viewing changes to Tools/SkinEditor/TextureBrowseControl.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           10/2008
5
 
*/
6
 
#ifndef __TEXTURE_BROWSE_CONTROL_H__
7
 
#define __TEXTURE_BROWSE_CONTROL_H__
8
 
 
9
 
#include <MyGUI.h>
10
 
#include "Tools/Dialog.h"
11
 
#include "ItemBox/BaseItemBox.h"
12
 
#include "TextureBrowseCell.h"
13
 
 
14
 
namespace tools
15
 
{
16
 
        ATTRIBUTE_CLASS_LAYOUT(TextureBrowseControl, "TextureBrowseControl.layout");
17
 
        class TextureBrowseControl :
18
 
                public Dialog
19
 
        {
20
 
        public:
21
 
                TextureBrowseControl();
22
 
                virtual ~TextureBrowseControl();
23
 
 
24
 
                const std::string& getTextureName() const;
25
 
                void setTextureName(const std::string& _value);
26
 
 
27
 
                void setTextures(const MyGUI::VectorString& _textures);
28
 
 
29
 
        protected:
30
 
                virtual void onDoModal();
31
 
                virtual void onEndModal();
32
 
 
33
 
        private:
34
 
                void notifyMouseButtonClickOk(MyGUI::Widget* _sender);
35
 
                void notifyMouseButtonClickCancel(MyGUI::Widget* _sender);
36
 
                void notifyWindowButtonPressed(MyGUI::Window* _sender, const std::string& _name);
37
 
                void notifyChangeItemPosition(MyGUI::ItemBox* _sender, size_t _index);
38
 
 
39
 
        private:
40
 
                ATTRIBUTE_FIELD_WIDGET_NAME(TextureBrowseControl, mOk, "OK");
41
 
                MyGUI::Button* mOk;
42
 
 
43
 
                ATTRIBUTE_FIELD_WIDGET_NAME(TextureBrowseControl, mCancel, "Cancel");
44
 
                MyGUI::Button* mCancel;
45
 
 
46
 
                wraps::BaseItemBox<TextureBrowseCell>* mTextures;
47
 
 
48
 
                std::string mCurrentTextureName;
49
 
        };
50
 
 
51
 
} // namespace tools
52
 
 
53
 
#endif // __TEXTURE_BROWSE_CONTROL_H__