1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 11:53:53 +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 11:00:19 +00:00
int mIconSize;
protected:
void focusInEvent(QFocusEvent* event) override;
2022-09-22 18:26:05 +00: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 07:39:47 +00:00
void addTool(SceneTool* tool, SceneTool* insertPoint = nullptr);
2020-11-13 07:39:47 +00:00
void removeTool(SceneTool* tool);
int getButtonSize() const;
int getIconSize() const;
signals:
2014-04-03 11:00:19 +00:00
void focusSceneRequest();
};
}
#endif