• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames

kchatdialog.h

Go to the documentation of this file.
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 <libkdegames_export.h>
00024 
00025 #include <kdialog.h>
00026 
00027 class KChatBase;
00028 
00029 class KChatDialogPrivate;
00030 
00031 class KDEGAMES_EXPORT KChatDialog : public KDialog
00032 {
00033     Q_OBJECT
00034 public:
00038     explicit KChatDialog(QWidget* parent, bool modal = false);
00039 
00045     KChatDialog(KChatBase* chatWidget, QWidget* parent, bool modal = false);
00046 
00050     ~KChatDialog();
00051 
00056     QFont nameFont() const;
00057 
00061     QFont textFont() const;
00062     
00067     QFont systemNameFont() const;
00068     
00072     QFont systemTextFont() const;
00073 
00081     void plugChatWidget(KChatBase* widget, bool applyFonts = true);
00082 
00089     void configureChatWidget(KChatBase* widget);
00090 
00095     int maxMessages() const;
00096 
00097 protected Q_SLOTS:
00098     void slotGetNameFont();
00099     void slotGetTextFont();
00100     void slotGetSystemNameFont();
00101     void slotGetSystemTextFont();
00102 
00103     virtual void slotApply();
00104     virtual void slotOk();
00105 
00106 private:
00107     void setNameFont(QFont);
00108     void setTextFont(QFont);
00109     void setSystemNameFont(QFont);
00110     void setSystemTextFont(QFont);
00111     void setMaxMessages(int max);
00112 
00113 private:
00114     void init();
00115 
00116 private:
00117     KChatDialogPrivate* const d;
00118 };
00119 
00120 #endif

libkdegames

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal