39 setCaption( tr(
"Welcome to Album Shaper"));
43 sideImage->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
49 textFont.setWeight(QFont::Bold);
50 textFont.setPointSize( textFont.pointSize() + 2 );
53 welcomeMessage =
new QLabel( QString(tr(
"It appears you are a new Album Shaper user! Before you begin creating photo albums, you may want to explore the following features of this program:" ) ), itemsFrame );
54 welcomeMessage->setAlignment( Qt::AlignLeft | Qt::TextWordWrap | Qt::TextWrapAnywhere );
57 items->setItemTextPos( Q3IconView::Right );
58 items->setMaxItemWidth(500);
59 items->setFrameShape ( Q3Frame::NoFrame );
60 items->setSelectionMode( Q3IconView::NoSelection ) ;
62 items->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
69 tr(
"Read short tutorials which cover all of the program's ins and outs.") );
71 tr(
"Keep up to date. If a new version of Album Shaper is available you'll see a pulsing light bulb appear in the bottom right corner of the application.") );
73 tr(
"Take advantage of the power of open source development! Read about ongoing improvements and communicate with developers working on the project.") );
78 for( item =
items->firstItem(); item != NULL; item = item->nextItem() )
80 if(item->textRect().width() > maxWidth)
81 maxWidth = item->textRect().width();
83 for( item =
items->firstItem(); item != NULL; item = item->nextItem() )
85 ((
Item*)item)->setTextWidth( maxWidth );
93 QPixmap(QString(
IMAGE_PATH)+
"buttonIcons/button_ok.png"),
97 closeButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
99 connect(
closeButton, SIGNAL(clicked()), SLOT(close()) );
101 setPaletteBackgroundColor( Qt::white );
104 Q3GridLayout*
grid =
new Q3GridLayout(
this, 1, 2, 0);
106 grid->addWidget( itemsFrame, 0, 1 );
108 Q3GridLayout* itemsGrid =
new Q3GridLayout( itemsFrame, 4, 3, 0 );
110 itemsGrid->addMultiCellWidget(
welcomeTitle, 0, 0, 0, 2 );
112 itemsGrid->addMultiCellWidget(
items, 2, 2, 0, 2 );
115 itemsGrid->setRowStretch( 2, 1 );
116 itemsGrid->setColStretch( 0, 1 );
117 itemsGrid->setColStretch( 2, 1 );
123 setFixedSize(size());
QPushButton * closeButton
Close button.
void itemClicked(Q3IconViewItem *item)
#define ALBUMSHAPER_VERSION