54 QColor white(255, 255, 255);
55 QColor darkBlue(35, 75, 139);
56 QColor black(0, 0, 0);
62 setCaption( tr(
"About Album Shaper"));
66 logoFrame->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed );
72 if(((
Window*)(qApp->mainWidget()))->getConfig()->getBool(
"alerts",
"showSoftwareUpdateAlerts"))
75 http.setHost(
"albumshaper.sourceforge.net" );
82 http.get(
"/webService/releases.xml");
86 QDate currentDate = QDate::currentDate();
87 int copyYearFirst = QMIN( currentDate.year(), 2003 );
88 int copyYearLast = QMAX( currentDate.year(), 2004 );
93 ", © %1-%2 Will Stokes").arg(copyYearFirst).arg(copyYearLast),
96 progURL =
new QLabel(
"http://albumshaper.sourceforge.net", logoFrame );
99 QFont textFont = progDesc->font();
100 textFont.setWeight(QFont::Bold);
101 progDesc->setFont( textFont );
109 credits->setFrameStyle( Q3Frame::Panel | Q3Frame::Sunken );
111 credits->setSource(
"about.html");
113 QIcon( QPixmap(QString(
IMAGE_PATH)+
"tabIcons/credits.png") ),
118 history->setFrameStyle( Q3Frame::Panel | Q3Frame::Sunken );
120 history->setSource(
"history.html");
122 QIcon( QPixmap(QString(
IMAGE_PATH)+
"tabIcons/history.png") ),
129 QPixmap(QString(
IMAGE_PATH)+
"buttonIcons/button_ok.png"),
133 closeButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
135 connect(
closeButton, SIGNAL(clicked()), SLOT(close()) );
137 logoFrame->setPaletteBackgroundColor( darkBlue );
138 progDesc->setPaletteForegroundColor( white );
139 progDesc->setPaletteBackgroundColor( darkBlue );
140 progURL->setPaletteForegroundColor( white );
141 progURL->setPaletteBackgroundColor( darkBlue );
142 tabWidget->setPaletteForegroundColor( black );
144 Q3GridLayout* logoGrid =
new Q3GridLayout( logoFrame, 4, 3, 0);
147 logoGrid->addWidget( progDesc, 2, 1, Qt::AlignCenter );
148 logoGrid->addWidget(
progURL, 3, 1, Qt::AlignCenter );
150 grid =
new Q3GridLayout(
this, 3, 1, 0);
152 grid->addWidget( logoFrame, 0, 0 );
158 if( currentDate.year() > 2003 && currentDate.month() == 4 && currentDate.day() <= 3)
161 cakeLogo->setPixmap( QPixmap( QString(
IMAGE_PATH)+
"miscImages/birthdayL.png" ) );
163 cakeLogo2->setPixmap( QPixmap( QString(
IMAGE_PATH)+
"miscImages/birthdayR.png" ) );
164 QLabel* cakeMessage =
new QLabel( QString( tr(
"Happy Birthday Album Shaper!") +
165 QString(
" %1 ").arg(currentDate.year() - 2003) +
166 ( currentDate.year()-2003 == 1 ? tr(
"Year Old!") : tr(
"Years Old!")) ), logoFrame );
167 cakeMessage->setFont(textFont);
168 cakeMessage->setPaletteForegroundColor( white );
170 logoGrid->addWidget( cakeLogo, 0, 0, Qt::AlignCenter );
171 logoGrid->addWidget( cakeLogo2, 0, 2, Qt::AlignCenter );
172 logoGrid->addMultiCellWidget( cakeMessage, 1, 1, 0, 2, Qt::AlignCenter );
177 setFixedSize(size());
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget...
QPushButton * closeButton
Close button.
#define ALBUMSHAPER_VERSION
void fileFetched(bool error)