Compare commits

...

38 Commits

Author SHA1 Message Date
Хирецкий Михаил 715867c614 Update versions
12 years ago
Mike Hiretsky 4217ac49db Add nouveau.
13 years ago
Mike Hiretsky b266bc0b87 Fix lang variable.
13 years ago
Mike Hiretsky 8e121de348 Update versions
13 years ago
Mike Hiretsky 11a400c46f Fix for rename os_install_lang to os_lang.
13 years ago
Alexander Tratsevskiy 8e283e599f update icons
13 years ago
Alexander Tratsevskiy e3bd5920c6 localize icon
13 years ago
Mike Hiretsky a25ade0f1a Update versions
13 years ago
Mike Hiretsky b1f261675d Update versions
13 years ago
Mike Hiretsky c8f58aa186 Add btrfs and nilfs2 to list filesystem.
13 years ago
Mike Hiretsky 9b4cbd5acd Update versions
13 years ago
Mike Hiretsky b2b277285b Update versions
13 years ago
Mike Hiretsky 079cad030c Change using of --filter option of cl-install.
13 years ago
Mike Hiretsky 2cdc701f0c Update versions
13 years ago
Mike Hiretsky cf13b11cc3 Update versions
13 years ago
Mike Hiretsky 0de8143d61 Discard adding prefix "/dev/" for devices values.
13 years ago
Mike Hiretsky 3b92cc086b Update version
13 years ago
Mike Hiretsky 22373ee13f Update version.
13 years ago
Mike Hiretsky f8811f468c Update version
13 years ago
Mike Hiretsky a800499555 Update version.
13 years ago
Mike Hiretsky 4f21618bdb Update version.
13 years ago
Mike Hiretsky eafcacc2b1 Version bump
13 years ago
Mike Hiretsky ebd704c7f3 Increase version
13 years ago
Mike Hiretsky 8ad4bb40a2 Bump version
13 years ago
Mike Hiretsky 6249364c22 Increase version
13 years ago
Mike Hiretsky 8f9cf94a24 Increase version
13 years ago
Mike Hiretsky 2e19a2807c Increase version
13 years ago
Mike Hiretsky b030dc9b62 Increase version.
13 years ago
Mike Hiretsky fa487c3999 Increase version.
13 years ago
Mike Hiretsky e45b8b0a6e Increase version.
13 years ago
Хирецкий Михаил 81f1fd9224 Increase version.
14 years ago
Хирецкий Михаил 74509baadc Increase version.
14 years ago
Хирецкий Михаил b7dbd9e955 Revert "Fixed variable name os_locale_language"
14 years ago
Хирецкий Михаил d24d41e3a1 Revert "Fixed default language select from cl-install vars"
14 years ago
Ivan Loskutov e589f26898 Fixed default language select from cl-install vars
14 years ago
Ivan Loskutov 7c0383d1a1 Fixed variable name os_locale_language
14 years ago
Ivan Loskutov 2f5ea21758 Extended debug info.
14 years ago
Хирецкий Михаил 5599dc3901 Increase version.
14 years ago

@ -1,6 +1,8 @@
[Desktop Entry]
Name=Calculate Linux Install
Name[ru]=Установка Calculate Linux
Name[fr]=Installer Calculate Linux
Name[es]=Instalar Calculate Linux
Comment=GUI-Frontend for Calculate Linux installer
Exec=kdesu cl-install-gui %f
Icon=cl-install-gui

@ -1,6 +1,8 @@
[Desktop Entry]
Name=Calculate Linux Install
Name[ru]=Установка Calculate Linux
Name[fr]=Installer Calculate Linux
Name[es]=Instalar Calculate Linux
Comment=GUI-Frontend for Calculate Linux installer
Exec=gksu cl-install-gui %f
Icon=cl-install-gui

