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

libtdegames

  • libtdegames
kchatdialog.h
1 /*
2  This file is part of the TDE games library
3  Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __KCHATDIALOG_H__
21 #define __KCHATDIALOG_H__
22 
23 #include <kdialogbase.h>
24 #include <tdemacros.h>
25 
26 class KChatBase;
27 
28 class KChatDialogPrivate;
29 
30 class TDE_EXPORT KChatDialog : public KDialogBase
31 {
32  TQ_OBJECT
33 
34 public:
38  KChatDialog(TQWidget* parent, bool modal = false);
39 
45  KChatDialog(KChatBase* chatWidget, TQWidget* parent, bool modal = false);
46 
50  ~KChatDialog();
51 
56  TQFont nameFont() const;
57 
61  TQFont textFont() const;
62 
67  TQFont systemNameFont() const;
68 
72  TQFont systemTextFont() const;
73 
81  void plugChatWidget(KChatBase* widget, bool applyFonts = true);
82 
89  void configureChatWidget(KChatBase* widget);
90 
95  int maxMessages() const;
96 
97 protected slots:
98  void slotGetNameFont();
99  void slotGetTextFont();
100  void slotGetSystemNameFont();
101  void slotGetSystemTextFont();
102 
103  virtual void slotApply();
104  virtual void slotOk();
105 
106 private:
107  void setNameFont(TQFont);
108  void setTextFont(TQFont);
109  void setSystemNameFont(TQFont);
110  void setSystemTextFont(TQFont);
111  void setMaxMessages(int max);
112 
113 private:
114  void init();
115 
116 private:
117  KChatDialogPrivate* d;
118 };
119 
120 #endif
KChatBase
The base class for chat widgets.
Definition: kchatbase.h:185

libtdegames

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

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.9.1
This website is maintained by Timothy Pearson.