#include "pageconfiguration.h" #include #include #include #include PageConfiguration::PageConfiguration(const QString& title) : InstallerPage(title) { QLabel* labelText = new QLabel( tr("Select parameters: ") ); QHBoxLayout* hbox_1 = new QHBoxLayout; QLabel* labelHostName = new QLabel( tr("Hostname:") ); m_Hostname = new QLineEdit( "calculate" ); hbox_1->addWidget(labelHostName); hbox_1->addWidget(m_Hostname); QHBoxLayout* hbox_2 = new QHBoxLayout; QLabel* langText = new QLabel( tr("Language:") ); m_Language = new QComboBox; m_Language->addItem("en_EN"); m_Language->addItem("ru_RU"); hbox_2->addWidget(langText); hbox_2->addWidget(m_Language); QHBoxLayout* hbox_3 = new QHBoxLayout; QLabel* labelFormat = new QLabel( tr("Format") ); m_Format = new QComboBox; m_Format->addItem( "reiserfs" ); m_Format->addItem( "ext2" ); m_Format->addItem( "ext3" ); m_Format->addItem( "ext4" ); m_Format->addItem( "jfs" ); m_Format->addItem( "xfs" ); hbox_3->addWidget(labelFormat); hbox_3->addWidget(m_Format); QHBoxLayout* hbox_4 = new QHBoxLayout; QLabel* labelTimezone = new QLabel( tr("Timezone:") ); m_Timezone = new QComboBox; // TODO: load list timezones m_Timezone->addItem( "Europe/Moscow" ); m_Timezone->addItem( "Europe/Minsk" ); m_Timezone->addItem( "Europe/Kiev" ); hbox_4->addWidget(labelTimezone); hbox_4->addWidget(m_Timezone); QVBoxLayout* vbox_1 = new QVBoxLayout; vbox_1->addWidget( labelText ); vbox_1->addLayout(hbox_1); vbox_1->addLayout(hbox_2); vbox_1->addLayout(hbox_3); vbox_1->addLayout(hbox_4); vbox_1->addStretch(); // m_Widget->setLayout( vbox_1 ); } bool PageConfiguration::validate() { return true; }