00001 /* 00002 This file is part of the Opie Project 00003 00004 Copyright (C) Opie Team <opie-devel@handhelds.org> 00005 =. 00006 .=l. 00007 .>+-= 00008 _;:, .> :=|. This program is free software; you can 00009 .> <`_, > . <= redistribute it and/or modify it under 00010 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00011 .="- .-=="i, .._ License as published by the Free Software 00012 - . .-<_> .<> Foundation; either version 2 of the License, 00013 ._= =} : or (at your option) any later version. 00014 .%`+i> _;_. 00015 .i_,=:_. -<s. This program is distributed in the hope that 00016 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00017 : .. .:, . . . without even the implied warranty of 00018 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00019 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00020 ..}^=.= = ; Library General Public License for more 00021 ++= -. .` .: details. 00022 : = ...= . :.=- 00023 -. .:....=;==+<; You should have received a copy of the GNU 00024 -_. . . )=. = Library General Public License along with 00025 -- :-=` this library; see the file COPYING.LIB. 00026 If not, write to the Free Software Foundation, 00027 Inc., 59 Temple Place - Suite 330, 00028 Boston, MA 02111-1307, USA. 00029 */ 00030 00031 #ifndef TASKEDITORALARMS_H 00032 #define TASKEDITORALARMS_H 00033 00034 #include <opie2/opimtodo.h> 00035 00036 #include <qwidget.h> 00037 00038 class QListView; 00039 class QListViewItem; 00040 00041 using namespace Opie; 00042 00043 class AlarmItem; 00044 class DateBookMonth; 00045 class TaskEditorAlarms : public QWidget 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 enum Type { 00051 Alarm = 0, 00052 Reminders 00053 }; 00054 TaskEditorAlarms( QWidget* parent = 0, int type = Alarm, const char* name = 0, WFlags fl = 0 ); 00055 ~TaskEditorAlarms(); 00056 void load( const OPimTodo& ); 00057 void save( OPimTodo& ); 00058 private: 00059 QPopupMenu* popup( int column ); 00060 void inlineSetDate( AlarmItem*, const QPoint& p ); 00061 void inlineSetTime( AlarmItem*); 00062 void inlineSetType( AlarmItem*, const QPoint& p ); 00063 00064 QListView* lstAlarms; 00065 QPopupMenu* m_date; 00066 QPopupMenu* m_time; 00067 QPopupMenu* m_type; 00068 DateBookMonth* m_dbMonth; 00069 00070 protected slots: 00071 void slotNew(); 00072 void slotEdit(); 00073 void slotDelete(); 00074 void inlineEdit( QListViewItem*, const QPoint& p, int ); 00075 }; 00076 00077 #endif // TASKEDITORALARMS_H
1.4.2