1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

added SceneToolMode class

This commit is contained in:
Marc Zinnschlag 2013-09-28 11:27:24 +02:00
parent 84cadc10f4
commit 0c5f07a65a
6 changed files with 32 additions and 6 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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