• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdeui
k3aboutdialog_p.h
Go to the documentation of this file.
1 /*
2  * This file is part of the KDE Libraries
3  * Copyright (C) 1999-2001 Mirko Boehm (mirko@kde.org) and
4  * Espen Sand (espen@kde.org)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef K3ABOUTDIALOG_P_H
24 #define K3ABOUTDIALOG_P_H
25 
26 #include <QtGui/QWidget>
27 
28 class QLabel;
29 class QFrame;
30 class QTabWidget;
31 class QVBoxLayout;
32 class K3AboutContainer;
33 class K3AboutContainerBasePrivate;
34 
39 class K3AboutContainerBase : public QWidget
40 {
41  Q_OBJECT
42 
43  public:
44  enum LayoutType
45  {
46  AbtPlain = 0x0001,
47  AbtTabbed = 0x0002,
48  AbtTitle = 0x0004,
49  AbtImageLeft = 0x0008,
50  AbtImageRight = 0x0010,
51  AbtImageOnly = 0x0020,
52  AbtProduct = 0x0040,
53  AbtKDEStandard = AbtTabbed|AbtTitle|AbtImageLeft,
54  AbtAppStandard = AbtTabbed|AbtTitle|AbtProduct,
55  AbtImageAndTitle = AbtPlain|AbtTitle|AbtImageOnly
56  };
57 
58  public:
59  K3AboutContainerBase( int layoutType, QWidget *parent = 0 );
60  QSize sizeHint( void ) const;
61 
62  void setTitle( const QString &title );
63  void setImage( const QString &fileName );
64  void setImageBackgroundColor( const QColor &color );
65  void setImageFrame( bool state );
66  void setProgramLogo( const QString &fileName );
67  void setProgramLogo( const QPixmap &pixmap );
68  void setProduct( const QString &appName, const QString &version,
69  const QString &author, const QString &year );
70 
71  QFrame *addTextPage( const QString &title, const QString &text,
72  bool richText=false, int numLines=10 );
73  QFrame *addLicensePage( const QString &title, const QString &text,
74  int numLines=10 );
75  K3AboutContainer *addContainerPage( const QString &title,
76  Qt::Alignment childAlignment = Qt::AlignCenter, Qt::Alignment innerAlignment = Qt::AlignCenter );
77  K3AboutContainer *addScrolledContainerPage( const QString &title,
78  Qt::Alignment childAlignment = Qt::AlignCenter, Qt::Alignment innerAlignment = Qt::AlignCenter );
79 
80  QFrame *addEmptyPage( const QString &title );
81 
82  K3AboutContainer *addContainer( Qt::Alignment childAlignment, Qt::Alignment innerAlignment );
83 
84  protected:
85  void fontChange( const QFont &oldFont );
86 
87  private:
88  QVBoxLayout *mTopLayout;
89  QLabel *mImageLabel;
90  QLabel *mTitleLabel;
91  QLabel *mIconLabel;
92  QLabel *mVersionLabel;
93  QLabel *mAuthorLabel;
94  QFrame *mImageFrame;
95  QTabWidget *mPageTab;
96  QFrame *mPlainSpace;
97 
98  K3AboutContainerBasePrivate* const d;
99 };
100 
101 #endif
102 
K3AboutContainer
K3AboutContainer can be used to make a application specific AboutDialog.
Definition: k3aboutdialog.h:46
K3AboutContainerBase::AbtImageOnly
Definition: k3aboutdialog_p.h:51
QWidget
K3AboutContainerBase::LayoutType
LayoutType
Definition: k3aboutdialog_p.h:44
K3AboutContainerBase::addScrolledContainerPage
K3AboutContainer * addScrolledContainerPage(const QString &title, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
Definition: k3aboutdialog.cpp:530
K3AboutContainerBase::addContainerPage
K3AboutContainer * addContainerPage(const QString &title, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
Definition: k3aboutdialog.cpp:512
K3AboutContainerBase::AbtPlain
Definition: k3aboutdialog_p.h:46
K3AboutContainerBase::setProduct
void setProduct(const QString &appName, const QString &version, const QString &author, const QString &year)
Definition: k3aboutdialog.cpp:670
QFont
K3AboutContainerBase
Used internally by K3AboutDialog.
Definition: k3aboutdialog_p.h:39
K3AboutContainerBase::AbtProduct
Definition: k3aboutdialog_p.h:52
K3AboutContainerBase::AbtImageRight
Definition: k3aboutdialog_p.h:50
K3AboutContainerBase::AbtTitle
Definition: k3aboutdialog_p.h:48
K3AboutContainerBase::addLicensePage
QFrame * addLicensePage(const QString &title, const QString &text, int numLines=10)
Definition: k3aboutdialog.cpp:487
K3AboutContainerBase::setTitle
void setTitle(const QString &title)
Definition: k3aboutdialog.cpp:587
Qt::Alignment
typedef Alignment
QTabWidget
K3AboutContainerBase::AbtKDEStandard
Definition: k3aboutdialog_p.h:53
K3AboutContainerBase::setProgramLogo
void setProgramLogo(const QString &fileName)
Definition: k3aboutdialog.cpp:617
K3AboutContainerBase::AbtImageAndTitle
Definition: k3aboutdialog_p.h:55
K3AboutContainerBase::fontChange
void fontChange(const QFont &oldFont)
Definition: k3aboutdialog.cpp:427
K3AboutContainerBase::AbtImageLeft
Definition: k3aboutdialog_p.h:49
K3AboutContainerBase::setImage
void setImage(const QString &fileName)
Definition: k3aboutdialog.cpp:598
K3AboutContainerBase::K3AboutContainerBase
K3AboutContainerBase(int layoutType, QWidget *parent=0)
Definition: k3aboutdialog.cpp:276
K3AboutContainerBase::sizeHint
QSize sizeHint(void) const
Definition: k3aboutdialog.cpp:422
QVBoxLayout
QString
QColor
QPixmap
QSize
QFrame
K3AboutContainerBase::setImageFrame
void setImageFrame(bool state)
Definition: k3aboutdialog.cpp:652
K3AboutContainerBase::setImageBackgroundColor
void setImageBackgroundColor(const QColor &color)
Definition: k3aboutdialog.cpp:641
K3AboutContainerBase::addTextPage
QFrame * addTextPage(const QString &title, const QString &text, bool richText=false, int numLines=10)
Definition: k3aboutdialog.cpp:451
K3AboutContainerBase::AbtTabbed
Definition: k3aboutdialog_p.h:47
K3AboutContainerBase::AbtAppStandard
Definition: k3aboutdialog_p.h:54
QLabel
QObject::parent
QObject * parent() const
K3AboutContainerBase::addContainer
K3AboutContainer * addContainer(Qt::Alignment childAlignment, Qt::Alignment innerAlignment)
Definition: k3aboutdialog.cpp:575
K3AboutContainerBase::addEmptyPage
QFrame * addEmptyPage(const QString &title)
Definition: k3aboutdialog.cpp:558
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal