CenGen - Генератор ценников  1.1
about.h
00001 #ifndef ABOUT_H
00002 #define ABOUT_H
00003 
00004 class QLabel;
00005 class QTabWidget;
00006 class QTextEdit;
00007 class QToolButton;
00008 class QIcon;
00009 
00010 #include <QtGui/QDialog>
00011 #include <QIcon>
00012 #include <QLabel>
00013 
00014 class About : public QDialog
00015 {
00016         Q_OBJECT
00017 
00018 private:
00019         QLabel *iconLabel;
00020         QLabel *aboutLabel;
00021         QLabel *photoLabel;
00022         QToolButton *closeButton;
00023 
00024         QTabWidget *tabWidget;
00025 
00026         QTextEdit *copyrightView;
00027         QTextEdit *thanksView;
00028         QTextEdit *licenseView;
00029 
00030         QString m_author;
00031         //QIcon   *m_author_photo;
00032         QString m_mail;
00033         QString m_phone;
00034         QString m_site;
00035         QString m_license;
00036 
00037         QList<QStringList> m_thanks;
00038 public:
00039         About(QWidget *parent = 0, Qt::WFlags f = Qt::WindowSystemMenuHint);
00040         virtual ~About()
00041         {}
00042 
00043         void setLicenseText(const QString& text);
00044 
00045         void setAuthor(const QString& author)
00046         {m_author = author; printCopyright();}
00047 
00048         void setAuthorPhoto(QIcon icon)
00049         {photoLabel->setPixmap(icon.pixmap(64, 64)); }
00050 
00051         void setMail(const QString& mail)
00052         {m_mail = mail; printCopyright();}
00053 
00054         void setPhone(const QString& phone)
00055         {m_phone = phone; printCopyright();}
00056 
00057         void setSite(const QString& site)
00058         {m_site = site; printCopyright();}
00059 
00060         void setLicense(const QString& license)
00061         {m_license = license; printCopyright();}
00062 
00063         void addThanks (const QString& name, const QString& email, const QString& typeWork)
00064         {
00065                 QStringList l;
00066                 l << name << email << typeWork;
00067                 m_thanks << l;
00068                 printThanks ();
00069         }
00070 
00071 private:
00072         void printCopyright();
00073         void printThanks ();
00074 };
00075 
00076 #endif // ABOUT_H
 Указатель Классы Функции