20#ifndef KPTCALENDARLISTDIALOG_H
21#define KPTCALENDARLISTDIALOG_H
23#include "kptcalendarlistdialogbase.h"
24#include "kptcalendaredit.h"
25#include "kptcalendar.h"
27#include <kdialogbase.h>
36class CalendarListViewItem;
40class CalendarListDialogImpl :
public CalendarListDialogBase {
44 CalendarListDialogImpl(Project &project, TQWidget *parent);
46 void setBaseCalendars();
48 Calendar *getCalendar() {
return calendar->getCalendar(); }
49 void setCalendar(Calendar *cal);
51 TQPtrList<CalendarListViewItem> &deletedItems();
53 void renameStopped(TQListViewItem *item);
56 void slotSelectionChanged();
57 void slotSelectionChanged(TQListViewItem *listItem);
60 void slotBaseCalendarActivated(
int id);
61 void slotCalendarModified();
62 void slotDeleteClicked();
63 void slotAddClicked();
64 void slotEnableButtonOk(
bool on);
65 void slotItemRenamed(TQListViewItem *item,
int col);
66 void slotListDoubleClicked(TQListViewItem *item,
const TQPoint&,
int col);
67 void slotStartRename(TQListViewItem *item,
int col);
68 void slotRenameStarted(TQListViewItem *item,
int col);
71 void obligatedFieldsFilled(
bool yes);
72 void calendarModified();
73 void calendarChanged();
74 void enableButtonOk(
bool on);
77 void renameStarted(TQListViewItem *,
int);
78 void startRename(TQListViewItem *item,
int col);
79 void selectionChanged();
82 CalendarListViewItem *findItem(Calendar *cal);
86 TQPtrList<CalendarListViewItem> m_deletedItems;
87 TQPtrList<CalendarListViewItem> baseCalendarList;
88 TQListViewItem *m_renameItem;
91class CalendarListDialog :
public KDialogBase {
95 CalendarListDialog(Project &project, TQWidget *parent=0,
const char *name=0);
97 KCommand *buildCommand(Part *part);
104 CalendarListDialogImpl *dia;