messagingapp/shareui/src/shareuiprivate.cpp
changeset 62 fdbe8253b596
parent 51 3507212d340e
child 63 eceabb8c7a12
equal deleted inserted replaced
59:fcb676ca077d 62:fdbe8253b596
    37 #include <xqaiwinterfacedescriptor.h>
    37 #include <xqaiwinterfacedescriptor.h>
    38 
    38 
    39 // USER INCLUDES
    39 // USER INCLUDES
    40 #include "shareuiprivate.h"
    40 #include "shareuiprivate.h"
    41 
    41 
    42 // Localized Constants
    42 #define LOC_TITLE_SHARING_METHODS  hbTrId("txt_share_title_sharing_methods")
    43 //#define LOC_SEND_SELECTED_ITEM  hbTrId("txt_shareui_send_selected_item")
    43 #define LOC_BUTTON_CANCEL       hbTrId("txt_common_button_cancel")
    44 //#define LOC_BUTTON_CANCEL       hbTrId("txt_shareui_button_cancel")
    44 #define LOC_NO_SERVICES         hbTrId("txt_shareui_no_services ")
    45 //#define LOC_NO_SERVICES         hbTrId("txt_shareui_no_services")
    45 #define LOC_SERVICE_ERROR       hbTrId("txt_shareui_service_error")
    46 //#define LOC_NO_FILES            hbTrId("txt_shareui_no_files")
    46 #define LOC_PROTECTED_CONTENT   hbTrId("txt_shareui_protected_content")
    47 //#define LOC_SERVICE_ERROR       hbTrId("txt_shareui_service_error")
    47 #define LOC_NO_FILES            hbTrId("txt_shareui_no_files")
    48 //#define LOC_PROTECTED_CONTENT   hbTrId("txt_shareui_protected_content")
       
    49 
       
    50 #define LOC_SEND_SELECTED_ITEM  hbTrId("Send selected item")
       
    51 #define LOC_BUTTON_CANCEL       hbTrId("Cancel")
       
    52 #define LOC_NO_SERVICES         hbTrId("No services found.")
       
    53 #define LOC_NO_FILES            hbTrId("No files found.")
       
    54 #define LOC_SERVICE_ERROR       hbTrId("Service error.")
       
    55 #define LOC_PROTECTED_CONTENT   hbTrId("Protected content.")
       
    56 
    48 
    57 const QString LIST_ITEM_TITLE("qtc_list_item_title_normal");
    49 const QString LIST_ITEM_TITLE("qtc_list_item_title_normal");
    58 
    50 
    59 /**
    51 /**
    60  * Constructor.
    52  * Constructor.
   203     {
   195     {
   204     // Dialog
   196     // Dialog
   205     mSharePopup = new HbDialog();
   197     mSharePopup = new HbDialog();
   206     // make it delete itself on close
   198     // make it delete itself on close
   207     mSharePopup->setAttribute( Qt::WA_DeleteOnClose, true );
   199     mSharePopup->setAttribute( Qt::WA_DeleteOnClose, true );
   208     HbTextItem* heading = new HbTextItem(LOC_SEND_SELECTED_ITEM, mSharePopup);
   200     HbTextItem* heading = new HbTextItem(LOC_TITLE_SHARING_METHODS, mSharePopup);
   209     QColor color = HbColorScheme::color( LIST_ITEM_TITLE );
   201     QColor color = HbColorScheme::color( LIST_ITEM_TITLE );
   210     heading->setTextColor( color );
   202     heading->setTextColor( color );
   211     heading->setAlignment(Qt::AlignCenter);
   203     heading->setAlignment(Qt::AlignCenter);
   212     mSharePopup->setDismissPolicy(HbDialog::TapAnywhere);
   204     mSharePopup->setDismissPolicy(HbDialog::TapAnywhere);
   213     mSharePopup->setHeadingWidget(heading);
   205     mSharePopup->setHeadingWidget(heading);