1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
4 ** If you want to add, delete, or rename functions or slots, use
5 ** Qt Designer to update this file, preserving your code.
7 ** You should not define a constructor or destructor in this file.
8 ** Instead, write your code in functions called init() and destroy().
9 ** These will automatically be called by the form's constructor and
11 *****************************************************************************/
14 #include "config-amarok.h"
15 #include "directorylist.h"
17 #include <kapplication.h>
20 #include <QPushButton>
23 #include <ktoolinvocation.h>
27 extern QPixmap
getPNG( const QString
& );
28 extern QPixmap
getJPG( const QString
& );
30 extern KConfig
*config( const QString
& );
34 FirstRunWizard::init()
36 using namespace Amarok
;
41 picture1
->setPixmap( getJPG( "amarok_rocks" ) );
42 picture4
->setPixmap( *picture1
->pixmap() );
44 WizardPageLayout_2
->addWidget( m_folderSetup
= new CollectionSetup( WizardPage_2
) );
46 text4
->disconnect( SIGNAL(linkClicked( const QString
& )) );
47 connect( text4
, SIGNAL(linkClicked( const QString
& )), SLOT(invokeHandbook()) );
48 dbActiveLabel
->disconnect( SIGNAL(linkClicked( const QString
& )) );
49 connect( dbActiveLabel
, SIGNAL(linkClicked( const QString
& )), SLOT(openLink( const QString
&)) );
50 setFinishEnabled ( WizardPage_4
, true );
51 #if !defined(USE_MYSQL) && !defined(USE_POSTGRESQL)
52 removePage(WizardPage_3
);
58 FirstRunWizard::showPage( QWidget
*w
) //virtual
60 Q3Wizard::showPage( w
);
62 cancelButton()->setText( w
== WizardPage
? i18n("&Skip") : i18n("&Cancel") );
66 FirstRunWizard::invokeHandbook() //SLOT
69 KToolInvocation::invokeHelp( QString(), QString(), 0 );
73 FirstRunWizard::writeCollectionConfig()
75 m_folderSetup
->writeConfig();
79 FirstRunWizard::openLink(const QString
& s
)
81 Amarok::invokeBrowser(s
);