34 :
36{
37
38
39 setCaption( tr("Welcome to Album Shaper"));
40
43 sideImage->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
44
46
49 textFont.setWeight(QFont::Bold);
50 textFont.setPointSize( textFont.pointSize() + 2 );
52
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 );
55
57 items->setItemTextPos( Q3IconView::Right );
58 items->setMaxItemWidth(500);
59 items->setFrameShape ( Q3Frame::NoFrame );
60 items->setSelectionMode( Q3IconView::NoSelection ) ;
61
62 items->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
63
65
67
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.") );
74
75
76 int maxWidth = 0;
78 for( item =
items->firstItem(); item != NULL; item = item->nextItem() )
79 {
80 if(item->textRect().width() > maxWidth)
81 maxWidth = item->textRect().width();
82 }
83 for( item =
items->firstItem(); item != NULL; item = item->nextItem() )
84 {
85 ((
Item*)item)->setTextWidth( maxWidth );
86 }
87
88
89
91
92 #ifndef Q_OS_MACX
93 QPixmap(QString(
IMAGE_PATH)+
"buttonIcons/button_ok.png"),
94 #endif
95 tr("Close"),
96 itemsFrame );
97 closeButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
99 connect(
closeButton, SIGNAL(clicked()), SLOT(close()) );
100
101 setPaletteBackgroundColor( Qt::white );
103
104 Q3GridLayout*
grid =
new Q3GridLayout(
this, 1, 2, 0);
106 grid->addWidget( itemsFrame, 0, 1 );
107
108 Q3GridLayout* itemsGrid = new Q3GridLayout( itemsFrame, 4, 3, 0 );
109
110 itemsGrid->addMultiCellWidget(
welcomeTitle, 0, 0, 0, 2 );
112 itemsGrid->addMultiCellWidget(
items, 2, 2, 0, 2 );
114
115 itemsGrid->setRowStretch( 2, 1 );
116 itemsGrid->setColStretch( 0, 1 );
117 itemsGrid->setColStretch( 2, 1 );
118
121
122 this->show();
123 setFixedSize(size());
124
125}
void itemClicked(Q3IconViewItem *item)
QPushButton * closeButton
Close button.
#define ALBUMSHAPER_VERSION