• 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
latecancel.h
Go to the documentation of this file.
1 /*
2  * latecancel.h - widget to specify cancellation if late
3  * Program: kalarm
4  * Copyright © 2004,2005,2007,2009 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 LATECANCEL_H
22 #define LATECANCEL_H
23 
24 #include "timeperiod.h"
25 #include "timeselector.h"
26 
27 #include <QFrame>
28 
29 class QStackedWidget;
30 class CheckBox;
31 
32 
33 class LateCancelSelector : public QFrame
34 {
35  Q_OBJECT
36  public:
37  LateCancelSelector(bool allowHourMinute, QWidget* parent);
38  int minutes() const;
39  void setMinutes(int Minutes, bool dateOnly, TimePeriod::Units defaultUnits);
40  void setDateOnly(bool dateOnly);
41  void showAutoClose(bool show);
42  bool isAutoClose() const;
43  void setAutoClose(bool autoClose);
44  bool isReadOnly() const { return mReadOnly; }
45  void setReadOnly(bool);
46 
47  static QString i18n_chk_CancelIfLate(); // text of 'Cancel if late' checkbox
48  static QString i18n_chk_AutoCloseWin(); // text of 'Auto-close window after this time' checkbox
49  static QString i18n_chk_AutoCloseWinLC(); // text of 'Auto-close window after late-cancellation time' checkbox
50 
51  signals:
52  void changed(); // emitted whenever any change occurs
53 
54  private slots:
55  void slotToggled(bool);
56 
57  private:
58  QStackedWidget* mStack; // contains mCheckboxFrame and mTimeSelectorFrame
59  QFrame* mCheckboxFrame;
60  CheckBox* mCheckbox; // displayed when late cancellation is not selected
61  QFrame* mTimeSelectorFrame;
62  TimeSelector* mTimeSelector; // displayed when late cancellation is selected
63  CheckBox* mAutoClose;
64  bool mDateOnly; // hours/minutes units not allowed
65  bool mReadOnly; // widget is read-only
66  bool mAutoCloseShown; // auto-close checkbox is visible
67 };
68 
69 #endif // LATECANCEL_H
70 
71 // vim: et sw=4:
QWidget
TimePeriod::Units
Units
LateCancelSelector::LateCancelSelector
LateCancelSelector(bool allowHourMinute, QWidget *parent)
Definition: latecancel.cpp:49
LateCancelSelector::i18n_chk_CancelIfLate
static QString i18n_chk_CancelIfLate()
Definition: latecancel.cpp:44
LateCancelSelector::showAutoClose
void showAutoClose(bool show)
Definition: latecancel.cpp:147
timeperiod.h
LateCancelSelector::changed
void changed()
CheckBox
LateCancelSelector::i18n_chk_AutoCloseWin
static QString i18n_chk_AutoCloseWin()
Definition: latecancel.cpp:45
QStackedWidget
QString
LateCancelSelector
Definition: latecancel.h:33
LateCancelSelector::isReadOnly
bool isReadOnly() const
Definition: latecancel.h:44
QFrame
LateCancelSelector::setReadOnly
void setReadOnly(bool)
Definition: latecancel.cpp:110
LateCancelSelector::setDateOnly
void setDateOnly(bool dateOnly)
Definition: latecancel.cpp:137
LateCancelSelector::minutes
int minutes() const
Definition: latecancel.cpp:121
LateCancelSelector::i18n_chk_AutoCloseWinLC
static QString i18n_chk_AutoCloseWinLC()
Definition: latecancel.cpp:46
LateCancelSelector::isAutoClose
bool isAutoClose() const
Definition: latecancel.cpp:157
TimeSelector
Definition: timeselector.h:31
timeselector.h
QWidget::show
void show()
LateCancelSelector::setMinutes
void setMinutes(int Minutes, bool dateOnly, TimePeriod::Units defaultUnits)
Definition: latecancel.cpp:126
QObject::parent
QObject * parent() const
LateCancelSelector::setAutoClose
void setAutoClose(bool autoClose)
Definition: latecancel.cpp:162
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