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

44 lines
832 B
C++
Raw Normal View History

#ifndef CSV_WIDGET_SCENETOOL_MODE_H
#define CSV_WIDGET_SCENETOOL_MODE_H
2013-09-28 11:27:24 +02:00
#include "scenetool.hpp"
#include <map>
class QHBoxLayout;
namespace CSVWidget
2013-09-28 11:27:24 +02:00
{
class SceneToolbar;
2013-09-28 11:27:24 +02:00
///< \brief Mode selector tool
class SceneToolMode : public SceneTool
{
Q_OBJECT
QWidget *mPanel;
QHBoxLayout *mLayout;
std::map<QPushButton *, std::string> mButtons; // widget, id
int mButtonSize;
2014-04-03 13:00:19 +02:00
int mIconSize;
2013-09-28 11:27:24 +02:00
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();
2013-09-28 11:27:24 +02:00
};
}
#endif