COPASI API  4.16.103
Public Member Functions | Private Slots | Private Member Functions | List of all members
CQSplashWidget Class Reference

#include <CQSplashWidget.h>

Inheritance diagram for CQSplashWidget:
Inheritance graph
[legend]
Collaboration diagram for CQSplashWidget:
Collaboration graph
[legend]

Public Member Functions

 CQSplashWidget (QWidget *parent=0, const char *name=0)
 
 ~CQSplashWidget ()
 
- Public Member Functions inherited from CopasiWidget
 CopasiWidget (QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
 
bool enter (const std::string &key)
 
CCopasiDataModelgetDataModel ()
 
bool getIgnoreUpdates ()
 
virtual bool leave ()
 
virtual void setFramework (int framework)
 
void setIgnoreUpdates (bool v)
 
virtual bool update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
 

Private Slots

void slotViewLicense ()
 

Private Member Functions

void init ()
 

Additional Inherited Members

- Protected Slots inherited from CopasiWidget
virtual bool protectedNotify (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="")
 
- Protected Member Functions inherited from CopasiWidget
virtual bool enterProtected ()
 
- Protected Attributes inherited from CopasiWidget
int mFramework
 
bool mIgnoreUpdates
 
std::string mKey
 
CCopasiDataModelmpDataModel
 
ListViewsmpListView
 
CCopasiObjectmpObject
 

Detailed Description

Definition at line 21 of file CQSplashWidget.h.

Constructor & Destructor Documentation

CQSplashWidget::CQSplashWidget ( QWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 26 of file CQSplashWidget.cpp.

References image0_data, and init().

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 }
CopasiWidget(QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
static const char *const image0_data[]
CQSplashWidget::~CQSplashWidget ( )

Definition at line 40 of file CQSplashWidget.cpp.

41 {
42  // no need to delete child widgets, Qt does it all for us
43 }

Member Function Documentation

void CQSplashWidget::init ( )
private

Definition at line 45 of file CQSplashWidget.cpp.

References FROM_UTF8, and CVersion::VERSION.

Referenced by CQSplashWidget().

46 {
47  mpLblVersion->setText(mpLblVersion->text().arg(FROM_UTF8(CVersion::VERSION.getVersion())));
48 
49  return;
50 }
#define FROM_UTF8(__x)
Definition: qtUtilities.h:73
static const CVersion VERSION
Definition: CVersion.h:164
void CQSplashWidget::slotViewLicense ( )
privateslot

Definition at line 52 of file CQSplashWidget.cpp.

References FROM_UTF8, CCopasiRootContainer::getLicenseHTML(), and CVersion::VERSION.

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
static const CVersion VERSION
Definition: CVersion.h:164

The documentation for this class was generated from the following files: