Example #1
0
void
PlasmaLnfPage::setPreselect( const QString& id )
{
    m_preselect = id;
    if ( !m_enabledThemes.isEmpty() )
        fillUi();
}
Example #2
0
PlasmaLnfPage::PlasmaLnfPage( QWidget* parent )
    : QWidget( parent )
    , ui( new Ui::PlasmaLnfPage )
    , m_showAll( false )
    , m_buttonGroup( nullptr )
{
    ui->setupUi( this );
    CALAMARES_RETRANSLATE(
    {
        ui->retranslateUi( this );
        if ( Calamares::Settings::instance()->isSetupMode() )
            ui->generalExplanation->setText( tr(
                "Please choose a look-and-feel for the KDE Plasma Desktop. "
                "You can also skip this step and configure the look-and-feel "
                "once the system is set up. Clicking on a look-and-feel "
                "selection will give you a live preview of that look-and-feel.") );
        else
            ui->generalExplanation->setText( tr(
                "Please choose a look-and-feel for the KDE Plasma Desktop. "
                "You can also skip this step and configure the look-and-feel "
                "once the system is installed. Clicking on a look-and-feel "
                "selection will give you a live preview of that look-and-feel.") );
        updateThemeNames();
        fillUi();
    }
    )
}
MainWindow::MainWindow(QWidget* parent) : QWidget(parent)
{
  setupUi(this);

  connect(bSave, SIGNAL(clicked()), this, SLOT(generateAll()));

  loadConfiguration ( gen_driver_container () );
  loadExistConfiguration ( existingProjectFolders() );
  
  fillUi();
  
  connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(onTabChanged(int)));
  onTabChanged(0);
}
Example #4
0
void
PlasmaLnfPage::setEnabledThemes(const ThemeInfoList& themes, bool showAll )
{
    m_enabledThemes = themes;

    if ( showAll )
    {
        auto plasmaThemes = plasma_themes();
        for ( auto& installed_theme : plasmaThemes )
            if ( !m_enabledThemes.findById( installed_theme.id ) )
                m_enabledThemes.append( installed_theme );
    }

    updateThemeNames();
    winnowThemes();
    fillUi();
}