mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
merge
This commit is contained in:
commit
9bdab43309
8 changed files with 151 additions and 0 deletions
|
@ -0,0 +1,40 @@
|
|||
// Object Viewer Qt - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
// Copyright (C) 2011 Dzmitry Kamiahin <dnk-88@tut.by>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include "zone_painter_model.h"
|
||||
|
||||
// STL includes
|
||||
|
||||
// Qt includes
|
||||
|
||||
// NeL includes
|
||||
|
||||
namespace Plugin
|
||||
{
|
||||
|
||||
CZonePainterModel::CZonePainterModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CZonePainterModel::~CZonePainterModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} /* namespace Plugin */
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
// Object Viewer Qt - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
// Copyright (C) 2011 Dzmitry Kamiahin <dnk-88@tut.by>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#ifndef ZONE_PAINTER_MODEL_H
|
||||
#define ZONE_PAINTER_MODEL_H
|
||||
|
||||
// NeL includes
|
||||
#include <nel/misc/types_nl.h>
|
||||
#include <nel/misc/rgba.h>
|
||||
#include <nel/misc/event_emitter.h>
|
||||
|
||||
// Qt includes
|
||||
|
||||
namespace Plugin
|
||||
{
|
||||
|
||||
class CZonePainterModel
|
||||
{
|
||||
public:
|
||||
CZonePainterModel();
|
||||
virtual ~CZonePainterModel();
|
||||
|
||||
}; /* class CZonePainterModel */
|
||||
|
||||
} /* namespace Plugin */
|
||||
|
||||
|
||||
#endif // ZONE_PAINTER_MODEL_H
|
|
@ -16,6 +16,7 @@
|
|||
#include <QtGui/QMenu>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QMenuBar>
|
||||
#include <QtGui/QFileDialog>
|
||||
|
||||
namespace Plugin
|
||||
{
|
||||
|
@ -39,6 +40,7 @@ bool ZonePainterPlugin::initialize(ExtensionSystem::IPluginManager *pluginManage
|
|||
addAutoReleasedObject(new CZonePainterSettingsPage(this));
|
||||
addAutoReleasedObject(new CZonePainterContext(this));
|
||||
//addAutoReleasedObject(new CCoreListener(this));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -46,8 +48,26 @@ void ZonePainterPlugin::extensionsInitialized()
|
|||
{
|
||||
Core::ICore *core = Core::ICore::instance();
|
||||
Core::MenuManager *menuManager = core->menuManager();
|
||||
QAction *loadZoneAction = new QAction("Load Zone", this);
|
||||
QAction *saveZoneAction = new QAction("Save Zone", this);
|
||||
|
||||
QMenu *toolsMenu = menuManager->menu(Core::Constants::M_TOOLS);
|
||||
QMenu *zoneMenu = toolsMenu->addMenu("Zone Painter");
|
||||
zoneMenu->addAction(loadZoneAction);
|
||||
connect(loadZoneAction, SIGNAL(triggered()), this, SLOT(clickLoadZoneAction()));
|
||||
zoneMenu->addAction(saveZoneAction);
|
||||
}
|
||||
|
||||
/****** SLOTS ******/
|
||||
void ZonePainterPlugin::clickLoadZoneAction() {
|
||||
QString zoneFile = QFileDialog::getOpenFileName(NULL, tr("Open Zone File"), ".", tr("Zone Files (*.zone);;"));
|
||||
}
|
||||
|
||||
void ZonePainterPlugin::clickSaveZoneAction() {
|
||||
|
||||
}
|
||||
/****** END SLOTS ******/
|
||||
|
||||
void ZonePainterPlugin::setNelContext(NLMISC::INelContext *nelContext)
|
||||
{
|
||||
#ifdef NL_OS_WINDOWS
|
||||
|
|
|
@ -56,12 +56,17 @@ public:
|
|||
|
||||
void addAutoReleasedObject(QObject *obj);
|
||||
|
||||
public Q_SLOTS:
|
||||
void clickLoadZoneAction();
|
||||
void clickSaveZoneAction();
|
||||
protected:
|
||||
NLMISC::CLibraryContext *m_LibContext;
|
||||
|
||||
private:
|
||||
ExtensionSystem::IPluginManager *m_plugMan;
|
||||
QList<QObject *> m_autoReleaseObjects;
|
||||
|
||||
NL3D::CLandscapeModel *m_Landscape;
|
||||
};
|
||||
|
||||
class CZonePainterContext: public Core::IContext
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
ADD_SUBDIRECTORY(build_samplebank)
|
||||
ADD_SUBDIRECTORY(build_sound)
|
||||
ADD_SUBDIRECTORY(build_soundbank)
|
||||
|
||||
# Deprecated tool - no longer useful, valid or buildable.
|
||||
#ADD_SUBDIRECTORY(source_sounds_builder)
|
||||
|
|
13
code/nel/tools/sound/build_samplebank/CMakeLists.txt
Normal file
13
code/nel/tools/sound/build_samplebank/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
FILE(GLOB SRC *.cpp *.h)
|
||||
|
||||
ADD_EXECUTABLE(build_samplebank ${SRC})
|
||||
|
||||
ADD_DEFINITIONS( ${LIBXML2_DEFINITIONS})
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||
|
||||
TARGET_LINK_LIBRARIES(build_samplebank nelmisc nelsound)
|
||||
NL_DEFAULT_PROPS(build_samplebank "NeL, Tools, Sound: build_samplebank")
|
||||
NL_ADD_RUNTIME_FLAGS(build_samplebank)
|
||||
|
||||
INSTALL(TARGETS build_samplebank RUNTIME DESTINATION bin COMPONENT toolssound)
|
13
code/nel/tools/sound/build_sound/CMakeLists.txt
Normal file
13
code/nel/tools/sound/build_sound/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
FILE(GLOB SRC *.cpp *.h)
|
||||
|
||||
ADD_EXECUTABLE(build_sound ${SRC})
|
||||
|
||||
ADD_DEFINITIONS( ${LIBXML2_DEFINITIONS})
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||
|
||||
TARGET_LINK_LIBRARIES(build_sound nelmisc nelsound)
|
||||
NL_DEFAULT_PROPS(build_sound "NeL, Tools, Sound: build_sound")
|
||||
NL_ADD_RUNTIME_FLAGS(build_sound)
|
||||
|
||||
INSTALL(TARGETS build_sound RUNTIME DESTINATION bin COMPONENT toolssound)
|
13
code/nel/tools/sound/build_soundbank/CMakeLists.txt
Normal file
13
code/nel/tools/sound/build_soundbank/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
FILE(GLOB SRC *.cpp *.h)
|
||||
|
||||
ADD_EXECUTABLE(build_soundbank ${SRC})
|
||||
|
||||
ADD_DEFINITIONS( ${LIBXML2_DEFINITIONS})
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||
|
||||
TARGET_LINK_LIBRARIES(build_soundbank nelmisc nelsound)
|
||||
NL_DEFAULT_PROPS(build_soundbank "NeL, Tools, Sound: build_soundbank")
|
||||
NL_ADD_RUNTIME_FLAGS(build_soundbank)
|
||||
|
||||
INSTALL(TARGETS build_soundbank RUNTIME DESTINATION bin COMPONENT toolssound)
|
Loading…
Reference in a new issue