<layout bottomRelation="IDL_TWO_BUTTON_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="" centerVertical="false" height="135" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TWO_BUTTON_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="114" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_TWO_BUTTON_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_TWO_BUTTON_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="576" x="0" y="0"/>
</Label>
<Button id="IDC_BUTTON_DELETE" parent="IDL_TWO_BUTTON_POPUP">
- <property disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_CLD_SK3_DELETE" textSize="33" verticalAlign="ALIGN_MIDDLE"/>
+ <property disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="#C24747" highlightedColorOpacity="100" highlightedTextColor="#FFFFFF" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#D05252" normalColorOpacity="100" normalTextColor="#FFFFFF" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="#C24747" pressedColorOpacity="100" pressedTextColor="#FFFFFF" text="::IDS_CLD_SK3_DELETE" textSize="33" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="IDL_TWO_BUTTON_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TWO_BUTTON_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="278" x="0" y="178"/>
<layout bottomRelation="IDL_TWO_BUTTON_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_TWO_BUTTON_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="278" x="0" y="178"/>
</Button>
static const int IDA_EVENT_DETAILS_FORM_ADD_TO_CALENDAR = 60004;
static const int IDA_DETAIL_FORM_FOOTER_SUB_MENU = 60010;
-static const unsigned int COLOR_ITEM_BACKGROUND = Color32<232, 232, 232>::Value;
static const int H_ITEM = 140;
static const int H_MAIN_ITEM = 313;
static const int Y_MAIN_ITEM_SUBJECT = 18;
{
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, H_MAIN_ITEM));
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
pItem->SetEnabled(false);
int y = Y_MAIN_ITEM_SUBJECT;
}
pItem->Construct(Dimension(itemWidth, itemHeight));
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
pItem->SetEnabled(false);
Label* pLabelDescription = new (std::nothrow) Label();
if (location.IsEmpty() != true)
{
pItem->Construct(Dimension(itemWidth, H_ITEM));
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
pItem->SetEnabled(false);
Label* pLabelLocation = new (std::nothrow) Label();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, height));
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
pItem->SetEnabled(false);
Label* pLabelReminder = new (std::nothrow) Label();
{
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, H_REPEAT_ITEM));
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
pItem->SetEnabled(false);
Label* pLabelRepeat = new (std::nothrow) Label();
{
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, H_SAVE_TO_ITEM));
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
pItem->SetEnabled(false);
int x = 0;
static const int H_ITEM = 112;
static const int H_ITEM_2LINE = 136;
-static const unsigned int COLOR_ITEM_BACKGROUND = Color32<232, 232, 232>::Value;
+static const unsigned int COLOR_ITEM_BACKGROUND = Color32<239, 237, 229>::Value;
static const unsigned int COLOR_BLANK_BACKGROUND = Color32<0, 0, 0, 0>::Value;
static const int Y_ITEM_CONTENT01 = 22;
static const int H_ITEM_CONTENT01 = 38;
static const unsigned int COLOR_GROUP_ITEM_TEXT = Color32<128, 128, 128>::Value;
static const unsigned int COLOR_GROUP_ITEM_TODAY_TEXT = Color32<59, 115, 182>::Value;
static const unsigned int COLOR_ITEM_TODAY_BACKGROUND = Color32<239, 236, 224>::Value;
+static const unsigned int COLOR_ITEM_DELETE_TEXT = Color32<255, 255, 255>::Value;
+static const unsigned int COLOR_ITEM_DELETE_BACKGROUND = Color32<208, 82, 82>::Value;
+static const unsigned int COLOR_ITEM_DELETE_PRESSED_BACKGROUND = Color32<194, 71, 71>::Value;
EventSearcherForm::EventSearcherForm(void)
ResourceManager::GetString(IDS_COM_SK4_SHARE), true);
pContextItem->AddElement(IDA_EVENT_SEARCHER_CONTEXT_MENU_DELETE,
ResourceManager::GetString(IDS_CLD_SK3_DELETE), true);
+ pContextItem->SetElementBackgroundColor(IDA_EVENT_SEARCHER_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(COLOR_ITEM_DELETE_BACKGROUND));
+ pContextItem->SetElementBackgroundColor(IDA_EVENT_SEARCHER_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color(COLOR_ITEM_DELETE_PRESSED_BACKGROUND));
+ pContextItem->SetElementBackgroundColor(IDA_EVENT_SEARCHER_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, Color(COLOR_ITEM_DELETE_PRESSED_BACKGROUND));
+ pContextItem->SetElementTextColor(IDA_EVENT_SEARCHER_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(COLOR_ITEM_DELETE_TEXT));
__pContextItem = pContextItem;
}
static const unsigned int COLOR_ITEM_BACKGROUND = Color32<248, 246, 239>::Value;
static const unsigned int COLOR_ITEM_TODAY_BACKGROUND = Color32<239, 236, 224>::Value;
static const unsigned int COLOR_ITEM_TEXT_PRESSED = Color32<255, 255, 255>::Value;
+static const unsigned int COLOR_ITEM_DELETE_BACKGROUND = Color32<208, 82, 82>::Value;
+static const unsigned int COLOR_ITEM_DELETE_PRESSED_BACKGROUND = Color32<194, 71, 71>::Value;
ListPanel::ListPanel(void)
: __pPm(null)
ResourceManager::GetString(IDS_COM_SK4_SHARE), true);
pContextItem->AddElement(IDA_LIST_PANEL_CONTEXT_MENU_DELETE,
ResourceManager::GetString(IDS_CLD_SK3_DELETE), true);
+ pContextItem->SetElementBackgroundColor(IDA_LIST_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(COLOR_ITEM_DELETE_BACKGROUND));
+ pContextItem->SetElementBackgroundColor(IDA_LIST_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color(COLOR_ITEM_DELETE_PRESSED_BACKGROUND));
+ pContextItem->SetElementBackgroundColor(IDA_LIST_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, Color(COLOR_ITEM_DELETE_PRESSED_BACKGROUND));
+ pContextItem->SetElementTextColor(IDA_LIST_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(COLOR_ITEM_TEXT_PRESSED));
__pContextItem = pContextItem;
}
static const unsigned int COLOR_DAY_FOCUS = Color32<255, 255, 255>::Value;
static const unsigned int COLOR_EVENT_LIST_BACKGROUND = Color32<248, 246, 239>::Value;
static const unsigned int COLOR_EVENT_LIST_DIVIDER = Color32<169, 169, 169>::Value;
+static const unsigned int COLOR_ITEM_DELETE_TEXT = Color32<255, 255, 255>::Value;
+static const unsigned int COLOR_ITEM_DELETE_BACKGROUND = Color32<208, 82, 82>::Value;
+static const unsigned int COLOR_ITEM_DELETE_PRESSED_BACKGROUND = Color32<194, 71, 71>::Value;
static const int WEEKDAY_COUNT = 7;
static const int HALF_ALPHA = 128;
ResourceManager::GetString(IDS_COM_SK4_SHARE), true);
__pContextItem->AddElement(IDA_MONTH_PANEL_CONTEXT_MENU_DELETE,
ResourceManager::GetString(IDS_CLD_SK3_DELETE), true);
+ __pContextItem->SetElementBackgroundColor(IDA_MONTH_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(COLOR_ITEM_DELETE_BACKGROUND));
+ __pContextItem->SetElementBackgroundColor(IDA_MONTH_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color(COLOR_ITEM_DELETE_PRESSED_BACKGROUND));
+ __pContextItem->SetElementBackgroundColor(IDA_MONTH_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_HIGHLIGHTED, Color(COLOR_ITEM_DELETE_PRESSED_BACKGROUND));
+ __pContextItem->SetElementTextColor(IDA_MONTH_PANEL_CONTEXT_MENU_DELETE, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(COLOR_ITEM_DELETE_TEXT));
__pContextItemNoEdit = new (std::nothrow) ListContextItem();
__pContextItemNoEdit->Construct();
void
MonthPanel::OnListViewItemSwept(ListView& listView, int index, SweepDirection direction)
{
-
}
void
static const int Y_REMINDER_TYPE_BUTTON_TIME_UNIT = 19;
static const int W_REMINDER_TYPE_BUTTON_TIME_UNIT = 130;
static const int H_REMINDER_TYPE_BUTTON_TIME_UNIT = 74;
-static const unsigned int COLOR_ITEM_BACKGROUND = Color32<220, 218, 211>::Value;
-static const unsigned int COLOR_ITEM_TEXT = Color32<0, 0, 0>::Value;
static const int X_TIME_UNIT_SELECTOR = 400;
static const int Y_TIME_UNIT_SELECTOR = 1050;
return;
}
- if(__pReminder != null)
+ if (__reminderType == REMINDER_TYPE_CUSTOM)
{
- if (__reminderType == REMINDER_TYPE_CUSTOM)
+ int timeOffset = 0;
+ if (__pEditFieldReminderTime != null)
{
- int timeOffset = 0;
if (__pEditFieldReminderTime->GetText().IsEmpty() == false)
{
Integer::Parse(__pEditFieldReminderTime->GetText(), timeOffset);
}
-
- __pReminder->SetTimeOffset(__reminderTimeUnit, timeOffset);
}
+ else
+ {
+ timeOffset = __customReminderTimeOffset;
+ }
+
+ __pReminder->SetTimeOffset(__reminderTimeUnit, timeOffset);
}
LinkedList* pList = new (std::nothrow) LinkedList();
{
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, H_REMINDER_ITEM), TABLE_VIEW_ANNEX_STYLE_RADIO);
- pItem->SetBackgroundColor(COLOR_ITEM_BACKGROUND, TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
Label* pText = new (std::nothrow) Label();
switch (itemIndex)
pText->SetTextConfig(FONT_SIZE_REMINDER_TYPE_CUSTOM, LABEL_TEXT_STYLE_NORMAL);
pText->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pText->SetTextColor(COLOR_ITEM_TEXT);
pItem->AddControl(*pText);
return pItem;
void
ReminderForm::OnActionPerformed(const Control& source, int actionId)
{
+ SetFocus();
switch (actionId)
{
case IDA_REMINDER_FORM_TIME_UNIT:
- __pEditFieldReminderTime->HideKeypad();
__pContextMenuTimeUnitSelector->SetAnchorPosition(Point(X_TIME_UNIT_SELECTOR, Y_TIME_UNIT_SELECTOR));
__pContextMenuTimeUnitSelector->SetShowState(true);
__pContextMenuTimeUnitSelector->Show();
SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pList);
}
- if(__pReminder != null)
+ if (__reminderType == REMINDER_TYPE_CUSTOM)
{
- if (__reminderType == REMINDER_TYPE_CUSTOM)
+ int timeOffset = 0;
+ if (__pEditFieldReminderTime != null)
{
- int timeOffset = 0;
if (__pEditFieldReminderTime->GetText().IsEmpty() == false)
{
Integer::Parse(__pEditFieldReminderTime->GetText(), timeOffset);
}
-
- __pReminder->SetTimeOffset(__reminderTimeUnit, timeOffset);
}
+ else
+ {
+ timeOffset = __customReminderTimeOffset;
+ }
+
+ __pReminder->SetTimeOffset(__reminderTimeUnit, timeOffset);
}
LinkedList* pList = new (std::nothrow) LinkedList();
ReminderForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
Invalidate(true);
+ __pTableView->ScrollToItem(0, REMINDER_TYPE_CUSTOM, TABLE_VIEW_SCROLL_ITEM_ALIGNMENT_BOTTOM);
}
void
};
static const int H_REPEAT_ITEM = 112;
-static const unsigned int COLOR_ITEM_BACKGROUND = Color32<220, 218, 211>::Value;
static const int FONT_SIZE_REPEAT_UNTIL_TYPE = 44;
static const int X_REPEAT_UNTIL = 148;
static const int Y_REPEAT_UNTIL_TYPE_EDIT_FIELD = 16;
static const int W_REPEAT_UNTIL_TYPE_EDIT_FIELD = 132;
static const int H_REPEAT_UNTIL_TYPE_EDIT_FIELD = 80;
-static const int X_REPEAT_UNTIL_TYPE_EDIT_DATE = 90;
+static const int X_REPEAT_UNTIL_TYPE_EDIT_DATE = 0;
static const int Y_REPEAT_UNTIL_TYPE_EDIT_DATE = 0;
-static const unsigned int COLOR_TEXT_REPEAT = Color32<0, 0, 0>::Value;
+
static const int IDA_REMINDER_FORM_BACK = 29101;
RepeatForm::RepeatForm(void)
if (__repeatUntilType == REPEAT_UNTIL_TYPE_UNTIL_DATE)
{
- DateTime dateTime;
- dateTime.SetValue(__pEditDateUntilDate->GetYear(), __pEditDateUntilDate->GetMonth()
- , __pEditDateUntilDate->GetDay(), 23, 59, 59);
+ DateTime dateTime = __untilDate;
+ if (__pEditDateUntilDate != null)
+ {
+ dateTime.SetValue(__pEditDateUntilDate->GetYear(), __pEditDateUntilDate->GetMonth()
+ , __pEditDateUntilDate->GetDay(), 23, 59, 59);
+ }
__pRepeat->SetUntil(&dateTime);
}
else if (__repeatUntilType == REPEAT_UNTIL_TYPE_COUNT)
{
int count = 1;
- if (__pEditFieldRepeatCount->GetText().IsEmpty() == false)
+ if (__pEditFieldRepeatCount != null)
+ {
+ if (__pEditFieldRepeatCount->GetText().IsEmpty() == false)
+ {
+ Integer::Parse(__pEditFieldRepeatCount->GetText(), count);
+ }
+ }
+ else
{
- Integer::Parse(__pEditFieldRepeatCount->GetText(), count);
+ count = __repeatCount;
}
__pRepeat->SetCounts((count > 1) ? count : 1);
}
{
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, H_REPEAT_ITEM), TABLE_VIEW_ANNEX_STYLE_RADIO);
- pItem->SetBackgroundColor(COLOR_ITEM_BACKGROUND, TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
if (sectionIndex == GROUP_REPEAT_UNTIL_TYPE && itemIndex == REPEAT_UNTIL_TYPE_UNTIL_DATE)
{
__pEditDateUntilDate = new (std::nothrow) EditDate();
}
pContent->SetTextConfig(FONT_SIZE_REPEAT_UNTIL_TYPE, LABEL_TEXT_STYLE_NORMAL);
- pContent->SetTextColor(Color(COLOR_TEXT_REPEAT));
pContent->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pItem->AddControl(*pContent);
};
static const int H_ITEM = 112;
-static const unsigned int COLOR_ITEM_BACKGROUND = Color32<248, 246, 239>::Value;
static const unsigned int COLOR_EXPANDED_ITEM_BACKGROUND = Color32<220, 218, 211>::Value;
static const int H_LOCK_TIME_ZONE_SELECTION_ITEM = 140;
static const int Y_LOCK_TIME_ZONE = 22;
bool
SettingForm::HasSectionHeader(int sectionIndex)
{
- return true;
+ return false;
}
String
{
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, H_FIRST_DAY_OF_WEEK_ITEM), TABLE_VIEW_ANNEX_STYLE_NORMAL);
- // TBD : Background color of item must be transparent.(will be in SDK 2.1)
- pItem->SetBackgroundColor(Color(COLOR_ITEM_BACKGROUND));
Label* pLabel = new (std::nothrow) Label();
pLabel->Construct(Rectangle(0, Y_FIRST_DAY_OF_WEEK, itemWidth, H_FIRST_DAY_OF_WEEK), L"First day of week");