|
|
|
@ -16,14 +16,31 @@
|
|
|
|
|
|
|
|
|
|
#include "stdpch.h"
|
|
|
|
|
#include "settingsdialog.h"
|
|
|
|
|
#include "configfile.h"
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG_NEW
|
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
CSettingsDialog::CSettingsDialog():QDialog()
|
|
|
|
|
CSettingsDialog::CSettingsDialog(QWidget *parent):QDialog(parent)
|
|
|
|
|
{
|
|
|
|
|
setupUi(this);
|
|
|
|
|
|
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
|
|
|
|
|
|
// only 64 bits OS can switch between 32 and 64 bits
|
|
|
|
|
use64bitsClientsCheckBox->setEnabled(config->has64bitsOS());
|
|
|
|
|
|
|
|
|
|
// read value from config
|
|
|
|
|
use64bitsClientsCheckBox->setChecked(config->use64BitsClient());
|
|
|
|
|
|
|
|
|
|
connect(installationDirectoryButton, SIGNAL(clicked()), SLOT(onInstallationDirectoryButtonClicked()));
|
|
|
|
|
|
|
|
|
|
// resize layout depending on content and constraints
|
|
|
|
|
adjustSize();
|
|
|
|
|
|
|
|
|
|
// fix height because to left bitmap
|
|
|
|
|
setFixedHeight(height());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CSettingsDialog::~CSettingsDialog()
|
|
|
|
@ -36,3 +53,14 @@ void CSettingsDialog::accept()
|
|
|
|
|
|
|
|
|
|
QDialog::accept();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSettingsDialog::onInstallationDirectoryButtonClicked()
|
|
|
|
|
{
|
|
|
|
|
QString directory = QFileDialog::getExistingDirectory(this, tr("Please choose directory where to install Ryzom"));
|
|
|
|
|
|
|
|
|
|
if (directory.isEmpty()) return;
|
|
|
|
|
|
|
|
|
|
// m_dstDirectory = directory;
|
|
|
|
|
|
|
|
|
|
// updateDestinationText();
|
|
|
|
|
}
|
|
|
|
|