1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a widget to use in first run dialog
9
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
29
#include <kurlrequester.h>
32
#include <qwhatsthis.h>
42
#include "firstrun.moc"
47
FirstRunWidget::FirstRunWidget( QWidget* parent )
50
setName( "FirstRunWidget" );
51
QVBoxLayout *vlayout = new QVBoxLayout( this, 0, 6 );
53
m_textLabel2 = new QLabel( this );
54
vlayout->addWidget( m_textLabel2 );
56
QFrame *line1 = new QFrame( this );
57
line1->setFrameShape( QFrame::HLine );
58
line1->setFrameShadow( QFrame::Sunken );
59
line1->setFrameShape( QFrame::HLine );
60
vlayout->addWidget( line1 );
62
QGridLayout *grid = new QGridLayout( 0, 1, 1, 0, 6 );
64
m_pixLabel = new QLabel( this );
65
m_pixLabel->setAlignment( int( QLabel::AlignTop ) );
66
grid->addMultiCellWidget( m_pixLabel, 0, 1, 0, 0 );
68
m_path = new KURLRequester( this );
69
m_path->setShowLocalProtocol( true );
71
grid->addWidget( m_path, 1, 1 );
73
m_textLabel1 = new QLabel( this );
74
m_textLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );
75
grid->addWidget( m_textLabel1, 0, 1 );
77
vlayout->addLayout( grid );
78
vlayout->addItem( new QSpacerItem( 16, 16, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) );
81
resize( QSize(479, 149).expandedTo(minimumSizeHint()) );
82
clearWState( WState_Polished );
85
FirstRunWidget::~FirstRunWidget()
89
void FirstRunWidget::languageChange()
91
m_textLabel2->setText( i18n( "<b>Albums Library Folder</b>" ) );
92
m_pixLabel->setText( QString() );
93
m_textLabel1->setText( i18n( "<p>digiKam will store the photo albums which you create in a "
94
"common <b>Albums Library Folder</b>. "
95
"Below, please select which folder you would like "
96
"digiKam to use as the common Albums Library Folder.</p>"
97
"<p><b>Do not use a mount path hosted by a remote computer.</b></p>") );
100
} // namespace Digikam