mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
make getDropType static and public.
This commit is contained in:
parent
c2b070f097
commit
7f1df878f6
2 changed files with 16 additions and 16 deletions
|
@ -54,7 +54,7 @@ CSVWorld::SceneToolMode *CSVRender::WorldspaceWidget::makeNavigationSelector (
|
||||||
}
|
}
|
||||||
|
|
||||||
CSVRender::WorldspaceWidget::dropType CSVRender::WorldspaceWidget::getDropType (
|
CSVRender::WorldspaceWidget::dropType CSVRender::WorldspaceWidget::getDropType (
|
||||||
const std::vector< CSMWorld::UniversalId >& data) const
|
const std::vector< CSMWorld::UniversalId >& data)
|
||||||
{
|
{
|
||||||
dropType output = notCells;
|
dropType output = notCells;
|
||||||
bool firstIteration = true;
|
bool firstIteration = true;
|
||||||
|
|
|
@ -30,20 +30,6 @@ namespace CSVRender
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
WorldspaceWidget (const CSMDoc::Document& document, QWidget *parent = 0);
|
|
||||||
|
|
||||||
CSVWorld::SceneToolMode *makeNavigationSelector (CSVWorld::SceneToolbar *parent);
|
|
||||||
///< \attention The created tool is not added to the toolbar (via addTool). Doing that
|
|
||||||
/// is the responsibility of the calling function.
|
|
||||||
|
|
||||||
void selectDefaultNavigationMode();
|
|
||||||
|
|
||||||
virtual void useViewHint (const std::string& hint);
|
|
||||||
///< Default-implementation: ignored.
|
|
||||||
|
|
||||||
protected:
|
|
||||||
const CSMDoc::Document& mDocument; //for checking if drop comes from same document
|
|
||||||
|
|
||||||
enum dropType
|
enum dropType
|
||||||
{
|
{
|
||||||
cellsMixed,
|
cellsMixed,
|
||||||
|
@ -52,7 +38,21 @@ namespace CSVRender
|
||||||
notCells
|
notCells
|
||||||
};
|
};
|
||||||
|
|
||||||
dropType getDropType(const std::vector<CSMWorld::UniversalId>& data) const;
|
WorldspaceWidget (const CSMDoc::Document& document, QWidget *parent = 0);
|
||||||
|
|
||||||
|
CSVWorld::SceneToolMode *makeNavigationSelector (CSVWorld::SceneToolbar *parent);
|
||||||
|
///< \attention The created tool is not added to the toolbar (via addTool). Doing that
|
||||||
|
/// is the responsibility of the calling function.
|
||||||
|
|
||||||
|
void selectDefaultNavigationMode();
|
||||||
|
|
||||||
|
static dropType getDropType(const std::vector<CSMWorld::UniversalId>& data);
|
||||||
|
|
||||||
|
virtual void useViewHint (const std::string& hint);
|
||||||
|
///< Default-implementation: ignored.
|
||||||
|
|
||||||
|
protected:
|
||||||
|
const CSMDoc::Document& mDocument; //for checking if drop comes from same document
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue