2013-11-15 13:41:26 +01:00
|
|
|
/************************************************************************
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:50:05 +01:00
|
|
|
** @file dialogarc.cpp
|
2014-04-30 07:38:52 +02:00
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
2013-11-15 13:50:05 +01:00
|
|
|
** @date November 15, 2013
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2013 Valentina project
|
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
2013-09-18 21:16:19 +02:00
|
|
|
** 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.
|
|
|
|
**
|
2013-10-27 13:36:29 +01:00
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
2013-09-18 21:16:19 +02:00
|
|
|
** 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 Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
*************************************************************************/
|
2013-09-18 21:16:19 +02:00
|
|
|
|
2013-08-06 09:56:09 +02:00
|
|
|
#include "dialogarc.h"
|
|
|
|
#include "ui_dialogarc.h"
|
|
|
|
|
2013-11-21 13:05:26 +01:00
|
|
|
#include <QPushButton>
|
2014-06-08 20:10:57 +02:00
|
|
|
|
|
|
|
#include "../../geometry/vpointf.h"
|
|
|
|
#include "../../container/vcontainer.h"
|
2013-11-21 13:05:26 +01:00
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief DialogArc create dialog
|
|
|
|
* @param data container with data
|
|
|
|
* @param parent parent widget
|
|
|
|
*/
|
2013-12-21 12:36:51 +01:00
|
|
|
DialogArc::DialogArc(const VContainer *data, QWidget *parent)
|
|
|
|
:DialogTool(data, parent), ui(new Ui::DialogArc), flagRadius(false), flagF1(false), flagF2(false),
|
2014-06-10 11:49:14 +02:00
|
|
|
timerRadius(nullptr), timerF1(nullptr), timerF2(nullptr), center(0), radius(QString()), f1(QString()),
|
|
|
|
f2(QString()), formulaBaseHeight(0)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
|
timerRadius = new QTimer(this);
|
|
|
|
connect(timerRadius, &QTimer::timeout, this, &DialogArc::EvalRadius);
|
|
|
|
|
|
|
|
timerF1 = new QTimer(this);
|
|
|
|
connect(timerF1, &QTimer::timeout, this, &DialogArc::EvalF1);
|
|
|
|
|
|
|
|
timerF2 = new QTimer(this);
|
|
|
|
connect(timerF2, &QTimer::timeout, this, &DialogArc::EvalF2);
|
|
|
|
|
2014-06-09 22:38:10 +02:00
|
|
|
InitOkCancelApply(ui);
|
|
|
|
|
|
|
|
this->formulaBaseHeight=ui->plainTextEditFormula->height();
|
2013-12-21 12:36:51 +01:00
|
|
|
|
2013-08-06 09:56:09 +02:00
|
|
|
FillComboBoxPoints(ui->comboBoxBasePoint);
|
|
|
|
|
|
|
|
CheckState();
|
|
|
|
|
2014-03-06 14:28:46 +01:00
|
|
|
InitVariables(ui);
|
2013-08-06 09:56:09 +02:00
|
|
|
|
|
|
|
connect(ui->toolButtonPutHereRadius, &QPushButton::clicked, this, &DialogArc::PutRadius);
|
|
|
|
connect(ui->toolButtonPutHereF1, &QPushButton::clicked, this, &DialogArc::PutF1);
|
2013-08-21 10:03:53 +02:00
|
|
|
connect(ui->toolButtonPutHereF2, &QPushButton::clicked, this, &DialogArc::PutF2);
|
2013-08-06 09:56:09 +02:00
|
|
|
|
|
|
|
connect(ui->toolButtonEqualRadius, &QPushButton::clicked, this, &DialogArc::EvalRadius);
|
|
|
|
connect(ui->toolButtonEqualF1, &QPushButton::clicked, this, &DialogArc::EvalF1);
|
|
|
|
connect(ui->toolButtonEqualF2, &QPushButton::clicked, this, &DialogArc::EvalF2);
|
|
|
|
|
2014-06-09 22:38:10 +02:00
|
|
|
connect(ui->plainTextEditFormula, &QPlainTextEdit::textChanged, this, &DialogArc::RadiusChanged);
|
2013-08-06 09:56:09 +02:00
|
|
|
connect(ui->lineEditF1, &QLineEdit::textChanged, this, &DialogArc::F1Changed);
|
|
|
|
connect(ui->lineEditF2, &QLineEdit::textChanged, this, &DialogArc::F2Changed);
|
2014-06-09 22:38:10 +02:00
|
|
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogArc::DeployFormulaTextEdit);
|
|
|
|
|
|
|
|
ui->pushButtonGrowLength->setIcon(QIcon::fromTheme("go-down",
|
|
|
|
QIcon(":/icons/win.icon.theme/icons/win.icon.theme/16x16/actions/go-down.png")));
|
|
|
|
}
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
|
|
|
void DialogArc::DeployFormulaTextEdit()
|
|
|
|
{
|
|
|
|
if (ui->plainTextEditFormula->height() < DIALOGARC_MAX_FORMULA_HEIGHT)
|
|
|
|
{
|
|
|
|
ui->plainTextEditFormula->setFixedHeight(DIALOGARC_MAX_FORMULA_HEIGHT);
|
|
|
|
//Set icon from theme (internal for Windows system)
|
|
|
|
ui->pushButtonGrowLength->setIcon(QIcon::fromTheme("go-next",
|
|
|
|
QIcon(":/icons/win.icon.theme/icons/win.icon.theme/16x16/actions/go-next.png")));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ui->plainTextEditFormula->setFixedHeight(this->formulaBaseHeight);
|
|
|
|
//Set icon from theme (internal for Windows system)
|
|
|
|
ui->pushButtonGrowLength->setIcon(QIcon::fromTheme("go-down",
|
|
|
|
QIcon(":/icons/win.icon.theme/icons/win.icon.theme/16x16/actions/go-down.png")));
|
|
|
|
}
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2013-11-04 21:35:15 +01:00
|
|
|
DialogArc::~DialogArc()
|
|
|
|
{
|
2013-10-26 19:55:06 +02:00
|
|
|
delete ui;
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief SetCenter set id of center point
|
|
|
|
* @param value id
|
|
|
|
*/
|
2014-02-25 15:40:24 +01:00
|
|
|
void DialogArc::SetCenter(const quint32 &value)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
center = value;
|
|
|
|
ChangeCurrentData(ui->comboBoxBasePoint, center);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief SetF2 set formula second angle of arc
|
|
|
|
* @param value formula
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::SetF2(const QString &value)
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
f2 = value;
|
|
|
|
ui->lineEditF2->setText(f2);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief SetF1 set formula first angle of arc
|
|
|
|
* @param value formula
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::SetF1(const QString &value)
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
f1 = value;
|
|
|
|
ui->lineEditF1->setText(f1);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief SetRadius set formula of radius
|
|
|
|
* @param value formula
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::SetRadius(const QString &value)
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
radius = value;
|
2014-06-09 22:38:10 +02:00
|
|
|
// increase height if needed.
|
|
|
|
if (radius.length() > 80)
|
|
|
|
{
|
|
|
|
this->DeployFormulaTextEdit();
|
|
|
|
}
|
|
|
|
ui->plainTextEditFormula->setPlainText(radius);
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief ChoosedObject gets id and type of selected object. Save right data and ignore wrong.
|
|
|
|
* @param id id of point or detail
|
|
|
|
* @param type type of object
|
|
|
|
*/
|
2014-03-11 12:43:24 +01:00
|
|
|
void DialogArc::ChoosedObject(quint32 id, const Valentina::Scenes &type)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2014-03-11 12:43:24 +01:00
|
|
|
if (type == Valentina::Point)
|
2013-11-04 21:35:15 +01:00
|
|
|
{
|
2013-12-29 17:48:57 +01:00
|
|
|
const VPointF *point = data->GeometricObject<const VPointF *>(id);
|
2013-12-21 12:36:51 +01:00
|
|
|
|
2013-12-29 17:48:57 +01:00
|
|
|
ChangeCurrentText(ui->comboBoxBasePoint, point->name());
|
2013-10-07 13:11:56 +02:00
|
|
|
emit ToolTip("");
|
2013-08-06 09:56:09 +02:00
|
|
|
this->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief DialogAccepted save data and emit signal about closed dialog.
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::DialogAccepted()
|
|
|
|
{
|
2014-06-09 22:38:10 +02:00
|
|
|
this->SaveData();
|
|
|
|
emit DialogClosed(QDialog::Accepted);
|
|
|
|
}
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
|
|
|
void DialogArc::DialogApply()
|
|
|
|
{
|
|
|
|
this->SaveData();
|
|
|
|
emit DialogApplied();
|
|
|
|
}
|
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
|
|
|
void DialogArc::SaveData()
|
|
|
|
{
|
|
|
|
radius = ui->plainTextEditFormula->toPlainText();
|
|
|
|
radius.replace("\n"," ");
|
2013-08-06 09:56:09 +02:00
|
|
|
f1 = ui->lineEditF1->text();
|
|
|
|
f2 = ui->lineEditF2->text();
|
2013-12-18 12:13:32 +01:00
|
|
|
center = getCurrentObjectId(ui->comboBoxBasePoint);
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief ValChenged show description angles of lines
|
|
|
|
* @param row number of row
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::ValChenged(int row)
|
|
|
|
{
|
|
|
|
if (ui->listWidget->count() == 0)
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
QListWidgetItem *item = ui->listWidget->item( row );
|
2013-11-04 21:35:15 +01:00
|
|
|
if (ui->radioButtonLineAngles->isChecked())
|
|
|
|
{
|
2013-10-13 17:31:42 +02:00
|
|
|
QString desc = QString("%1(%2) - %3").arg(item->text()).arg(data->GetLineAngle(item->text()))
|
2013-12-19 11:42:00 +01:00
|
|
|
.arg(tr("Value of angle of line."));
|
2013-08-06 09:56:09 +02:00
|
|
|
ui->labelDescription->setText(desc);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
DialogTool::ValChenged(row);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief PutRadius put variable into formula of radius
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::PutRadius()
|
|
|
|
{
|
2014-06-09 22:38:10 +02:00
|
|
|
PutValHere(ui->plainTextEditFormula, ui->listWidget);
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief PutF1 put variable into formula of first angle
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::PutF1()
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
PutValHere(ui->lineEditF1, ui->listWidget);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief PutF2 put variable into formula of second angle
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::PutF2()
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
PutValHere(ui->lineEditF2, ui->listWidget);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief LineAngles show variable angles of lines
|
|
|
|
*/
|
2014-05-11 20:15:32 +02:00
|
|
|
// cppcheck-suppress unusedFunction
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::LineAngles()
|
|
|
|
{
|
2013-10-09 20:11:25 +02:00
|
|
|
ShowLineAngles();
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief RadiusChanged after change formula of radius calculate value and show result
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::RadiusChanged()
|
|
|
|
{
|
2013-10-09 20:11:25 +02:00
|
|
|
labelEditFormula = ui->labelEditRadius;
|
2014-06-09 22:38:10 +02:00
|
|
|
ValFormulaChanged(flagRadius, ui->plainTextEditFormula, timerRadius);
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief F1Changed after change formula of first angle calculate value and show result
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::F1Changed()
|
|
|
|
{
|
2013-10-09 20:11:25 +02:00
|
|
|
labelEditFormula = ui->labelEditF1;
|
2013-08-06 09:56:09 +02:00
|
|
|
ValFormulaChanged(flagF1, ui->lineEditF1, timerF1);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief F2Changed after change formula of second angle calculate value and show result
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::F2Changed()
|
|
|
|
{
|
2013-10-09 20:11:25 +02:00
|
|
|
labelEditFormula = ui->labelEditF2;
|
2013-08-06 09:56:09 +02:00
|
|
|
ValFormulaChanged(flagF2, ui->lineEditF2, timerF2);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief CheckState if all is right enable button ok
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::CheckState()
|
|
|
|
{
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(bOk != nullptr);
|
2013-09-12 15:25:24 +02:00
|
|
|
bOk->setEnabled(flagRadius && flagF1 && flagF2);
|
2014-06-09 22:38:10 +02:00
|
|
|
SCASSERT(bApply != nullptr);
|
|
|
|
bApply->setEnabled(flagRadius && flagF1 && flagF2);
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief EvalRadius calculate value of radius
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::EvalRadius()
|
|
|
|
{
|
2013-10-06 18:22:21 +02:00
|
|
|
labelEditFormula = ui->labelEditRadius;
|
2014-06-09 22:38:10 +02:00
|
|
|
Eval(ui->plainTextEditFormula, flagRadius, timerRadius, ui->labelResultRadius);
|
2013-08-06 09:56:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief EvalF1 calculate value of first angle
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::EvalF1()
|
|
|
|
{
|
2013-10-06 18:22:21 +02:00
|
|
|
labelEditFormula = ui->labelEditF1;
|
2013-08-06 09:56:09 +02:00
|
|
|
Eval(ui->lineEditF1, flagF1, timerF1, ui->labelResultF1);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief EvalF2 calculate value of second angle
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::EvalF2()
|
|
|
|
{
|
2013-10-06 18:22:21 +02:00
|
|
|
labelEditFormula = ui->labelEditF2;
|
2013-08-06 09:56:09 +02:00
|
|
|
Eval(ui->lineEditF2, flagF2, timerF2, ui->labelResultF2);
|
|
|
|
}
|
|
|
|
|
2014-05-02 13:11:30 +02:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------
|
2014-06-02 16:28:02 +02:00
|
|
|
/**
|
|
|
|
* @brief ShowLineAngles show varibles angles of lines
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
void DialogArc::ShowLineAngles()
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
disconnect(ui->listWidget, &QListWidget::currentRowChanged, this, &DialogArc::ValChenged);
|
|
|
|
ui->listWidget->clear();
|
|
|
|
connect(ui->listWidget, &QListWidget::currentRowChanged, this, &DialogArc::ValChenged);
|
2013-10-09 20:11:25 +02:00
|
|
|
const QHash<QString, qreal> *lineAnglesTable = data->DataLineAngles();
|
2014-05-30 21:56:05 +02:00
|
|
|
SCASSERT(lineAnglesTable != nullptr);
|
2013-10-09 20:11:25 +02:00
|
|
|
QHashIterator<QString, qreal> i(*lineAnglesTable);
|
2013-11-04 21:35:15 +01:00
|
|
|
while (i.hasNext())
|
|
|
|
{
|
2013-08-06 09:56:09 +02:00
|
|
|
i.next();
|
|
|
|
QListWidgetItem *item = new QListWidgetItem(i.key());
|
|
|
|
|
|
|
|
item->setFont(QFont("Times", 12, QFont::Bold));
|
|
|
|
ui->listWidget->addItem(item);
|
|
|
|
}
|
|
|
|
ui->listWidget->setCurrentRow (0);
|
|
|
|
}
|