kwave  18.07.70
AboutContainer.h
Go to the documentation of this file.
1 /***************************************************************************
2  AboutContainer.h - Authors and thanks field in the about dialog
3  -------------------
4  begin : Sat Dec 29 2007
5  copyright : (C) 2007 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7 
8  based on class K3AboutContainer
9  copied from k3aboutdialog.h / kdelibs-3.97.0
10 
11  Copyright (C) 1999-2001 Mirko Boehm (mirko@kde.org) and
12  Espen Sand (espen@kde.org)
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef KWAVE_ABOUT_CONTAINER_H
25 #define KWAVE_ABOUT_CONTAINER_H
26 
27 #include "config.h"
28 
29 #include <QFrame>
30 #include <QSize>
31 #include <QVBoxLayout>
32 
33 class QString;
34 class QLabel;
35 class QWidget;
36 
37 namespace Kwave
38 {
43  class AboutContainer: public QFrame
44  {
45  Q_OBJECT
46 
47  public:
48  explicit AboutContainer(QWidget *parent = Q_NULLPTR);
49 
50  virtual ~AboutContainer() Q_DECL_OVERRIDE;
51 
52  void addPerson(const QString &name, const QString &email,
53  const QString &url, const QString &task);
54 
55  virtual QSize sizeHint() const Q_DECL_OVERRIDE;
56 
57  virtual QSize minimumSizeHint() const Q_DECL_OVERRIDE;
58 
59  void addWidget(QWidget *widget);
60 
61  private:
62 
63  QVBoxLayout *m_vbox;
64  };
65 
71  class AboutContributor: public QFrame
72  {
73  Q_OBJECT
74 
75  public:
76  AboutContributor(QWidget *parent,
77  const QString &username,
78  const QString &email,
79  const QString &url,
80  const QString &work);
81 
82  virtual ~AboutContributor() Q_DECL_OVERRIDE;
83 
84  QSize sizeHint() const Q_DECL_OVERRIDE;
85 
86  protected:
87  virtual void fontChange( const QFont &oldFont );
88 
89  virtual void updateLayout();
90 
91  private:
92 
93  QLabel *m_text[4];
94 
95  };
96 }
97 
98 #endif /* KWAVE_ABOUT_CONTAINER_H */
99 
100 //***************************************************************************
101 //***************************************************************************
AboutContainer(QWidget *parent=Q_NULLPTR)
Definition: App.h:33
virtual QSize sizeHint() const Q_DECL_OVERRIDE
virtual ~AboutContainer() Q_DECL_OVERRIDE
QVBoxLayout * m_vbox
const char name[16]
Definition: memcpy.c:510
void addWidget(QWidget *widget)
void addPerson(const QString &name, const QString &email, const QString &url, const QString &task)
virtual QSize minimumSizeHint() const Q_DECL_OVERRIDE