1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 03:53:54 +00:00
openmw/apps/opencs/view/doc/globaldebugprofilemenu.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1,007 B
C++
Raw Normal View History

#ifndef CSV_DOC_GLOBALDEBUGPROFILEMENU_H
#define CSV_DOC_GLOBALDEBUGPROFILEMENU_H
#include <QMenu>
2022-10-19 17:02:00 +00:00
#include <string>
class QAction;
class QActionGroup;
2022-10-19 17:02:00 +00:00
class QModelIndex;
class QObject;
class QWidget;
namespace CSMWorld
{
class IdTable;
}
namespace CSVDoc
{
class GlobalDebugProfileMenu : public QMenu
{
Q_OBJECT
CSMWorld::IdTable* mDebugProfiles;
QActionGroup* mActions;
private:
void rebuild();
2022-09-22 18:26:05 +00:00
public:
GlobalDebugProfileMenu(CSMWorld::IdTable* debugProfiles, QWidget* parent = nullptr);
void updateActions(bool running);
2020-11-13 07:39:47 +00:00
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