From f1e539cadfb085cedc32f9773cfb9d14bfcdf138 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Wed, 23 Aug 2017 11:24:32 -0700 Subject: Removing ArtistTools and CurveEditor projects --- .../source/BlastPlugin/Window/SupportPanel.cpp | 96 ---------------------- 1 file changed, 96 deletions(-) delete mode 100644 tools/ArtistTools/source/BlastPlugin/Window/SupportPanel.cpp (limited to 'tools/ArtistTools/source/BlastPlugin/Window/SupportPanel.cpp') diff --git a/tools/ArtistTools/source/BlastPlugin/Window/SupportPanel.cpp b/tools/ArtistTools/source/BlastPlugin/Window/SupportPanel.cpp deleted file mode 100644 index 556da33..0000000 --- a/tools/ArtistTools/source/BlastPlugin/Window/SupportPanel.cpp +++ /dev/null @@ -1,96 +0,0 @@ -#include "SupportPanel.h" -#include "ui_SupportPanel.h" - -SupportPanel::SupportPanel(QWidget *parent) : - QWidget(parent), - ui(new Ui::SupportPanel) -{ - ui->setupUi(this); - - //ui->labelHealthMask->setEnabled(false); - //ui->comboBoxHealthMask->setEnabled(false); - //ui->btnAddHealthMask->setEnabled(false); - //ui->btnPen->setEnabled(false); - //ui->btnRemove->setEnabled(false); - - _selectedBonds.clear(); -} - -SupportPanel::~SupportPanel() -{ - delete ui; - - _selectedBonds.clear(); -} - -void SupportPanel::updateValues() -{ - if (_selectedBonds.size() > 0) - { - BPPBond* bond = _selectedBonds[0]; - - //ui->comboBoxHealthMask->clear(); - //ui->comboBoxHealthMask->addItem(bond->name.buf); - ui->spinBoxBondStrength->setValue(bond->support.bondStrength); - ui->checkBoxEnableJoint->setChecked(bond->support.enableJoint); - } - else - { - //ui->comboBoxHealthMask->clear(); - //ui->comboBoxHealthMask->addItem("None"); - ui->spinBoxBondStrength->setValue(1.0f); - ui->checkBoxEnableJoint->setChecked(false); - } -} - -void SupportPanel::dataSelected(std::vector selections) -{ - _selectedBonds.clear(); - - for (BlastNode* node : selections) - { - if (eBond == node->getType()) - { - BPPBond* bond = static_cast(node->getData()); - _selectedBonds.push_back(bond); - } - } - - updateValues(); -} - -void SupportPanel::on_comboBoxHealthMask_currentIndexChanged(int index) -{ - -} - -void SupportPanel::on_btnAddHealthMask_clicked() -{ - -} - -void SupportPanel::on_btnPen_clicked() -{ - -} - -void SupportPanel::on_btnRemove_clicked() -{ - -} - -void SupportPanel::on_spinBoxBondStrength_valueChanged(double arg1) -{ - for (size_t i = 0; i < _selectedBonds.size(); ++i) - { - _selectedBonds[i]->support.bondStrength = arg1; - } -} - -void SupportPanel::on_checkBoxEnableJoint_stateChanged(int arg1) -{ - for (size_t i = 0; i < _selectedBonds.size(); ++i) - { - _selectedBonds[i]->support.enableJoint = arg1; - } -} -- cgit v1.2.3