@ -31,10 +31,10 @@ bool CalculateConfig::getDefaultConfig()
// start cl-install -v and parse out
QProcess cl_install;
qDebug() << "Start cl-install -v --xml --filter (os_install*|os_locale_lang|os_disk*|os_device*|cl_migrate_user)";
qDebug() << "Start cl-install -v --xml --filter \"os_install|os_locale_lang$|os_disk|os_device|^cl_migrate_user$\"";
cl_install.start(
"cl-install -v --xml --filter \"os_install*|os_locale_lang|*os_disk*|*os_device*|cl_migrate_user\""
"cl-install -v --xml --filter \"os_install|os_locale_lang|^os_lang$|os_disk|os_device|^cl_migrate_user$\""
);
if ( !cl_install.waitForStarted() )
@ -45,6 +45,8 @@ bool CalculateConfig::getDefaultConfig()
QString outVars = cl_install.readAll();
qDebug() << endl << outVars;
QDomDocument xmlVars;
QString errMsg;
int errLine;
@ -67,7 +69,7 @@ bool CalculateConfig::getDefaultConfig()
QStringList devs = m_Config["os_device_dev"].toStringList();
m_Config.remove("os_device_dev");
m_Config["os_device_dev"] = preparePartitions(devs);
m_Config["os_device_dev"] = devs;
if ( !m_Config["os_device_dev"].toStringList().isEmpty() )
m_Config["gui_os_device_dev"] = m_Config["os_device_dev"].toStringList().at(0);
@ -91,6 +93,20 @@ bool CalculateConfig::getDefaultConfig()
m_Config["def_cl_migrate_user"] = m_Config["cl_migrate_user"];
qDebug() << endl << "Start variables: ";
MapConfig::ConstIterator cfgIt = m_Config.constBegin();
while(cfgIt != m_Config.constEnd())
{
qDebug() <<
cfgIt.key() +
" = " +
(( QString(cfgIt.value().typeName()) == "QStringList") ?
("[" + cfgIt.value().toStringList().join(", ") + "]") :
( cfgIt.value().toString() ) );
++cfgIt;
}
return true;
}
@ -100,8 +116,8 @@ bool CalculateConfig::getNewPartitioning()
MapConfig confDisk;
QProcess cl_install;
qDebug() << "Start cl-install -v --xml --filter (os_disk*|os_device*|os_install_disk*)";
cl_install.start( "cl-install -v --xml --filter \"(os_disk*|os_device*|os_install_disk*)\" " );
qDebug() << "Start cl-install -v --xml --filter (os_disk|os_device|os_install_disk)";
cl_install.start( "cl-install -v --xml --filter \"(os_disk|os_device|os_install_disk)\" " );
if ( !cl_install.waitForStarted() )
return false;
@ -130,7 +146,7 @@ bool CalculateConfig::getNewPartitioning()
QStringList devs = confDisk["os_device_dev"].toStringList();
m_Config.remove("os_device_dev");
m_Config["os_device_dev"] = preparePartitions(devs);
m_Config["os_device_dev"] = devs;
m_Config.remove("os_disk_dev");
m_Config["os_disk_dev"] = confDisk["os_disk_dev"];
@ -164,8 +180,8 @@ bool CalculateConfig::getNewMountpoints()
QStringList newMpParam = getDisksParameters();
qDebug() << "Start cl-install " + newMpParam.join(" ") + " -v --xml --filter os_install_disk_*";
cl_install.start("cl-install " + newMpParam.join(" ") + " --color never -v --xml --filter os_install_disk_*" );
qDebug() << "Start cl-install " + newMpParam.join(" ") + " -v --xml --filter os_install_disk_";
cl_install.start("cl-install " + newMpParam.join(" ") + " --color never -v --xml --filter os_install_disk_" );
if ( !cl_install.waitForStarted() )
return false;
@ -209,20 +225,6 @@ bool CalculateConfig::getNewMountpoints()
return true;
}
QStringList CalculateConfig::preparePartitions(const QStringList& parts)
{
QStringList devs(parts);
QStringList::iterator dev = devs.begin();
while ( dev != devs.end() )
{
*dev = "/dev/"+*dev;
++dev;
}
return devs;
}
QStringList CalculateConfig::getPasswordUsers()
{
QStringList result;
@ -238,8 +240,8 @@ QStringList CalculateConfig::getPasswordUsers()
usersParam += " --user " + user;
}
qDebug() << "Start cl-install" + usersParam + " -v --xml --filter *migrate*";
cl_install.start("cl-install" + usersParam + " -v --xml --filter *migrate*" );
qDebug() << "Start cl-install" + usersParam + " -v --xml --filter migrate";
cl_install.start("cl-install" + usersParam + " -v --xml --filter migrate" );
if ( !cl_install.waitForStarted() )
{

@ -39,8 +39,6 @@ private:
CalculateConfig(const CalculateConfig&);
CalculateConfig& operator=(const CalculateConfig&);
QStringList preparePartitions(const QStringList& parts);
void parseVariables(const QDomNode& node, MapConfig& cfg);
void parseVar(const QDomNode& node, MapConfig& cfg);
void parseVarList(const QDomNode& node, MapConfig& cfg);
@ -51,4 +49,4 @@ private:
static CalculateConfig* _instance;
MapConfig m_Config;
};
};

@ -101,10 +101,12 @@ void MountPointDialog::setupUi()
m_labFS = new QLabel( tr("File system: ") );
m_cmbboxFS = new QComboBox;
m_cmbboxFS->addItem( "btrfs" );
m_cmbboxFS->addItem( "ext2" );
m_cmbboxFS->addItem( "ext3" );
m_cmbboxFS->addItem( "ext4" );
m_cmbboxFS->addItem( "jfs" );
m_cmbboxFS->addItem( "nilfs2" );
m_cmbboxFS->addItem( "reiserfs" );
m_cmbboxFS->addItem( "xfs" );
m_cmbboxFS->addItem( "swap" );

@ -251,7 +251,7 @@ void PageConfiguration::retranslateUi()
m_labelLanguage->setText( tr("Language:") );
m_cmbboxLanguage->clear();
foreach(QString lang, CalculateConfig::instance()->getValue("os_install_lang").toStringList() )
foreach(QString lang, CalculateConfig::instance()->getValue("os_lang").toStringList() )
{
if ( !m_langMap[lang].isEmpty() )
m_cmbboxLanguage->addItem( m_langMap[lang], QVariant(lang) );
@ -272,6 +272,7 @@ void PageConfiguration::retranslateUi()
m_cmbboxVideoDrv->addItem("fglrx");
m_cmbboxVideoDrv->addItem("intel");
m_cmbboxVideoDrv->addItem("nv");
m_cmbboxVideoDrv->addItem("nouveau");
m_cmbboxVideoDrv->addItem("nvidia");
m_cmbboxVideoDrv->addItem("radeon");
m_cmbboxVideoDrv->addItem("vesa");

@ -27,7 +27,7 @@
#include "pagecfdisk.h"
const QString VER_STR = "2.2.0.1";
const QString VER_STR = "2.2.28";
SystemInstaller::SystemInstaller(QWidget *parent) :
QMainWindow(parent),

Loading…
Cancel
Save