libkdegames
kchatdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00034 class KDEGAMES_EXPORT KChatDialog : public KDialog
00035 {
00036 Q_OBJECT
00037 public:
00041 explicit KChatDialog(QWidget* parent, bool modal = false);
00042
00048 KChatDialog(KChatBase* chatWidget, QWidget* parent, bool modal = false);
00049
00053 ~KChatDialog();
00054
00059 QFont nameFont() const;
00060
00064 QFont textFont() const;
00065
00070 QFont systemNameFont() const;
00071
00075 QFont systemTextFont() const;
00076
00084 void plugChatWidget(KChatBase* widget, bool applyFonts = true);
00085
00092 void configureChatWidget(KChatBase* widget);
00093
00098 int maxMessages() const;
00099
00100 protected Q_SLOTS:
00101 void slotGetNameFont();
00102 void slotGetTextFont();
00103 void slotGetSystemNameFont();
00104 void slotGetSystemTextFont();
00105
00106 virtual void slotApply();
00107 virtual void slotOk();
00108
00109 private:
00110 void setNameFont(QFont);
00111 void setTextFont(QFont);
00112 void setSystemNameFont(QFont);
00113 void setSystemTextFont(QFont);
00114 void setMaxMessages(int max);
00115
00116 private:
00117 void init();
00118
00119 private:
00120 KChatDialogPrivate* const d;
00121 };
00122
00123 #endif