--- a/idlehomescreen/xmluicontroller/src/texttransactionelement.cpp Tue Feb 02 00:04:13 2010 +0200
+++ b/idlehomescreen/xmluicontroller/src/texttransactionelement.cpp Fri Feb 19 22:42:37 2010 +0200
@@ -22,6 +22,7 @@
#include "xntype.h"
#include "xnproperty.h"
#include "xntext.h"
+#include "xntexteditor.h"
#include "xnmenuadapter.h"
#include "xnnewsticker.h"
//#include <xnmarquee.h>
@@ -33,6 +34,8 @@
#include "xnvolumecontrol.h"
#include "aistrcnv.h"
+_LIT8( KTextEditor, "texteditor" );
+
// ============================ MEMBER FUNCTIONS ===============================
using namespace AiXmlUiController;
@@ -109,9 +112,8 @@
type == KXnMenuItem ||
type == KXnMenu ||
type == XnPropertyNames::softkey::KNodeName ||
- type == XnPropertyNames::volumecontrol::KSlider /*||
- type == XnNewstickerInterface::MXnNewstickerInterface::Type() ||
- type == XnMarqueeInterface::MXnMarqueeInterface::Type() */);
+ type == XnPropertyNames::volumecontrol::KSlider ||
+ type == KTextEditor );
}
void CTextTransactionElement::CheckTypeL( CXnNodeAppIf& aTarget )
@@ -134,9 +136,17 @@
XnComponentInterface::MakeInterfaceL( textControl, Target() );
LeaveIfNull( textControl, KErrNotSupported );
- // Set text
+ // set text
+ textControl->SetTextL( *iNewText );
+ }
+ else if( type == XnTextEditorInterface::MXnTextEditorInterface::Type() )
+ {
+ XnTextEditorInterface::MXnTextEditorInterface* editorControl = NULL;
+ XnComponentInterface::MakeInterfaceL( editorControl, Target() );
+ LeaveIfNull( editorControl, KErrNotSupported );
- textControl->SetTextL( *iNewText );
+ // set text
+ editorControl->SetTextL( *iNewText );
}
// Menu softkey texts