added SceneToolMode class

actorid
Marc Zinnschlag 11 years ago
parent 84cadc10f4
commit 0c5f07a65a

@ -60,6 +60,7 @@ opencs_hdrs_noqt (view/doc
opencs_units (view/world
table tablesubview scriptsubview util regionmapsubview tablebottombox creator genericcreator
cellcreator referenceablecreator referencecreator scenesubview scenetoolbar scenetool
scenetoolmode
)
opencs_units_noqt (view/world

@ -12,7 +12,7 @@
#include "tablebottombox.hpp"
#include "creator.hpp"
#include "scenetoolbar.hpp"
#include "scenetool.hpp"
#include "scenetoolmode.hpp"
CSVWorld::SceneSubView::SceneSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document)
: SubView (id)
@ -30,10 +30,10 @@ CSVWorld::SceneSubView::SceneSubView (const CSMWorld::UniversalId& id, CSMDoc::D
layout2->setContentsMargins (QMargins (0, 0, 0, 0));
SceneToolbar *toolbar = new SceneToolbar (this);
toolbar->addTool (new SceneTool (this)); // test
toolbar->addTool (new SceneTool (this));
toolbar->addTool (new SceneTool (this));
toolbar->addTool (new SceneTool (this));
toolbar->addTool (new SceneToolMode (this)); // test
toolbar->addTool (new SceneToolMode (this));
toolbar->addTool (new SceneToolMode (this));
toolbar->addTool (new SceneToolMode (this));
layout2->addWidget (toolbar, 0);
/// \todo replace with rendering widget

@ -5,5 +5,4 @@ CSVWorld::SceneTool::SceneTool (QWidget *parent) : QPushButton (parent)
{
setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
setFixedSize (48, 48);
}

@ -5,6 +5,7 @@
namespace CSVWorld
{
///< \brief Tool base class
class SceneTool : public QPushButton
{
Q_OBJECT

@ -0,0 +1,6 @@
#include "scenetoolmode.hpp"
CSVWorld::SceneToolMode::SceneToolMode (QWidget *parent)
: SceneTool (parent)
{}

@ -0,0 +1,19 @@
#ifndef CSV_WORLD_SCENETOOL_MODE_H
#define CSV_WORLD_SCENETOOL_MODE_H
#include "scenetool.hpp"
namespace CSVWorld
{
///< \brief Mode selector tool
class SceneToolMode : public SceneTool
{
Q_OBJECT
public:
SceneToolMode (QWidget *parent = 0);
};
}
#endif
Loading…
Cancel
Save