• 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.14
  • kdenetwork
  • kopete
  • kopete
  • config
  • appearance
contactlisttoken.h
Go to the documentation of this file.
1 /*
2  Kopete ContactList Token
3 
4  Copyright (c) 2009 by Roman Jarosz <kedgedev@gmail.com>
5 
6  Kopete (c) 2009 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 #ifndef CONTACTLISTTOKEN_H
18 #define CONTACTLISTTOKEN_H
19 
20 #include <TokenWithLayout.h>
21 
22 
23 class ContactListTokenFactory : public TokenFactory
24 {
25 public:
26  virtual Token * createToken( const QString &text, const QString &iconName, int value, QWidget *parent = 0 );
27 };
28 
29 class ContactListToken : public TokenWithLayout
30 {
31  Q_OBJECT
32 public:
33  ContactListToken( const QString &text, const QString &iconName, int value, QWidget *parent = 0 );
34 
35  bool small() const;
36  void setSmall( bool small );
37 
38  bool optimalSize() const;
39  void setOptimalSize( bool optimalSize );
40 
41 protected:
42  virtual void fillMenu( QMenu * menu );
43  virtual void menuExecuted( const QAction* action );
44 
45 private:
46  bool m_small;
47  bool m_optimalSize;
48 };
49 
50 #endif
TokenWithLayout.h
QWidget
TokenWithLayout
An extended Token with controls for layouting the token and getting layout values for use outside the...
Definition: TokenWithLayout.h:38
ContactListToken::setSmall
void setSmall(bool small)
Definition: contactlisttoken.cpp:74
ContactListToken::ContactListToken
ContactListToken(const QString &text, const QString &iconName, int value, QWidget *parent=0)
Definition: contactlisttoken.cpp:36
Token::value
int value() const
Definition: Token.cpp:83
ContactListToken::optimalSize
bool optimalSize() const
Definition: contactlisttoken.cpp:87
ContactListToken
Definition: contactlisttoken.h:29
ContactListToken::setOptimalSize
void setOptimalSize(bool optimalSize)
Definition: contactlisttoken.cpp:92
ContactListToken::menuExecuted
virtual void menuExecuted(const QAction *action)
Definition: contactlisttoken.cpp:60
ContactListTokenFactory::createToken
virtual Token * createToken(const QString &text, const QString &iconName, int value, QWidget *parent=0)
Definition: contactlisttoken.cpp:31
QString
QMenu
ContactListToken::small
bool small() const
Definition: contactlisttoken.cpp:69
ContactListTokenFactory
Definition: contactlisttoken.h:23
QAction
TokenFactory
Definition: Token.h:29
Token
Definition: Token.h:38
QObject::parent
QObject * parent() const
Token::iconName
QString iconName() const
Definition: Token.cpp:94
ContactListToken::fillMenu
virtual void fillMenu(QMenu *menu)
Definition: contactlisttoken.cpp:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 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