libkdegames Library API Documentation

kchatdialog.h

00001 /* 00002 This file is part of the KDE games library 00003 Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de) 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License version 2 as published by the Free Software Foundation. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef __KCHATDIALOG_H__ 00021 #define __KCHATDIALOG_H__ 00022 00023 #include <kdialogbase.h> 00024 00025 class KChatBase; 00026 00027 class KChatDialogPrivate; 00028 00029 class KChatDialog : public KDialogBase 00030 { 00031 Q_OBJECT 00032 public: 00036 KChatDialog(QWidget* parent, bool modal = false); 00037 00043 KChatDialog(KChatBase* chatWidget, QWidget* parent, bool modal = false); 00044 00048 ~KChatDialog(); 00049 00054 QFont nameFont() const; 00055 00059 QFont textFont() const; 00060 00065 QFont systemNameFont() const; 00066 00070 QFont systemTextFont() const; 00071 00079 void plugChatWidget(KChatBase* widget, bool applyFonts = true); 00080 00087 void configureChatWidget(KChatBase* widget); 00088 00093 int maxMessages() const; 00094 00095 protected slots: 00096 void slotGetNameFont(); 00097 void slotGetTextFont(); 00098 void slotGetSystemNameFont(); 00099 void slotGetSystemTextFont(); 00100 00101 virtual void slotApply(); 00102 virtual void slotOk(); 00103 00104 private: 00105 void setNameFont(QFont); 00106 void setTextFont(QFont); 00107 void setSystemNameFont(QFont); 00108 void setSystemTextFont(QFont); 00109 void setMaxMessages(int max); 00110 00111 private: 00112 void init(); 00113 00114 private: 00115 KChatDialogPrivate* d; 00116 }; 00117 00118 #endif
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 26 00:21:38 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003