23 #ifndef KOEDITORGENERAL_H
24 #define KOEDITORGENERAL_H
26 #include <libkcal/alarm.h>
27 #include <tqlineedit.h>
39 class KSqueezedTextLabel;
41 class KOEditorAttachments;
49 class FocusLineEdit :
public TQLineEdit
54 FocusLineEdit( TQWidget *parent );
57 void focusReceivedSignal();
60 void focusInEvent ( TQFocusEvent *e );
66 class KOEditorGeneral :
public TQObject
71 KOEditorGeneral (TQObject* parent=0,
const char* name=0);
72 virtual ~KOEditorGeneral();
74 void initHeader( TQWidget *parent,TQBoxLayout *topLayout );
75 void initDescription(TQWidget *,TQBoxLayout *);
76 void initSecrecy(TQWidget *,TQBoxLayout *);
77 void initAlarm(TQWidget *,TQBoxLayout *);
78 void initAttachments(TQWidget *,TQBoxLayout *);
81 void setDefaults(
bool allDay);
85 void writeIncidence(
Incidence *incidence );
88 bool validateInput() {
return true; }
90 void enableAlarm(
bool enable );
91 void toggleAlarm(
bool on );
93 void setSummary(
const TQString & );
94 void setDescription(
const TQString & );
96 TQObject *typeAheadReceiver()
const;
99 void setCategories(
const TQStringList &categories);
100 void selectCategories();
101 void setType(
const TQCString &type );
102 void addAttachments(
const TQStringList &attachments,
103 const TQStringList& mimeTypes = TQStringList(),
104 bool inlineAttachment =
false );
108 void updateAlarmWidgets(
Incidence *incidence );
109 void updateDefaultAlarmTime();
110 void updateAttendeeSummary(
int count );
113 void openCategoryDialog();
114 void updateCategoryConfig();
115 void focusReceivedSignal();
116 void openURL(
const KURL & );
119 TQLineEdit *mSummaryEdit;
120 TQLineEdit *mLocationEdit;
121 TQLabel *mAttendeeSummaryLabel;
122 TQLabel *mRecEditLabel;
123 TQPushButton *mRecEditButton;
125 TQLabel *mAlarmInfoLabel;
126 TQCheckBox *mAlarmButton;
127 TQSpinBox *mAlarmTimeEdit;
128 TQComboBox *mAlarmIncrCombo;
129 TQPushButton *mAlarmAdvancedButton;
130 KTextEdit *mDescriptionEdit;
131 TQLabel *mOwnerLabel;
132 TQComboBox *mSecrecyCombo;
133 TQPushButton *mCategoriesButton;
134 KSqueezedTextLabel *mCategoriesLabel;
135 KOEditorAttachments *mAttachments;
136 TQLabel *mResourceLabel;
140 bool isSimpleAlarm(
Alarm *alarm )
const;
143 TQHBox *mSimpleAlarmBox;
144 TQStringList mCategories;
146 KCal::Alarm::List mAlarmList;