mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 02:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
	
		
			1,006 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
	
		
			1,006 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CSV_DOC_GLOBALDEBUGPROFILEMENU_H
 | 
						|
#define CSV_DOC_GLOBALDEBUGPROFILEMENU_H
 | 
						|
 | 
						|
#include <QMenu>
 | 
						|
 | 
						|
class QModelIndex;
 | 
						|
class QActionGroup;
 | 
						|
 | 
						|
namespace CSMWorld
 | 
						|
{
 | 
						|
    class IdTable;
 | 
						|
}
 | 
						|
 | 
						|
namespace CSVDoc
 | 
						|
{
 | 
						|
    class GlobalDebugProfileMenu : public QMenu
 | 
						|
    {
 | 
						|
            Q_OBJECT
 | 
						|
 | 
						|
            CSMWorld::IdTable *mDebugProfiles;
 | 
						|
            QActionGroup *mActions;
 | 
						|
 | 
						|
        private:
 | 
						|
 | 
						|
            void rebuild();
 | 
						|
 | 
						|
        public:
 | 
						|
 | 
						|
            GlobalDebugProfileMenu (CSMWorld::IdTable *debugProfiles, QWidget *parent = 0);
 | 
						|
 | 
						|
            void updateActions (bool running);
 | 
						|
 | 
						|
        private slots:
 | 
						|
 | 
						|
            void profileAboutToBeRemoved (const QModelIndex& parent, int start, int end);
 | 
						|
 | 
						|
            void profileInserted (const QModelIndex& parent, int start, int end);
 | 
						|
 | 
						|
            void profileChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
 | 
						|
 | 
						|
            void actionTriggered (QAction *action);
 | 
						|
 | 
						|
        signals:
 | 
						|
 | 
						|
            void triggered (const std::string& profile);
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |