make getDropType static and public.

openmw-30
Marek Kochanowicz 11 years ago
parent c2b070f097
commit 7f1df878f6

@ -54,7 +54,7 @@ CSVWorld::SceneToolMode *CSVRender::WorldspaceWidget::makeNavigationSelector (
}
CSVRender::WorldspaceWidget::dropType CSVRender::WorldspaceWidget::getDropType (
const std::vector< CSMWorld::UniversalId >& data) const
const std::vector< CSMWorld::UniversalId >& data)
{
dropType output = notCells;
bool firstIteration = true;

@ -30,6 +30,14 @@ namespace CSVRender
public:
enum dropType
{
cellsMixed,
cellsInterior,
cellsExterior,
notCells
};
WorldspaceWidget (const CSMDoc::Document& document, QWidget *parent = 0);
CSVWorld::SceneToolMode *makeNavigationSelector (CSVWorld::SceneToolbar *parent);
@ -38,22 +46,14 @@ namespace CSVRender
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
enum dropType
{
cellsMixed,
cellsInterior,
cellsExterior,
notCells
};
dropType getDropType(const std::vector<CSMWorld::UniversalId>& data) const;
private:
void dragEnterEvent(QDragEnterEvent *event);

Loading…
Cancel
Save