1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/view/widget/scenetoolrun.hpp

45 lines
936 B
C++
Raw Normal View History

#ifndef CSV_WIDGET_SCENETOOLRUN_H
#define CSV_WIDGET_SCENETOOLRUN_H
#include <vector>
#include <string>
#include "scenetool.hpp"
namespace CSVWidget
{
class SceneToolRun : public SceneTool
{
Q_OBJECT
std::vector<std::string> mProfiles;
int mCurrentIndex;
QString mToolTip;
QString mIcon;
QString mIconDisabled;
private:
void adjustToolTips();
void updateIcon();
public:
SceneToolRun (SceneToolbar *parent, const QString& toolTip, const QString& icon,
const QString& iconDisabled, const std::vector<std::string>& profiles);
virtual void showPanel (const QPoint& position);
virtual void activate();
void removeProfile (const std::string& profile);
signals:
void runRequest (const std::string& profile);
};
}
#endif