2010-10-22 03:34:26 +00:00
|
|
|
/*
|
|
|
|
Object Viewer Qt
|
|
|
|
Copyright (C) 2010 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 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 General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PARTICLE_ZONE_PAGE_H
|
|
|
|
#define PARTICLE_ZONE_PAGE_H
|
|
|
|
|
|
|
|
#include <nel/misc/types_nl.h>
|
|
|
|
#include "ui_particle_zone_form.h"
|
|
|
|
|
|
|
|
// STL includes
|
|
|
|
|
|
|
|
// NeL includes
|
|
|
|
#include "nel/3d/ps_zone.h"
|
|
|
|
|
|
|
|
// Project includes
|
|
|
|
#include "particle_node.h"
|
|
|
|
|
2010-11-26 11:54:06 +00:00
|
|
|
namespace NLQT
|
|
|
|
{
|
2010-10-22 03:34:26 +00:00
|
|
|
|
|
|
|
class CZonePage: public QWidget
|
|
|
|
{
|
2010-11-26 11:54:06 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
public:
|
|
|
|
CZonePage(QWidget *parent = 0);
|
|
|
|
virtual ~CZonePage();
|
2010-11-26 11:54:06 +00:00
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
void setEditedItem(CWorkspaceNode *ownerNode, NL3D::CPSLocatedBindable *locatedBindable);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void addTarget();
|
|
|
|
void removeTarget();
|
|
|
|
void setBounce(int index);
|
|
|
|
|
2010-11-23 12:57:27 +00:00
|
|
|
void setBounceFactor(float value);
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2010-11-23 12:57:27 +00:00
|
|
|
private:
|
2010-10-22 03:34:26 +00:00
|
|
|
void updateTargets();
|
|
|
|
|
2010-11-26 11:54:06 +00:00
|
|
|
void updateModifiedFlag()
|
|
|
|
{
|
|
|
|
if (_Node) _Node->setModified(true);
|
|
|
|
}
|
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
/// the target we're focusing on
|
|
|
|
NL3D::CPSTargetLocatedBindable *_LBTarget;
|
2010-11-26 11:54:06 +00:00
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
/// the collision zone being edited
|
2010-12-04 12:03:31 +00:00
|
|
|
NL3D::CPSZone *_Zone ;
|
2010-11-26 11:54:06 +00:00
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
CWorkspaceNode *_Node;
|
2010-11-26 11:54:06 +00:00
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
Ui::CZonePage _ui;
|
2010-11-26 11:54:06 +00:00
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
}; /* class CZonePage */
|
|
|
|
|
|
|
|
} /* namespace NLQT */
|
|
|
|
|
|
|
|
#endif // PARTICLE_ZONE_PAGE_H
|