• 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
reminder.h
Go to the documentation of this file.
1 /*
2  * reminder.h - reminder setting widget
3  * Program: kalarm
4  * Copyright © 2003-2005,2007-2009,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 
21 #ifndef REMINDER_H
22 #define REMINDER_H
23 
24 #include <QFrame>
25 
26 class KDateTime;
27 class TimeSelector;
28 class CheckBox;
29 class ComboBox;
30 
31 
32 class Reminder : public QFrame
33 {
34  Q_OBJECT
35  public:
36  Reminder(const QString& reminderWhatsThis, const QString& valueWhatsThis,
37  const QString& beforeAfterWhatsThis, bool allowHourMinute,
38  bool showOnceOnly, QWidget* parent);
39  void setAfterOnly(bool after);
40  bool isReminder() const;
41  bool isOnceOnly() const;
42  int minutes() const;
43  void setMinutes(int minutes, bool dateOnly);
44  void setReadOnly(bool);
45  void setDateOnly(bool dateOnly);
46  void setMaximum(int hourmin, int days);
47  void setFocusOnCount();
48  void setOnceOnly(bool);
49  void enableOnceOnly(bool enable);
50 
51  static QString i18n_chk_FirstRecurrenceOnly(); // text of 'Reminder for first recurrence only' checkbox
52 
53  public slots:
54  void setDefaultUnits(const KDateTime&);
55 
56  signals:
57  void changed();
58 
59  private slots:
60  void slotReminderToggled(bool);
61 
62  private:
63  TimeSelector* mTime;
64  CheckBox* mOnceOnly;
65  ComboBox* mTimeSignCombo;
66  bool mReadOnly; // the widget is read only
67  bool mOnceOnlyEnabled; // 'mOnceOnly' checkbox is allowed to be enabled
68 };
69 
70 #endif // REMINDER_H
71 
72 // vim: et sw=4:
QWidget
Reminder::setAfterOnly
void setAfterOnly(bool after)
Definition: reminder.cpp:102
Reminder::i18n_chk_FirstRecurrenceOnly
static QString i18n_chk_FirstRecurrenceOnly()
Definition: reminder.cpp:49
Reminder::setDateOnly
void setDateOnly(bool dateOnly)
Definition: reminder.cpp:192
Reminder::setMinutes
void setMinutes(int minutes, bool dateOnly)
Definition: reminder.cpp:176
Reminder::setFocusOnCount
void setFocusOnCount()
Definition: reminder.cpp:200
CheckBox
Reminder::setDefaultUnits
void setDefaultUnits(const KDateTime &)
Definition: reminder.cpp:219
QString
Reminder::isReminder
bool isReminder() const
Definition: reminder.cpp:124
QFrame
Reminder::changed
void changed()
Reminder::setReadOnly
void setReadOnly(bool)
Definition: reminder.cpp:113
Reminder::isOnceOnly
bool isOnceOnly() const
Definition: reminder.cpp:129
TimeSelector
Definition: timeselector.h:31
Reminder::minutes
int minutes() const
Definition: reminder.cpp:164
Reminder::setMaximum
void setMaximum(int hourmin, int days)
Definition: reminder.cpp:152
ComboBox
Reminder::enableOnceOnly
void enableOnceOnly(bool enable)
Definition: reminder.cpp:143
QObject::parent
QObject * parent() const
Reminder::Reminder
Reminder(const QString &reminderWhatsThis, const QString &valueWhatsThis, const QString &beforeAfterWhatsThis, bool allowHourMinute, bool showOnceOnly, QWidget *parent)
Definition: reminder.cpp:54
Reminder::setOnceOnly
void setOnceOnly(bool)
Definition: reminder.cpp:134
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