COPASI API  4.16.103
CQSplashWidget.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQSplashWidget.cpp,v $
3 // $Revision: 1.11 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/10/14 17:30:45 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #include "CQSplashWidget.h"
15 
16 #include "qtUtilities.h"
17 #include "AboutDialog.h"
18 
19 #include "utilities/CVersion.h"
21 
22 /*
23  * Constructs a CQSplashWidget which is a child of 'parent', with the
24  * name 'name'.'
25  */
26 CQSplashWidget::CQSplashWidget(QWidget* parent, const char* name)
27  : CopasiWidget(parent, name)
28 {
29  setupUi(this);
30 
31  mpPixmap->setObjectName(QString::fromUtf8("mpPixmap"));
32  mpPixmap->setPixmap(QPixmap((const char**)image0_data));
33 
34  init();
35 }
36 
37 /*
38  * Destroys the object and frees any allocated resources
39  */
41 {
42  // no need to delete child widgets, Qt does it all for us
43 }
44 
46 {
47  mpLblVersion->setText(mpLblVersion->text().arg(FROM_UTF8(CVersion::VERSION.getVersion())));
48 
49  return;
50 }
51 
53 {
54  QString FixedTitle = "COPASI ";
55  FixedTitle += FROM_UTF8(CVersion::VERSION.getVersion());
56 
57  AboutDialog* aboutDialog = new AboutDialog(this, CCopasiRootContainer::getLicenseHTML(), 76, 30);
58  aboutDialog->setWindowTitle(FixedTitle);
59  aboutDialog->exec();
60 }
static const char * getLicenseHTML()
#define FROM_UTF8(__x)
Definition: qtUtilities.h:73
CQSplashWidget(QWidget *parent=0, const char *name=0)
Header file of class AboutDialog.
static const char *const image0_data[]
static const CVersion VERSION
Definition: CVersion.h:164