|
|
@ -27,6 +27,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "utils/CalamaresUtilsGui.h"
|
|
|
|
#include "utils/CalamaresUtilsGui.h"
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
|
|
|
|
#include "utils/Retranslator.h"
|
|
|
|
#include "Branding.h"
|
|
|
|
#include "Branding.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <QBoxLayout>
|
|
|
|
#include <QBoxLayout>
|
|
|
@ -102,6 +103,7 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
|
|
|
|
|
|
|
|
if ( osproberEntries.count() == 0 )
|
|
|
|
if ( osproberEntries.count() == 0 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
CALAMARES_RETRANSLATE(
|
|
|
|
m_messageLabel->setText( tr( "This computer currently does not seem to have an operating system on it. "
|
|
|
|
m_messageLabel->setText( tr( "This computer currently does not seem to have an operating system on it. "
|
|
|
|
"What would you like to do?" ) );
|
|
|
|
"What would you like to do?" ) );
|
|
|
|
|
|
|
|
|
|
|
@ -110,6 +112,7 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
"documents, photos, music, and any other files." )
|
|
|
|
"documents, photos, music, and any other files." )
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
alongsideButton->hide();
|
|
|
|
alongsideButton->hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -119,6 +122,7 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
|
|
|
|
|
|
|
|
if ( !osName.isEmpty() )
|
|
|
|
if ( !osName.isEmpty() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
CALAMARES_RETRANSLATE(
|
|
|
|
m_messageLabel->setText( tr( "This computer currently has %1 on it. "
|
|
|
|
m_messageLabel->setText( tr( "This computer currently has %1 on it. "
|
|
|
|
"What would you like to do?" )
|
|
|
|
"What would you like to do?" )
|
|
|
|
.arg( osName ) );
|
|
|
|
.arg( osName ) );
|
|
|
@ -138,9 +142,11 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
.arg( osName )
|
|
|
|
.arg( osName )
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
CALAMARES_RETRANSLATE(
|
|
|
|
m_messageLabel->setText( tr( "This computer already has an operating system on it. "
|
|
|
|
m_messageLabel->setText( tr( "This computer already has an operating system on it. "
|
|
|
|
"What would you like to do?" ) );
|
|
|
|
"What would you like to do?" ) );
|
|
|
|
|
|
|
|
|
|
|
@ -156,6 +162,7 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
"documents, photos, music, and any other files." )
|
|
|
|
"documents, photos, music, and any other files." )
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( !osproberEntries.first().canBeResized )
|
|
|
|
if ( !osproberEntries.first().canBeResized )
|
|
|
|
alongsideButton->hide();
|
|
|
|
alongsideButton->hide();
|
|
|
@ -175,6 +182,7 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CALAMARES_RETRANSLATE(
|
|
|
|
m_messageLabel->setText( tr( "This computer currently has multiple operating systems on it. "
|
|
|
|
m_messageLabel->setText( tr( "This computer currently has multiple operating systems on it. "
|
|
|
|
"What would you like to do?" ) );
|
|
|
|
"What would you like to do?" ) );
|
|
|
|
|
|
|
|
|
|
|
@ -190,6 +198,7 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
"documents, photos, music, and any other files." )
|
|
|
|
"documents, photos, music, and any other files." )
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
string( Calamares::Branding::VersionedName ) ) );
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if ( !atLeastOneCanBeResized )
|
|
|
|
if ( !atLeastOneCanBeResized )
|
|
|
|
alongsideButton->hide();
|
|
|
|
alongsideButton->hide();
|
|
|
@ -200,11 +209,13 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|
|
|
m_itemsLayout->addWidget( hLine );
|
|
|
|
m_itemsLayout->addWidget( hLine );
|
|
|
|
|
|
|
|
|
|
|
|
PrettyRadioButton* somethingElseButton = new PrettyRadioButton;
|
|
|
|
PrettyRadioButton* somethingElseButton = new PrettyRadioButton;
|
|
|
|
|
|
|
|
CALAMARES_RETRANSLATE(
|
|
|
|
somethingElseButton->setText( tr( "<b>Something else</b><br/>"
|
|
|
|
somethingElseButton->setText( tr( "<b>Something else</b><br/>"
|
|
|
|
"You can create or resize partitions yourself, or choose "
|
|
|
|
"You can create or resize partitions yourself, or choose "
|
|
|
|
"multiple partitions for %1." )
|
|
|
|
"multiple partitions for %1." )
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
.arg( Calamares::Branding::instance()->
|
|
|
|
string( Calamares::Branding::ShortVersionedName ) ) );
|
|
|
|
string( Calamares::Branding::ShortVersionedName ) ) );
|
|
|
|
|
|
|
|
)
|
|
|
|
somethingElseButton->setIconSize( iconSize );
|
|
|
|
somethingElseButton->setIconSize( iconSize );
|
|
|
|
somethingElseButton->setIcon( CalamaresUtils::defaultPixmap( CalamaresUtils::Partitions,
|
|
|
|
somethingElseButton->setIcon( CalamaresUtils::defaultPixmap( CalamaresUtils::Partitions,
|
|
|
|
CalamaresUtils::Original,
|
|
|
|
CalamaresUtils::Original,
|
|
|
|