• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
kaboutdialog_private.h
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 _KABOUTDIALOG_PRIVATE_H_
24 #define _KABOUTDIALOG_PRIVATE_H_
25 
26 #include <tqlabel.h>
27 class TQFrame;
28 class TQTabWidget;
29 class TQVBoxLayout;
30 
35 class KImageTrackLabel : public TQLabel
36 {
37  Q_OBJECT
38 
39  public:
40  enum MouseMode
41  {
42  MousePress = 1,
43  MouseRelease,
44  MouseDoubleClick,
45  MouseMove
46  };
47 
48  public:
49  KImageTrackLabel( TQWidget * parent, const char * name=0, WFlags f=0 );
50 
51  signals:
52  void mouseTrack( int mode, const TQMouseEvent *e );
53 
54  protected:
55  virtual void mousePressEvent( TQMouseEvent *e );
56  virtual void mouseReleaseEvent( TQMouseEvent *e );
57  virtual void mouseDoubleClickEvent( TQMouseEvent *e );
58  virtual void mouseMoveEvent ( TQMouseEvent *e );
59 };
60 
61 class KAboutContainer;
62 
63 class KAboutContainerBasePrivate;
64 
69 class KAboutContainerBase : public TQWidget
70 {
71  Q_OBJECT
72 
73  public:
74  enum LayoutType
75  {
76  AbtPlain = 0x0001,
77  AbtTabbed = 0x0002,
78  AbtTitle = 0x0004,
79  AbtImageLeft = 0x0008,
80  AbtImageRight = 0x0010,
81  AbtImageOnly = 0x0020,
82  AbtProduct = 0x0040,
83  AbtKDEStandard = AbtTabbed|AbtTitle|AbtImageLeft,
84  AbtAppStandard = AbtTabbed|AbtTitle|AbtProduct,
85  AbtImageAndTitle = AbtPlain|AbtTitle|AbtImageOnly
86  };
87 
88  public:
89  KAboutContainerBase( int layoutType, TQWidget *parent = 0, char *name = 0 );
90  virtual void show( void );
91  virtual TQSize sizeHint( void ) const;
92 
93  void setTitle( const TQString &title );
94  void setImage( const TQString &fileName );
95  void setImageBackgroundColor( const TQColor &color );
96  void setImageFrame( bool state );
97  void setProgramLogo( const TQString &fileName );
98  void setProgramLogo( const TQPixmap &pixmap );
99  void setProduct( const TQString &appName, const TQString &version,
100  const TQString &author, const TQString &year );
101 
102  TQFrame *addTextPage( const TQString &title, const TQString &text,
103  bool richText=false, int numLines=10 );
104  TQFrame *addLicensePage( const TQString &title, const TQString &text,
105  int numLines=10 );
106  KAboutContainer *addContainerPage( const TQString &title,
107  int childAlignment = AlignCenter, int innerAlignment = AlignCenter );
108  KAboutContainer *addScrolledContainerPage( const TQString &title,
109  int childAlignment = AlignCenter, int innerAlignment = AlignCenter );
110 
111  TQFrame *addEmptyPage( const TQString &title );
112 
113  KAboutContainer *addContainer( int childAlignment, int innerAlignment );
114 
115  public slots:
116  virtual void slotMouseTrack( int mode, const TQMouseEvent *e );
117  virtual void slotUrlClick( const TQString &url );
118  virtual void slotMailClick( const TQString &name, const TQString &address );
119 
120  protected:
121  virtual void fontChange( const TQFont &oldFont );
122 
123  signals:
124  void mouseTrack( int mode, const TQMouseEvent *e );
125  void urlClick( const TQString &url );
126  void mailClick( const TQString &name, const TQString &address );
127 
128  private:
129  TQVBoxLayout *mTopLayout;
130  KImageTrackLabel *mImageLabel;
131  TQLabel *mTitleLabel;
132  TQLabel *mIconLabel;
133  TQLabel *mVersionLabel;
134  TQLabel *mAuthorLabel;
135  TQFrame *mImageFrame;
136  TQTabWidget *mPageTab;
137  TQFrame *mPlainSpace;
138 
139  KAboutContainerBasePrivate* const d;
140 };
141 
142 
143 #endif
KAboutContainer
KAboutContainer can be used to make a application specific AboutDialog.
Definition: kaboutdialog.h:50
KImageTrackLabel
Used internally by KAboutContainerBase.
Definition: kaboutdialog_private.h:35
KAboutContainerBase
Used internally by KAboutDialog.
Definition: kaboutdialog_private.h:69

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |