Make playlist items use the full width available to them and adjust correctly when...
[amarok.git] / src / firstrunwizard.ui.h
blobecba30271ee7b2bbb6dd147c5158836cf28ee21b
1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
3 **
4 ** If you want to add, delete, or rename functions or slots, use
5 ** Qt Designer to update this file, preserving your code.
6 **
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
10 ** destructor.
11 *****************************************************************************/
13 #include "amarok.h"
14 #include "config-amarok.h"
15 #include "directorylist.h"
17 #include <kapplication.h>
18 #include <kconfig.h>
19 #include <klocale.h>
20 #include <QPushButton>
21 //Added by qt3to4:
22 #include <QPixmap>
23 #include <ktoolinvocation.h>
25 namespace Amarok
27 extern QPixmap getPNG( const QString& );
28 extern QPixmap getJPG( const QString& );
30 extern KConfig *config( const QString& );
33 void
34 FirstRunWizard::init()
36 using namespace Amarok;
38 //aesthetics
39 helpButton()->hide();
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);
53 #endif
57 void
58 FirstRunWizard::showPage( QWidget *w ) //virtual
60 Q3Wizard::showPage( w );
62 cancelButton()->setText( w == WizardPage ? i18n("&Skip") : i18n("&Cancel") );
65 inline void
66 FirstRunWizard::invokeHandbook() //SLOT
68 // Show handbook
69 KToolInvocation::invokeHelp( QString(), QString(), 0 );
72 void
73 FirstRunWizard::writeCollectionConfig()
75 m_folderSetup->writeConfig();
78 void
79 FirstRunWizard::openLink(const QString& s)
81 Amarok::invokeBrowser(s);