karm Library API Documentation

edittaskdialog.h

00001 /* 00002 * karm 00003 * This file only: Copyright (C) 1999 Espen Sand, espensa@online.no 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 */ 00020 00021 #ifndef KARM_EDIT_TASK_DIALOG_H 00022 #define KARM_EDIT_TASK_DIALOG_H 00023 00024 #include <vector> 00025 00026 #include <kdialogbase.h> 00027 #include <qcheckbox.h> 00028 00029 #include "desktoplist.h" 00030 00031 class QComboBox; 00032 class QLabel; 00033 class QLineEdit; 00034 class QRadioButton; 00035 class QString; 00036 00037 class KArmTimeWidget; 00038 00043 class EditTaskDialog : public KDialogBase 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 EditTaskDialog(QString caption, bool editDlg, DesktopList* desktopList=0); 00049 void setTask(const QString &name, long time, long sessionTime); 00050 QString taskName() const; 00051 00052 // return user choices 00053 void status( long *time, long *timeDiff, 00054 long *session, long *sessionDiff, 00055 DesktopList *desktopList) const; 00056 00057 private slots: 00058 void slotAbsolutePressed(); 00059 void slotRelativePressed(); 00060 void slotAutoTrackingPressed(); 00061 00062 private: 00063 QLineEdit* _name; 00064 KArmTimeWidget* _timeTW; 00065 KArmTimeWidget* _sessionTW; 00066 KArmTimeWidget* _diffTW; 00067 QComboBox* _operator; 00068 std::vector<QCheckBox*> _deskBox; // we only need an array, but ISO forbids 00069 // passing an array as a function argument 00070 00071 long origTime; 00072 long origSession; 00073 00074 QRadioButton *_absoluteRB; 00075 QRadioButton *_relativeRB; 00076 00077 QCheckBox *_desktopCB; 00078 int desktopCount; 00079 00080 QLabel* _timeLA; 00081 QLabel* _sessionLA; 00082 }; 00083 00084 00085 00086 00087 00088 #endif // KARM_EDIT_TASK_DIALOG 00089
KDE Logo
This file is part of the documentation for karm Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:33 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003