ui/commandhandlers/commoncommandhandlers/src/glxcommandhandlerrename.cpp
changeset 49 f291796e213d
parent 26 c499df2dbb33
child 62 36d93b4dc635
equal deleted inserted replaced
48:d0b4e67b3a60 49:f291796e213d
    24 #include <glxcommandhandlerrename.h>
    24 #include <glxcommandhandlerrename.h>
    25 #include <glxattributecontext.h>
    25 #include <glxattributecontext.h>
    26 #include <glxattributeretriever.h>
    26 #include <glxattributeretriever.h>
    27 #include <glxfetchcontextremover.h>
    27 #include <glxfetchcontextremover.h>
    28 #include <glxcommondialogs.h>
    28 #include <glxcommondialogs.h>
       
    29 #include "glxlocalisationstrings.h"
    29 
    30 
    30 GlxCommandHandlerRename::GlxCommandHandlerRename()
    31 GlxCommandHandlerRename::GlxCommandHandlerRename()
    31     {
    32     {
    32     }
    33     }
    33 
    34 
    41     Q_UNUSED(aCommandId);
    42     Q_UNUSED(aCommandId);
    42     Q_UNUSED(aConsume);
    43     Q_UNUSED(aConsume);
    43     
    44     
    44     CMPXCommand* command = NULL;
    45     CMPXCommand* command = NULL;
    45     QString mainPane = GetName(aMediaList);
    46     QString mainPane = GetName(aMediaList);
    46     QString title("Rename");
       
    47     QString mediaTitle = NULL;
    47     QString mediaTitle = NULL;
    48     bool ok = false;    
    48     bool ok = false;    
    49     GlxTextInputDialog* dlg = new GlxTextInputDialog();
    49     GlxTextInputDialog* dlg = new GlxTextInputDialog();
    50     mediaTitle = dlg->getText(title, mainPane, &ok);
    50     mediaTitle = dlg->getText(GLX_DIALOG_NAME_PROMPT, mainPane, &ok);
    51     delete dlg;
    51     delete dlg;
    52 
    52 
    53     if(ok == true)
    53     if(ok == true)
    54         {
    54         {
    55         TPtrC16 newMediaItemTitleDes
    55         TPtrC16 newMediaItemTitleDes