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

kalarm

  • sources
  • kde-4.14
  • kdepim
  • kalarm
birthdaydlg.h
Go to the documentation of this file.
1 /*
2  * birthdaydlg.h - dialog to pick birthdays from address book
3  * Program: kalarm
4  * Copyright © 2002-2005,2007-2011 by David Jarvie <djarvie@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 #ifndef BIRTHDAYDLG_H
21 #define BIRTHDAYDLG_H
22 
23 #include <kalarmcal/kaevent.h>
24 
25 #include <kdialog.h>
26 #include <klineedit.h>
27 #include <QVector>
28 
29 class QFocusEvent;
30 class QTreeView;
31 class CheckBox;
32 class FontColourButton;
33 class SoundPicker;
34 class SpecialActionsButton;
35 class RepetitionButton;
36 class LateCancelSelector;
37 class Reminder;
38 class BLineEdit;
39 class BirthdaySortModel;
40 
41 using namespace KAlarmCal;
42 
43 class BirthdayDlg : public KDialog
44 {
45  Q_OBJECT
46  public:
47  explicit BirthdayDlg(QWidget* parent = 0);
48  QVector<KAEvent> events() const;
49 
50  protected slots:
51  virtual void slotOk();
52 
53  private slots:
54  void slotSelectionChanged();
55  void slotTextLostFocus();
56  void resizeViewColumns();
57  void setColours(const QColor& fg, const QColor& bg);
58 
59  private:
60  BirthdaySortModel* mBirthdaySortModel;
61  QTreeView* mListView;
62  BLineEdit* mPrefix;
63  BLineEdit* mSuffix;
64  Reminder* mReminder;
65  SoundPicker* mSoundPicker;
66  FontColourButton* mFontColourButton;
67  CheckBox* mConfirmAck;
68  LateCancelSelector* mLateCancel;
69  SpecialActionsButton* mSpecialActionsButton;
70  RepetitionButton* mSubRepetition;
71  QString mPrefixText; // last entered value of prefix text
72  QString mSuffixText; // last entered value of suffix text
73  KAEvent::Flags mFlags; // event flag bits
74 };
75 
76 
77 class BLineEdit : public KLineEdit
78 {
79  Q_OBJECT
80  public:
81  explicit BLineEdit(QWidget* parent = 0) : KLineEdit(parent) { }
82  explicit BLineEdit(const QString& text, QWidget* parent = 0) : KLineEdit(text, parent) { }
83 
84  signals:
85  void focusLost();
86 
87  protected:
88  virtual void focusOutEvent(QFocusEvent*) { emit focusLost(); }
89 };
90 
91 #endif // BIRTHDAYDLG_H
92 
93 // vim: et sw=4:
QWidget
BirthdayDlg
Definition: birthdaydlg.h:43
BLineEdit::focusOutEvent
virtual void focusOutEvent(QFocusEvent *)
Definition: birthdaydlg.h:88
text
virtual QByteArray text(quint32 serialNumber) const =0
KDialog
BirthdaySortModel
Definition: birthdaymodel.h:69
BLineEdit::BLineEdit
BLineEdit(QWidget *parent=0)
Definition: birthdaydlg.h:81
CheckBox
SpecialActionsButton
Definition: specialactions.h:36
QString
QColor
LateCancelSelector
Definition: latecancel.h:33
KLineEdit
QVector
BLineEdit
Definition: birthdaydlg.h:77
FontColourButton
Definition: fontcolourbutton.h:32
QTreeView
SoundPicker
Definition: soundpicker.h:35
BLineEdit::BLineEdit
BLineEdit(const QString &text, QWidget *parent=0)
Definition: birthdaydlg.h:82
RepetitionButton
Definition: repetitionbutton.h:45
QFocusEvent
Reminder
Definition: reminder.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalarm

Skip menu "kalarm"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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