• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • config
  • chatwindow
chatwindowconfig.h
Go to the documentation of this file.
1 /*
2  chatwindowconfig.h - Kopete Look Feel Config
3 
4  Copyright (c) 2005-2006 by MichaĆ«l Larouche <larouche@kde.org>
5  Copyright (c) 2005-2006 by Olivier Goffart <ogoffart at kde.org>
6  Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
7 
8  Kopete (c) 2005-2007 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #ifndef CHATWINDOWCONFIG_H
21 #define CHATWINDOWCONFIG_H
22 
23 #include <QtCore/QPointer>
24 
25 #include <kcmodule.h>
26 #include "ui_chatwindowconfig_style.h"
27 #include "ui_chatwindowconfig_emoticons.h"
28 #include "ui_chatwindowconfig_colors.h"
29 #include "ui_chatwindowconfig_tab.h"
30 #include <kopetechatwindowstyle.h>
31 
32 class FakeProtocol;
33 class FakeAccount;
34 class FakeContact;
35 class ChatMessagePart;
36 class QTabWidget;
37 
38 namespace Kopete { class MetaContact; class ChatSession; }
39 
40 class ChatWindowConfig : public KCModule
41 {
42  Q_OBJECT
43 
44 friend class KopeteStyleNewStuff;
45 
46 public:
47  ChatWindowConfig( QWidget *parent, const QVariantList &args );
48  ~ChatWindowConfig();
49 
50  virtual void save();
51  virtual void load();
52 
53 private slots:
54  //----- Style TAB ---------------------
55  void slotInstallChatStyle();
56  int installChatStyle(const KUrl &styleToInstall);
57  void slotDeleteChatStyle();
58  void slotChatStyleSelected(const QString &styleName);
59  void slotChatStyleVariantSelected(const QString &variantName);
60  void emitChanged();
61  void slotGetChatStyles();
62  void slotLoadChatStyles();
63  void slotUpdateChatPreview();
64  //----- Emoticons TAB ---------------------
65  void slotManageEmoticonThemes();
66 
67 private:
68  //----- Style TAB ---------------------
69  void createPreviewChatSession();
70  void createPreviewMessages();
71  //----- Emoticons TAB ---------------------
72  void updateEmoticonList();
73 
74 private:
75  //----- TAB Widget ---------------------
76  QTabWidget *m_tab;
77  //----- Style TAB ----------------------
78  Ui::ChatWindowConfig_Style m_styleUi;
79  ChatMessagePart *m_preview;
80 
81  ChatWindowStyle::StyleVariants m_currentVariantMap;
82  QPointer<ChatWindowStyle> m_currentStyle;
83  bool m_loading;
84  bool m_allowDownloadTheme;
85  // For style preview
86  FakeProtocol *m_previewProtocol;
87  FakeAccount *m_previewAccount;
88  Kopete::MetaContact *m_jackMetaContact;
89  FakeContact *m_myself;
90  FakeContact *m_jack;
91  Kopete::ChatSession *m_previewChatSession;
92 
93  //----- Emoticons TAB ---------------------
94  Ui::ChatWindowConfig_Emoticons m_emoticonsUi;
95 
96  //----- Colors TAB ------------------------
97  Ui::ChatWindowConfig_Colors m_colorsUi;
98 
99  //----- Tab TAB ---------------------
100  Ui::ChatWindowConfig_Tab m_tabUi;
101 };
102 #endif
QWidget
kopetechatwindowstyle.h
ChatMessagePart
Definition: chatmessagepart.h:44
Kopete::Items::MetaContact
Definition: kopeteitembase.h:57
ChatWindowConfig::load
virtual void load()
Definition: chatwindowconfig.cpp:286
ChatWindowConfig::save
virtual void save()
Definition: chatwindowconfig.cpp:249
ChatWindowConfig
Definition: chatwindowconfig.h:40
ChatWindowConfig::~ChatWindowConfig
~ChatWindowConfig()
Definition: chatwindowconfig.cpp:233
ChatWindowStyle::StyleVariants
QHash< QString, QString > StyleVariants
StyleVariants is a typedef to a QHash key = Variant Name value = Path to variant CSS file...
Definition: kopetechatwindowstyle.h:39
ChatWindowConfig::ChatWindowConfig
ChatWindowConfig(QWidget *parent, const QVariantList &args)
Definition: chatwindowconfig.cpp:145
ChatWindowConfig::KopeteStyleNewStuff
friend class KopeteStyleNewStuff
Definition: chatwindowconfig.h:44
KCModule
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal