1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00
OpenMW/apps/opencs/view/widget/scenetoolbar.hpp

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

43 lines
829 B
C++
Raw Normal View History

#ifndef CSV_WIDGET_SCENETOOLBAR_H
#define CSV_WIDGET_SCENETOOLBAR_H
#include <QWidget>
class QVBoxLayout;
namespace CSVWidget
{
class SceneTool;
class SceneToolbar : public QWidget
{
Q_OBJECT
QVBoxLayout* mLayout;
int mButtonSize;
2014-04-03 13:00:19 +02:00
int mIconSize;
protected:
void focusInEvent(QFocusEvent* event) override;
2022-09-22 21:26:05 +03:00
public:
SceneToolbar(int buttonSize, QWidget* parent = nullptr);
/// If insertPoint==0, insert \a tool at the end of the scrollbar. Otherwise
/// insert tool after \a insertPoint.
2020-11-13 11:39:47 +04:00
void addTool(SceneTool* tool, SceneTool* insertPoint = nullptr);
2020-11-13 11:39:47 +04:00
void removeTool(SceneTool* tool);
int getButtonSize() const;
int getIconSize() const;
signals:
2014-04-03 13:00:19 +02:00
void focusSceneRequest();
};
}
#endif