This commit is contained in:
Herwig Birke
2018-05-09 17:59:27 +02:00
parent d3eeee295e
commit b02734e020
21 changed files with 1123 additions and 148 deletions
+241 -50
View File
@@ -18,85 +18,86 @@
cCharacterWindow::cCharacterWindow(QWidget *parent) :
cMDISubWindow(parent),
ui(new Ui::cCharacterWindow),
m_lpMainWindow((cMainWindow*)parent),
m_lpCharacter(0)
{
ui->setupUi(this);
ui->m_lpTab->setCurrentIndex(0);
connect(ui->m_lpFirstName, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpFirstName, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpFirstName, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpFirstName, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpMiddleName, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpMiddleName, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpMiddleName, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpMiddleName, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpLastName, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpLastName, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpLastName, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpLastName, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpMainCharacter, SIGNAL(gotFocus(cCheckBox*)), (cMainWindow*)parent, SLOT(onCheckBoxGotFocus(cCheckBox*)));
connect(ui->m_lpMainCharacter, SIGNAL(lostFocus(cCheckBox*)), (cMainWindow*)parent, SLOT(onCheckBoxLostFocus(cCheckBox*)));
connect(ui->m_lpMainCharacter, &cCheckBox::gotFocus, (cMainWindow*)parent, &cMainWindow::onCheckBoxGotFocus);
connect(ui->m_lpMainCharacter, &cCheckBox::lostFocus, (cMainWindow*)parent, &cMainWindow::onCheckBoxLostFocus);
connect(ui->m_lpCreature, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpCreature, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpCreature, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpCreature, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpTitle, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpTitle, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpTitle, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpTitle, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpMale, SIGNAL(gotFocus(cRadioButton*)), (cMainWindow*)parent, SLOT(onRadioButtonGotFocus(cRadioButton*)));
connect(ui->m_lpMale, SIGNAL(lostFocus(cRadioButton*)), (cMainWindow*)parent, SLOT(onRadioButtonLostFocus(cRadioButton*)));
connect(ui->m_lpMale, &cRadioButton::gotFocus, (cMainWindow*)parent, &cMainWindow::onRadioButtonGotFocus);
connect(ui->m_lpMale, &cRadioButton::lostFocus, (cMainWindow*)parent, &cMainWindow::onRadioButtonLostFocus);
connect(ui->m_lpFemale, SIGNAL(gotFocus(cRadioButton*)), (cMainWindow*)parent, SLOT(onRadioButtonGotFocus(cRadioButton*)));
connect(ui->m_lpFemale, SIGNAL(lostFocus(cRadioButton*)), (cMainWindow*)parent, SLOT(onRadioButtonLostFocus(cRadioButton*)));
connect(ui->m_lpFemale, &cRadioButton::gotFocus, (cMainWindow*)parent, &cMainWindow::onRadioButtonGotFocus);
connect(ui->m_lpFemale, &cRadioButton::lostFocus, (cMainWindow*)parent, &cMainWindow::onRadioButtonLostFocus);
connect(ui->m_lpOther, SIGNAL(gotFocus(cRadioButton*)), (cMainWindow*)parent, SLOT(onRadioButtonGotFocus(cRadioButton*)));
connect(ui->m_lpOther, SIGNAL(lostFocus(cRadioButton*)), (cMainWindow*)parent, SLOT(onRadioButtonLostFocus(cRadioButton*)));
connect(ui->m_lpOther, &cRadioButton::gotFocus, (cMainWindow*)parent, &cMainWindow::onRadioButtonGotFocus);
connect(ui->m_lpOther, &cRadioButton::lostFocus, (cMainWindow*)parent, &cMainWindow::onRadioButtonLostFocus);
connect(ui->m_lpDayOfBirth, SIGNAL(gotFocus(cDateEdit*)), (cMainWindow*)parent, SLOT(onDateEditGotFocus(cDateEdit*)));
connect(ui->m_lpDayOfBirth, SIGNAL(lostFocus(cDateEdit*)), (cMainWindow*)parent, SLOT(onDateEditLostFocus(cDateEdit*)));
connect(ui->m_lpDayOfBirth, &cDateEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onDateEditGotFocus);
connect(ui->m_lpDayOfBirth, &cDateEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onDateEditLostFocus);
connect(ui->m_lpDayOfDeath, SIGNAL(gotFocus(cDateEdit*)), (cMainWindow*)parent, SLOT(onDateEditGotFocus(cDateEdit*)));
connect(ui->m_lpDayOfDeath, SIGNAL(lostFocus(cDateEdit*)), (cMainWindow*)parent, SLOT(onDateEditLostFocus(cDateEdit*)));
connect(ui->m_lpDayOfDeath, &cDateEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onDateEditGotFocus);
connect(ui->m_lpDayOfDeath, &cDateEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onDateEditLostFocus);
connect(ui->m_lpPlaceOfBirth, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpPlaceOfBirth, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpPlaceOfBirth, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpPlaceOfBirth, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpPlaceOfDeath, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpPlaceOfDeath, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpPlaceOfDeath, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpPlaceOfDeath, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpHeight, SIGNAL(gotFocus(cDoubleSpinBox*)), (cMainWindow*)parent, SLOT(onDoubleSpinBoxGotFocus(cDoubleSpinBox*)));
connect(ui->m_lpHeight, SIGNAL(lostFocus(cDoubleSpinBox*)), (cMainWindow*)parent, SLOT(onDoubleSpinBoxLostFocus(cDoubleSpinBox*)));
connect(ui->m_lpHeight, &cDoubleSpinBox::gotFocus, (cMainWindow*)parent, &cMainWindow::onDoubleSpinBoxGotFocus);
connect(ui->m_lpHeight, &cDoubleSpinBox::lostFocus, (cMainWindow*)parent, &cMainWindow::onDoubleSpinBoxLostFocus);
connect(ui->m_lpWeight, SIGNAL(gotFocus(cDoubleSpinBox*)), (cMainWindow*)parent, SLOT(onDoubleSpinBoxGotFocus(cDoubleSpinBox*)));
connect(ui->m_lpWeight, SIGNAL(lostFocus(cDoubleSpinBox*)), (cMainWindow*)parent, SLOT(onDoubleSpinBoxLostFocus(cDoubleSpinBox*)));
connect(ui->m_lpWeight, &cDoubleSpinBox::gotFocus, (cMainWindow*)parent, &cMainWindow::onDoubleSpinBoxGotFocus);
connect(ui->m_lpWeight, &cDoubleSpinBox::lostFocus, (cMainWindow*)parent, &cMainWindow::onDoubleSpinBoxLostFocus);
connect(ui->m_lpFigure, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpFigure, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpFigure, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpFigure, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpSkin, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpSkin, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpSkin, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpSkin, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpNature, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpNature, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpNature, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpNature, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpHairColor, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpHairColor, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpHairColor, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpHairColor, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpHairCut, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpHairCut, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpHairCut, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpHairCut, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpHairLength, SIGNAL(gotFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditGotFocus(cLineEdit*)));
connect(ui->m_lpHairLength, SIGNAL(lostFocus(cLineEdit*)), (cMainWindow*)parent, SLOT(onLineEditLostFocus(cLineEdit*)));
connect(ui->m_lpHairLength, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus);
connect(ui->m_lpHairLength, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus);
connect(ui->m_lpSchool, SIGNAL(gotFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditGotFocus(cTextEdit*)));
connect(ui->m_lpSchool, SIGNAL(lostFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditLostFocus(cTextEdit*)));
connect(ui->m_lpSchool, &cTextEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onTextEditGotFocus);
connect(ui->m_lpSchool, &cTextEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onTextEditLostFocus);
connect(ui->m_lpSpokenLanguages, SIGNAL(gotFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditGotFocus(cTextEdit*)));
connect(ui->m_lpSpokenLanguages, SIGNAL(lostFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditLostFocus(cTextEdit*)));
connect(ui->m_lpSpokenLanguages, &cTextEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onTextEditGotFocus);
connect(ui->m_lpSpokenLanguages, &cTextEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onTextEditLostFocus);
connect(ui->m_lpJob, SIGNAL(gotFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditGotFocus(cTextEdit*)));
connect(ui->m_lpJob, SIGNAL(lostFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditLostFocus(cTextEdit*)));
connect(ui->m_lpJob, &cTextEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onTextEditGotFocus);
connect(ui->m_lpJob, &cTextEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onTextEditLostFocus);
connect(ui->m_lpDescription, SIGNAL(gotFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditGotFocus(cTextEdit*)));
connect(ui->m_lpDescription, SIGNAL(lostFocus(cTextEdit*)), (cMainWindow*)parent, SLOT(onTextEditLostFocus(cTextEdit*)));
connect(ui->m_lpDescription, &cTextEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onTextEditGotFocus);
connect(ui->m_lpDescription, &cTextEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onTextEditLostFocus);
}
cCharacterWindow::~cCharacterWindow()
@@ -158,9 +159,199 @@ void cCharacterWindow::setCharacter(cCharacter* lpCharacter)
ui->m_lpLayout->addItem(lpSpacer);
setWindowTitle(tr("[character] - ") + lpCharacter->name());
connect(ui->m_lpFirstName, &cLineEdit::textChanged, this, &cCharacterWindow::onFirstNameChanged);
connect(ui->m_lpMiddleName, &cLineEdit::textChanged, this, &cCharacterWindow::onMiddleNameChanged);
connect(ui->m_lpLastName, &cLineEdit::textChanged, this, &cCharacterWindow::onLastNameChanged);
connect(ui->m_lpMainCharacter, &cCheckBox::clicked, this, &cCharacterWindow::onMainCharacterClicked);
connect(ui->m_lpCreature, &cLineEdit::textChanged, this, &cCharacterWindow::onCreatureChanged);
connect(ui->m_lpMale, &cCheckBox::clicked, this, &cCharacterWindow::onGenderMaleClicked);
connect(ui->m_lpFemale, &cCheckBox::clicked, this, &cCharacterWindow::onGenderFemaleClicked);
connect(ui->m_lpOther, &cCheckBox::clicked, this, &cCharacterWindow::onGenderOtherClicked);
connect(ui->m_lpTitle, &cLineEdit::textChanged, this, &cCharacterWindow::onTitleChanged);
connect(ui->m_lpDayOfBirth, &cDateEdit::dateChanged, this, &cCharacterWindow::onDateOfBirthChanged);
connect(ui->m_lpDayOfDeath, &cDateEdit::dateChanged, this, &cCharacterWindow::onDateOfDeathChanged);
connect(ui->m_lpPlaceOfBirth, &cLineEdit::textChanged, this, &cCharacterWindow::onPlaceOfBirthChanged);
connect(ui->m_lpPlaceOfDeath, &cLineEdit::textChanged, this, &cCharacterWindow::onPlaceOfDeathChanged);
connect(ui->m_lpHeight, QOverload<double>::of(&cDoubleSpinBox::valueChanged), this, &cCharacterWindow::onHeightChanged);
connect(ui->m_lpWeight, QOverload<double>::of(&cDoubleSpinBox::valueChanged), this, &cCharacterWindow::onWeightChanged);
connect(ui->m_lpFigure, &cLineEdit::textChanged, this, &cCharacterWindow::onFigureChanged);
connect(ui->m_lpSkin, &cLineEdit::textChanged, this, &cCharacterWindow::onSkinChanged);
connect(ui->m_lpNature, &cLineEdit::textChanged, this, &cCharacterWindow::onNatureChanged);
connect(ui->m_lpHairColor, &cLineEdit::textChanged, this, &cCharacterWindow::onHairColorChanged);
connect(ui->m_lpHairCut, &cLineEdit::textChanged, this, &cCharacterWindow::onHairCutChanged);
connect(ui->m_lpHairLength, &cLineEdit::textChanged, this, &cCharacterWindow::onHairLengthChanged);
connect(ui->m_lpSchool, &cTextEdit::textChanged, this, &cCharacterWindow::onSchoolChanged);
connect(ui->m_lpSpokenLanguages, &cTextEdit::textChanged, this, &cCharacterWindow::onSpokenLanguagesChanged);
connect(ui->m_lpJob, &cTextEdit::textChanged, this, &cCharacterWindow::onJobChanged);
connect(ui->m_lpDescription, &cTextEdit::textChanged, this, &cCharacterWindow::onDescriptionChanged);
}
cCharacter* cCharacterWindow::character()
{
return(m_lpCharacter);
}
void cCharacterWindow::onFirstNameChanged(const QString& szText)
{
m_lpCharacter->setFirstName(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onMiddleNameChanged(const QString& szText)
{
m_lpCharacter->setMiddleName(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onLastNameChanged(const QString& szText)
{
m_lpCharacter->setLastName(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onMainCharacterClicked(bool bChecked)
{
m_lpCharacter->setMainCharacter(bChecked);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onCreatureChanged(const QString& szText)
{
m_lpCharacter->setCreature(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onGenderMaleClicked(bool /*bChecked*/)
{
if(ui->m_lpMale->isChecked())
m_lpCharacter->setGender(cCharacter::GENDER_male);
else if(ui->m_lpFemale->isChecked())
m_lpCharacter->setGender(cCharacter::GENDER_female);
else
m_lpCharacter->setGender(cCharacter::GENDER_undefined);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onGenderFemaleClicked(bool /*bChecked*/)
{
if(ui->m_lpMale->isChecked())
m_lpCharacter->setGender(cCharacter::GENDER_male);
else if(ui->m_lpFemale->isChecked())
m_lpCharacter->setGender(cCharacter::GENDER_female);
else
m_lpCharacter->setGender(cCharacter::GENDER_undefined);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onGenderOtherClicked(bool /*bChecked*/)
{
if(ui->m_lpMale->isChecked())
m_lpCharacter->setGender(cCharacter::GENDER_male);
else if(ui->m_lpFemale->isChecked())
m_lpCharacter->setGender(cCharacter::GENDER_female);
else
m_lpCharacter->setGender(cCharacter::GENDER_undefined);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onTitleChanged(const QString& szText)
{
m_lpCharacter->setTitle(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onDateOfBirthChanged(const QDate& date)
{
m_lpCharacter->setDateOfBirth(date);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onDateOfDeathChanged(const QDate& date)
{
m_lpCharacter->setDateOfDeath(date);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onPlaceOfBirthChanged(const QString& szText)
{
m_lpCharacter->setPlaceOfBirth(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onPlaceOfDeathChanged(const QString& szText)
{
m_lpCharacter->setPlaceOfDeath(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onHeightChanged(double d)
{
m_lpCharacter->setHeight(d);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onWeightChanged(double d)
{
m_lpCharacter->setWeight(d);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onFigureChanged(const QString& szText)
{
m_lpCharacter->setFigure(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onSkinChanged(const QString& szText)
{
m_lpCharacter->setSkin(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onNatureChanged(const QString& szText)
{
m_lpCharacter->setNature(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onHairColorChanged(const QString& szText)
{
m_lpCharacter->setHairColor(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onHairCutChanged(const QString& szText)
{
m_lpCharacter->setHairCut(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onHairLengthChanged(const QString& szText)
{
m_lpCharacter->setHairLength(szText);
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onSchoolChanged()
{
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onSpokenLanguagesChanged()
{
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onJobChanged()
{
m_lpMainWindow->somethingChanged();
}
void cCharacterWindow::onDescriptionChanged()
{
m_lpMainWindow->somethingChanged();
}