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., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KCHATDIALOG_H__
00021 #define __KCHATDIALOG_H__
00022 
00023 #include <kdialogbase.h>
00024 #include <kdemacros.h>
00025 
00026 class KChatBase;
00027 
00028 class KChatDialogPrivate;
00029 
00030 class KDE_EXPORT KChatDialog : public KDialogBase
00031 {
00032     Q_OBJECT
00033 public:
00037     KChatDialog(QWidget* parent, bool modal = false);
00038 
00044     KChatDialog(KChatBase* chatWidget, QWidget* parent, bool modal = false);
00045 
00049     ~KChatDialog();
00050 
00055     QFont nameFont() const;
00056 
00060     QFont textFont() const;
00061     
00066     QFont systemNameFont() const;
00067     
00071     QFont systemTextFont() const;
00072 
00080     void plugChatWidget(KChatBase* widget, bool applyFonts = true);
00081 
00088     void configureChatWidget(KChatBase* widget);
00089 
00094     int maxMessages() const;
00095 
00096 protected slots:
00097     void slotGetNameFont();
00098     void slotGetTextFont();
00099     void slotGetSystemNameFont();
00100     void slotGetSystemTextFont();
00101 
00102     virtual void slotApply();
00103     virtual void slotOk();
00104 
00105 private:
00106     void setNameFont(QFont);
00107     void setTextFont(QFont);
00108     void setSystemNameFont(QFont);
00109     void setSystemTextFont(QFont);
00110     void setMaxMessages(int max);
00111 
00112 private:
00113     void init();
00114 
00115 private:
00116     KChatDialogPrivate* d;
00117 };
00118 
00119 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys