mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			802 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			802 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CSV_WORLD_SCENETOOL_MODE_H
 | 
						|
#define CSV_WORLD_SCENETOOL_MODE_H
 | 
						|
 | 
						|
#include "scenetool.hpp"
 | 
						|
 | 
						|
#include <map>
 | 
						|
 | 
						|
class QHBoxLayout;
 | 
						|
 | 
						|
namespace CSVWorld
 | 
						|
{
 | 
						|
    class SceneToolbar;
 | 
						|
 | 
						|
    ///< \brief Mode selector tool
 | 
						|
    class SceneToolMode : public SceneTool
 | 
						|
    {
 | 
						|
            Q_OBJECT
 | 
						|
 | 
						|
            QWidget *mPanel;
 | 
						|
            QHBoxLayout *mLayout;
 | 
						|
            std::map<QPushButton *, std::string> mButtons; // widget, id
 | 
						|
            int mButtonSize;
 | 
						|
 | 
						|
        public:
 | 
						|
 | 
						|
            SceneToolMode (SceneToolbar *parent);
 | 
						|
 | 
						|
            virtual void showPanel (const QPoint& position);
 | 
						|
 | 
						|
            void addButton (const std::string& icon, const std::string& id);
 | 
						|
 | 
						|
        signals:
 | 
						|
 | 
						|
            void modeChanged (const std::string& id);
 | 
						|
 | 
						|
        private slots:
 | 
						|
 | 
						|
            void selected();
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |