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 void enterWhatsThis(); 00063 00064 protected: 00065 int getDesktopCount(); 00066 00067 private: 00068 QLineEdit* _name; 00069 KArmTimeWidget* _timeTW; 00070 KArmTimeWidget* _sessionTW; 00071 KArmTimeWidget* _diffTW; 00072 QComboBox* _operator; 00073 std::vector<QCheckBox*> _deskBox; // we only need an array, but ISO forbids 00074 // passing an array as a function argument 00075 00076 long origTime; 00077 long origSession; 00078 00079 QRadioButton *_absoluteRB; 00080 QRadioButton *_relativeRB; 00081 00082 QCheckBox *_desktopCB; 00083 int desktopCount; 00084 00085 QLabel* _timeLA; 00086 QLabel* _sessionLA; 00087 }; 00088 00089 00090 00091 00092 00093 #endif // KARM_EDIT_TASK_DIALOG 00094
KDE Logo
This file is part of the documentation for karm Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003