calendarui/caleneditor/src/caleneditor_p.cpp
changeset 32 ea672fcb0ea0
parent 26 a949c2543c15
child 49 5de72ea7a065
equal deleted inserted replaced
26:a949c2543c15 32:ea672fcb0ea0
   381 
   381 
   382 	// Create cancel action
   382 	// Create cancel action
   383 	HbAction *cancelAction =
   383 	HbAction *cancelAction =
   384 	        new HbAction(hbTrId("txt_calendar_button_softkey1_cancel"));
   384 	        new HbAction(hbTrId("txt_calendar_button_softkey1_cancel"));
   385 	popUp->addAction(cancelAction);
   385 	popUp->addAction(cancelAction);
       
   386 	connect(editButtonList, SIGNAL(itemSelected(int)), popUp, SLOT(close()));
   386 	connect(editButtonList, SIGNAL(itemSelected(int)), this,
   387 	connect(editButtonList, SIGNAL(itemSelected(int)), this,
   387 	        SLOT(handleEditOccurence(int)));
   388 	        SLOT(handleEditOccurence(int)));
   388 	connect(editButtonList, SIGNAL(itemSelected(int)), popUp, SLOT(close()));
       
   389 	connect(cancelAction, SIGNAL(triggered()), this, SLOT(handleCancel()));
   389 	connect(cancelAction, SIGNAL(triggered()), this, SLOT(handleCancel()));
   390 
   390 
   391 	// Show the popup
   391 	// Show the popup
   392 	popUp->open();
   392 	popUp->open();
   393 }
   393 }
   517 							SLOT(handleDescriptionAction()));
   517 							SLOT(handleDescriptionAction()));
   518 
   518 
   519 	HbAction *deleteEventAction = qobject_cast<HbAction *> (
   519 	HbAction *deleteEventAction = qobject_cast<HbAction *> (
   520 							mEditorDocLoader->findObject(
   520 							mEditorDocLoader->findObject(
   521 										CALEN_EDITOR_DELETE_EVENT_ACTION));
   521 										CALEN_EDITOR_DELETE_EVENT_ACTION));
       
   522 	deleteEventAction->setText(hbTrId("txt_common_menu_delete"));
   522 	connect(deleteEventAction, SIGNAL(triggered()), this,
   523 	connect(deleteEventAction, SIGNAL(triggered()), this,
   523 							SLOT(showDeleteConfirmationQuery()));
   524 							SLOT(showDeleteConfirmationQuery()));
   524 
   525 
   525 	if (!mNewEntry) {
   526 	if (!mNewEntry) {
   526 		//TODO: Add the text id based on the entry type Anniversary or meeting
   527 		//TODO: Add the text id based on the entry type Anniversary or meeting