Waste less space in nested layouts.
[kdepim.git] / ktimetracker / edittaskdialog.h
blob53c75ccb3c6cbddfb1e319c8bbac1d70c84b80fd
1 #ifndef EDITTASKDIALOG_H
2 #define EDITTASKDIALOG_H
4 #include <QtGui/QDialog>
5 #include "desktoplist.h"
6 #include "taskview.h"
8 namespace Ui
10 class EditTaskDialog;
13 /**
14 * Class to show a dialog in ktimetracker to enter data about a task.
16 * Holds task name and auto-tracking virtual desktops.
18 * Typically this class will be called by a taskview object to enter a new task
19 * or to edit an existing task. After quitting, you can read out task name and all
20 * properties till you delete the object.
22 * @short Class to show a dialog to enter data about a task
23 * @author Thorsten Staerk
26 class EditTaskDialog : public QDialog
28 Q_OBJECT
29 public:
30 EditTaskDialog( TaskView *parent, const QString &caption, DesktopList* desktopList = 0 );
31 ~EditTaskDialog();
32 QString taskName();
33 QString timeChange();
34 void setTask( const QString &name );
35 void status( DesktopList *desktopList) const;
37 protected:
38 void changeEvent(QEvent *e);
40 private:
41 Ui::EditTaskDialog *m_ui;
42 TaskView *m_parent;
44 private slots:
45 void on_autotrackinggroupbox_clicked();
46 void on_edittimespushbutton_clicked();
49 #endif // EDITTASKDIALOG_H