25 #include <tqpopupmenu.h>
30 #include <kiconloader.h>
31 #include <kmessagebox.h>
32 #include <kxmlguiclient.h>
33 #include <kxmlguifactory.h>
39 #include "koeventview.h"
40 #include "koeventpopupmenu.h"
43 #include "koeventview.moc"
62 KOEventPopupMenu * eventPopup = new KOEventPopupMenu;
88 KXMLGUIClient *client = KOCore::self()->xmlguiClient( this );
90 kdError() << "KOEventView::newEventPopup(): no xmlGuiClient." << endl;
93 if ( !client->factory() ) {
94 kdError() << "KOEventView::newEventPopup(): no factory" << endl;
98 return static_cast<TQPopupMenu* >
99 ( client->factory()->container( "rmb_selection_popup", client ) );
103 void KOEventView::popupShow()
110 void KOEventView::popupEdit()
117 void KOEventView::popupDelete()
124 void KOEventView::popupCut()
131 void KOEventView::popupCopy()
138 void KOEventView::showNewEventPopup()
143 kdError() << "KOEventView::showNewEventPopup(): popup creation failed"
148 popup->popup( TQCursor::pos() );
156 kdDebug(5850) << "KOEventView::defaultAction()" << endl;
158 if ( !incidence ) return;
160 kdDebug(5850) << " type: " << incidence->type() << endl;
162 if ( incidence->isReadOnly() ) {
171 #include "baseview.moc"
|