29 #include <smutset.h> |
29 #include <smutset.h> |
30 #include <hbmessagebox.h> |
30 #include <hbmessagebox.h> |
31 #include <QTimer> |
31 #include <QTimer> |
32 #include "unieditorpluginloader.h" |
32 #include "unieditorpluginloader.h" |
33 #include "unieditorplugininterface.h" |
33 #include "unieditorplugininterface.h" |
34 #include "unisendingsettings.h" |
34 #include "UniSendingSettings.h" |
35 #include "unieditorgenutils.h" |
35 #include "UniEditorGenUtils.h" |
36 #include "debugtraces.h" |
36 #include "debugtraces.h" |
37 |
37 |
38 // LOCAL CONSTANTS |
38 // LOCAL CONSTANTS |
39 |
39 |
40 const QString SEND_ICON("qtg_mono_send"); |
40 const QString SEND_ICON("qtg_mono_send"); |
41 const QString BACKGROUND("qtg_fr_input_bg"); |
41 const QString BACKGROUND("qtg_fr_input_v_bg"); |
42 const QString BACKGROUND_FRAME("qtg_fr_btn_normal"); |
42 const QString BACKGROUND_FRAME("qtg_fr_btn_normal"); |
43 |
43 |
44 const QString SEND_BUTTON_NORMAL("qtg_fr_input_btn_function_normal"); |
44 const QString SEND_BUTTON_NORMAL("qtg_fr_input_btn_function_normal"); |
45 const QString SEND_BUTTON_PRESSED("qtg_fr_input_btn_function_pressed"); |
45 const QString SEND_BUTTON_PRESSED("qtg_fr_input_btn_function_pressed"); |
46 const QString SEND_BUTTON_DISABLED("qtg_fr_input_btn_function_disabled"); |
46 const QString SEND_BUTTON_DISABLED("qtg_fr_input_btn_function_disabled"); |
47 |
47 |
48 #define LOC_SMS_CHAR_LIMIT_REACHED hbTrId("txt_messaging_dialog_sms_character_count_exceeded") |
48 #define LOC_SMS_CHAR_LIMIT_REACHED hbTrId("txt_messaging_dialog_sms_character_count_exceeded") |
49 #define LOC_DIALOG_OK hbTrId("txt_common_button_ok") |
49 #define LOC_DIALOG_OK hbTrId("txt_common_button_ok") |
50 #define LOC_BUTTON_CANCEL hbTrId("txt_common_button_cancel") |
50 #define LOC_BUTTON_CANCEL hbTrId("txt_common_button_cancel") |
|
51 #define LOC_HINT_TEXT hbTrId("txt_messaging_formlabel_enter_message_here") |
|
52 |
51 |
53 |
52 const TInt KShowCounterLimit = 10; |
54 const TInt KShowCounterLimit = 10; |
53 |
55 |
54 QGraphicsItem* FOCUSITEM = 0; |
56 QGraphicsItem* FOCUSITEM = 0; |
55 |
57 |
354 // @see header |
356 // @see header |
355 //--------------------------------------------------------------- |
357 //--------------------------------------------------------------- |
356 MsgEditor::MsgEditor(QGraphicsItem *parent) |
358 MsgEditor::MsgEditor(QGraphicsItem *parent) |
357 :HbLineEdit(parent) |
359 :HbLineEdit(parent) |
358 { |
360 { |
359 |
361 this->setSmileysEnabled(true); |
|
362 this->setPlaceholderText(LOC_HINT_TEXT); |
360 } |
363 } |
361 |
364 |
362 //--------------------------------------------------------------- |
365 //--------------------------------------------------------------- |
363 // MsgEditor::focusInEvent |
366 // MsgEditor::focusInEvent |
364 // @see header |
367 // @see header |