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

tdeui

  • tdeui
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 _TDEABOUTDIALOG_PRIVATE_H_
24#define _TDEABOUTDIALOG_PRIVATE_H_
25
26#include <tqlabel.h>
27class TQFrame;
28class TQTabWidget;
29class TQVBoxLayout;
30
35class KImageTrackLabel : public TQLabel
36{
37 TQ_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
61class TDEAboutContainer;
62
63class TDEAboutContainerBasePrivate;
64
69class TDEAboutContainerBase : public TQWidget
70{
71 TQ_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 TDEAboutContainerBase( 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 TDEAboutContainer *addContainerPage( const TQString &title,
107 int childAlignment = AlignCenter, int innerAlignment = AlignCenter );
108 TDEAboutContainer *addScrolledContainerPage( const TQString &title,
109 int childAlignment = AlignCenter, int innerAlignment = AlignCenter );
110
111 TQFrame *addEmptyPage( const TQString &title );
112
113 TDEAboutContainer *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 TDEAboutContainerBasePrivate* const d;
140};
141
142
143#endif
KImageTrackLabel
Used internally by TDEAboutContainerBase.
Definition: kaboutdialog_private.h:36
TDEAboutContainerBase
Used internally by TDEAboutDialog.
Definition: kaboutdialog_private.h:70
TDEAboutContainer
TDEAboutContainer can be used to make a application specific AboutDialog.
Definition: tdeaboutdialog.h:51

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.