fixed up the login panel some more, all of the version spinners are there

This commit is contained in:
Hazim Gazov
2010-04-29 07:00:16 -03:00
parent ab2e1c9702
commit ca9a3c05c8
3 changed files with 40 additions and 16 deletions

View File

@@ -78,7 +78,9 @@
#include "llglheaders.h"
// <edit>
#include "llappviewer.h"
#include "llappviewer.h"
#include "llspinctrl.h"
#include <boost/lexical_cast.hpp>
// </edit>
#define USE_VIEWER_AUTH 0
@@ -385,7 +387,8 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
getChild<LLLineEditor>("id0_edit")->setEnabled(specify_id0);
fillMAC();
fillID0();
fillID0();
fillVer();
childSetCommitCallback("mac_check", onCheckMAC, this);
childSetCommitCallback("id0_check", onCheckID0, this);
@@ -420,6 +423,14 @@ void LLPanelLogin::fillID0()
{
getChild<LLLineEditor>("id0_edit")->setText(LLAppViewer::instance()->getSerialNumber());
}
}
void LLPanelLogin::fillVer()
{
getChild<LLSpinCtrl>("vermaj_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionMaj"));
getChild<LLSpinCtrl>("vermin_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionMin"));
getChild<LLSpinCtrl>("verpatch_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionPatch"));
getChild<LLSpinCtrl>("verbuild_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionBuild"));
}
// static