• 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
  • avdevice
IdGuiElements.h
Go to the documentation of this file.
1 /*
2  IdGuiElements.h - Modified GUI-elements which send a selectable ID with their signals
3 
4  Copyright (c) 2010 by Frank Schaefer <fschaefer.oss@googlemail.com>
5 
6  Kopete (c) 2010 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 IDGUIELEMENTS_H
18 #define IDGUIELEMENTS_H
19 
20 
21 #include <KPushButton>
22 #include <KComboBox>
23 #include <QSlider>
24 #include <QCheckBox>
25 
26 
27 class IdPushButton : public KPushButton
28 {
29  Q_OBJECT
30 public:
31  IdPushButton(unsigned int id, QWidget * parent = 0);
32  IdPushButton(unsigned int id, const QString text, QWidget * parent = 0);
33  IdPushButton(unsigned int id, const KIcon icon, const QString text, QWidget * parent = 0);
34  IdPushButton(unsigned int id, KGuiItem item, QWidget * parent = 0);
35 private:
36  unsigned int _id;
37 private slots:
38  void emitPressed();
39 signals:
40  void pressed(unsigned int id);
41 };
42 
43 
44 class IdComboBox : public KComboBox
45 {
46  Q_OBJECT
47 public:
48  IdComboBox(unsigned int id, QWidget * parent = 0);
49  IdComboBox(unsigned int id, bool rw, QWidget * parent = 0);
50 private:
51  unsigned int _id;
52 private slots:
53  void emitCurrentIndexChanged(int index);
54 signals:
55  void currentIndexChanged(unsigned int id, int index);
56 };
57 
58 
59 class IdCheckBox : public QCheckBox
60 {
61  Q_OBJECT
62 public:
63  IdCheckBox(unsigned int id, QWidget * parent = 0);
64  IdCheckBox(unsigned int id, const QString & text, QWidget * parent = 0);
65 private:
66  unsigned int _id;
67 private slots:
68  void emitStateChanged(int state);
69 signals:
70  void stateChanged(unsigned int id, int state);
71 };
72 
73 
74 class IdSlider : public QSlider
75 {
76  Q_OBJECT
77 public:
78  IdSlider(unsigned int id, QWidget * parent = 0);
79  IdSlider(unsigned int id, Qt::Orientation orientation, QWidget * parent = 0);
80 private:
81  unsigned int _id;
82 private slots:
83  void emitValueChanged(int value);
84 signals:
85  void valueChanged(unsigned int id, int value);
86 };
87 
88 
89 #endif
90 
IdCheckBox::stateChanged
void stateChanged(unsigned int id, int state)
KPushButton
IdComboBox
Definition: IdGuiElements.h:44
QWidget
IdSlider
Definition: IdGuiElements.h:74
IdSlider::valueChanged
void valueChanged(unsigned int id, int value)
QCheckBox::state
ToggleState state() const
QSlider
QAbstractSlider::orientation
Qt::Orientation orientation() const
IdPushButton::IdPushButton
IdPushButton(unsigned int id, QWidget *parent=0)
Definition: IdGuiElements.cpp:21
QCheckBox
IdCheckBox::IdCheckBox
IdCheckBox(unsigned int id, QWidget *parent=0)
Definition: IdGuiElements.cpp:71
IdCheckBox
Definition: IdGuiElements.h:59
QString
IdSlider::IdSlider
IdSlider(unsigned int id, QWidget *parent=0)
Definition: IdGuiElements.cpp:91
QAbstractSlider::value
int value() const
IdComboBox::currentIndexChanged
void currentIndexChanged(unsigned int id, int index)
IdPushButton::pressed
void pressed(unsigned int id)
KComboBox
IdPushButton
Definition: IdGuiElements.h:27
IdComboBox::IdComboBox
IdComboBox(unsigned int id, QWidget *parent=0)
Definition: IdGuiElements.cpp:52
QAbstractButton::text
QString text() const
QObject::parent
QObject * parent() const
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