• 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
  • chatwindow
emoticonselector.h
Go to the documentation of this file.
1 /*
2  emoticonselector.h
3 
4  a button that pops up a list of all emoticons and returns
5  the emoticon-string if one is selected in the list
6 
7  Copyright (c) 2002 by Stefan Gehn <metz AT gehn.net>
8  Kopete (c) 2002-2003 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 __emoticonselector_h__
21 #define __emoticonselector_h__
22 
23 #include <QListWidget>
24 #include <QWidget>
25 #include <QLabel>
26 #include <QMovie>
27 #include <QMouseEvent>
28 #include <QHideEvent>
29 #include <QShowEvent>
30 #include <QList>
31 
32 class QGridLayout;
33 class QHideEvent;
34 class QShowEvent;
35 
36 class EmoticonItem : public QListWidgetItem
37 {
38 public:
39  EmoticonItem(const QString &emoticonText, const QString &pixmapPath, QListWidget *parent=0);
40 // ~EmoticonLabel();
41 
42  QString text() const;
43  QString pixmapPath() const;
44 
45 private:
46  QString m_text;
47  QString m_pixmapPath;
48 };
49 
50 class EmoticonSelector : public QWidget
51 {
52  Q_OBJECT
53 
54 public:
55 
56  EmoticonSelector ( QWidget *parent = 0 );
57 // ~EmoticonSelector();
58 
59 signals:
64  void itemSelected(const QString &);
65 
66 public slots:
67  void prepareList();
68 
69 protected:
70  virtual void hideEvent( QHideEvent* );
71  virtual void showEvent( QShowEvent* );
72 
73 protected slots:
74  void emoticonClicked( QListWidgetItem* );
75  void mouseOverItem( QListWidgetItem* );
76  void currentChanged();
77 
78 private:
79  QListWidget *m_emoticonList;
80  QLabel *m_currentEmoticon;
81  QMovie *m_currentMovie;
82 };
83 
84 #endif
85 // vim: set noet ts=4 sts=4 sw=4:
EmoticonSelector::showEvent
virtual void showEvent(QShowEvent *)
Definition: emoticonselector.cpp:151
QWidget
EmoticonItem::pixmapPath
QString pixmapPath() const
Definition: emoticonselector.cpp:58
EmoticonItem::EmoticonItem
EmoticonItem(const QString &emoticonText, const QString &pixmapPath, QListWidget *parent=0)
Definition: emoticonselector.cpp:37
EmoticonSelector::hideEvent
virtual void hideEvent(QHideEvent *)
Definition: emoticonselector.cpp:146
EmoticonSelector::emoticonClicked
void emoticonClicked(QListWidgetItem *)
Definition: emoticonselector.cpp:106
EmoticonItem::text
QString text() const
Definition: emoticonselector.cpp:53
EmoticonSelector::mouseOverItem
void mouseOverItem(QListWidgetItem *)
Definition: emoticonselector.cpp:121
QListWidgetItem
QLabel
EmoticonSelector::prepareList
void prepareList()
Definition: emoticonselector.cpp:94
EmoticonSelector::EmoticonSelector
EmoticonSelector(QWidget *parent=0)
Definition: emoticonselector.cpp:63
EmoticonSelector::currentChanged
void currentChanged()
Definition: emoticonselector.cpp:128
EmoticonSelector
Definition: emoticonselector.h:50
EmoticonSelector::itemSelected
void itemSelected(const QString &)
gets emitted when an emoticon has been selected from the list the QString holds the emoticon as a str...
EmoticonItem
Definition: emoticonselector.h:36
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