QList<QAction *> KoRdfLocationTreeWidgetItem::actions(QWidget *parent, KoCanvasBase *host) { QList<QAction *> m_actions; QAction *action = 0; #ifdef CAN_USE_MARBLE // These were coded to need marble action = createAction(parent, host, "Edit..."); connect(action, SIGNAL(triggered(bool)), this, SLOT(edit())); m_actions.append(action); action = createAction(parent, host, "Show location on a map"); connect(action, SIGNAL(triggered(bool)), this, SLOT(showInViewer())); m_actions.append(action); #endif action = createAction(parent, host, "Export location to KML file..."); connect(action, SIGNAL(triggered(bool)), this, SLOT(exportToFile())); m_actions.append(action); addApplyStylesheetActions(parent, m_actions, host); if (host) { action = new RdfSemanticTreeWidgetSelectAction(parent, host, semanticItem()); m_actions.append(action); } return m_actions; }
QList<QAction *> KoRdfCalendarEventTreeWidgetItem::actions(QWidget *parent, KoCanvasBase* host) { QList<QAction *> m_actions; QAction* action = 0; action = createAction(parent, host, i18n("Edit...")); connect(action, SIGNAL(triggered(bool)), this, SLOT(edit())); m_actions.append(action); action = createAction(parent, host, i18n("Import event to Calendar")); connect(action, SIGNAL(triggered(bool)), this, SLOT(saveToKCal())); m_actions.append(action); action = createAction(parent, host, i18n("Export event to iCal file...")); connect(action, SIGNAL(triggered(bool)), this, SLOT(exportToFile())); m_actions.append(action); addApplyStylesheetActions(parent, m_actions, host); if (host) { action = new RdfSemanticTreeWidgetSelectAction(parent, host, semanticItem()); m_actions.append(action); } return m_actions; }
QList<QAction *> KoRdfFoaFTreeWidgetItem::actions(QWidget *parent, KoCanvasBase *host) { QList<QAction *> m_actions; QAction *action = 0; action = createAction(parent, host, i18n("Edit...")); connect(action, SIGNAL(triggered(bool)), this, SLOT(edit())); m_actions.append(action); action = createAction(parent, host, i18n("Import contact")); connect(action, SIGNAL(triggered(bool)), this, SLOT(importSelectedSemanticViewContact())); m_actions.append(action); action = createAction(parent, host, i18n("Export as vcard...")); connect(action, SIGNAL(triggered(bool)), this, SLOT(exportToFile())); m_actions.append(action); addApplyStylesheetActions(parent, m_actions, host); if (host) { action = new RdfSemanticTreeWidgetSelectAction(parent, host, semanticItem()); m_actions.append(action); } return m_actions; }