Submitted after rebase.
Change-Id: Ib41b7a39e73b18e607435c7c28d287cf994b5021
Signed-off-by: Oleksander Kostenko <o.kostenko@samsung.com>
name: "elm/genlist/item/dateline/default";
data.item: "banded_bg_area" "elm.swallow.bg";
- data.item: "texts" "text.date";
+ data.item: "texts" "elm.text";
parts{
spacer { "base"; scale; nomouse;
fixed: 0 1;
}
}
- textblock { "text.date"; scale; nomouse;
+ textblock { "elm.text"; scale; nomouse;
desc { "default";
align: 0.5 0.5;
rel1.to_y: "pad.top";
align: 1.0 0.5;
min: DATELINE_CENTER_PADDING DATELINE_HEIGHT;
max: DATELINE_CENTER_PADDING DATELINE_HEIGHT;
- rel1.to: "text.date";
+ rel1.to: "elm.text";
rel1.relative: 0 0;
- rel2.to: "text.date";
+ rel2.to: "elm.text";
rel2.relative: 0 1;
fixed: 1 0;
}
align: 0 0.5;
min: DATELINE_CENTER_PADDING DATELINE_HEIGHT;
max: DATELINE_CENTER_PADDING DATELINE_HEIGHT;
- rel1.to: "text.date";
+ rel1.to: "elm.text";
rel1.relative: 1 0;
- rel2.to: "text.date";
+ rel2.to: "elm.text";
rel2.relative: 1 1;
fixed: 1 0;
}
}
}
+ group {
+ name: "elm/genlist/item/1lineitem/default";
+ inherit: "elm/genlist/item/dateline/default";
+ parts {
+ spacer { "pad.top"; scale; nomouse;
+ desc { "default";
+ min: 0 0;
+ max: -1 0;
+ }
+ }
+ spacer { "pad.bottom"; scale; nomouse;
+ desc { "default";
+ min: 0 0;
+ max: -1 0;
+ }
+ }
+ }
+ }
+
group {
name: "elm/genlist/item/reply/default";
data.item: "banded_bg_area" "elm.swallow.bg";
+++ /dev/null
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef GroupIndexListViewItem_h_
-#define GroupIndexListViewItem_h_
-
-#include "ListItem.h"
-#include <string>
-
-namespace Msg {
- class GroupListViewItem
- : public ListItem {
- public:
- GroupListViewItem(std::string titleText = std::string());
- virtual ~GroupListViewItem();
-
- protected:
- void onAttached(ViewItem &item) override;
-
- private:
- std::string getText(ListItem &item, const char *part) override;
-
- private:
- std::string m_TitleText;
- };
-}
-
-#endif // GroupIndexListViewItem_h_
--- /dev/null
+/*
+ * Copyright 2016 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef LineListViewItem_h_
+#define LineListViewItem_h_
+
+#include "ListItem.h"
+#include <string>
+
+namespace Msg {
+ class LineListViewItem
+ : public ListItem {
+ public:
+ LineListViewItem(std::string titleText = std::string());
+ virtual ~LineListViewItem();
+
+ protected:
+ void onAttached(ViewItem &item) override;
+
+ private:
+ std::string getText(ListItem &item, const char *part) override;
+
+ private:
+ std::string m_TitleText;
+ };
+}
+
+#endif /* LineListViewItem_h_ */
+++ /dev/null
-/*
- * Copyright 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "GroupListViewItem.h"
-
-using namespace Msg;
-
-GroupListViewItem::GroupListViewItem(std::string titleText)
- : ListItem(ListItemStyle::create("groupindex"))
- , m_TitleText(std::move(titleText))
-{
-}
-
-GroupListViewItem::~GroupListViewItem()
-{
-}
-
-void GroupListViewItem::onAttached(ViewItem &item)
-{
- setSelectable(false);
-}
-
-std::string GroupListViewItem::getText(ListItem &item, const char *part)
-{
- if (!strcmp(part, "elm.text"))
- return msg(m_TitleText);
-
- return "";
-}
--- /dev/null
+/*
+ * Copyright 2016 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "LineListViewItem.h"
+
+using namespace Msg;
+
+LineListViewItem::LineListViewItem(std::string titleText)
+ : ListItem(ListItemStyle::create("1lineitem"))
+ , m_TitleText(std::move(titleText))
+{
+}
+
+LineListViewItem::~LineListViewItem()
+{
+}
+
+void LineListViewItem::onAttached(ViewItem &item)
+{
+ setSelectable(false);
+}
+
+std::string LineListViewItem::getText(ListItem &item, const char *part)
+{
+ if (!strcmp(part, "elm.text"))
+ return msg(m_TitleText);
+
+ return "";
+}
namespace {
ListItemStyleRef dateLineStyle = ListItemStyle::create("dateline");
- const char *datePart = "text.date";
+ const char *datePart = "elm.text";
}
ConvDateLineListItem::ConvDateLineListItem(const std::string &dateLine)
*/
+#include "LineListViewItem.h"
#include "ThreadList.h"
#include "ThreadListItem.h"
#include "PaddingListViewItem.h"
#include "ThreadComposeListViewItem.h"
#include "NoContentListViewItem.h"
-#include "GroupListViewItem.h"
#include "MsgEngine.h"
#include "App.h"
ListView::appendItem(*m_ComposeItem);
// Group item:
- ListView::appendItem(*new GroupListViewItem("WDS_MSG_HEADER_MESSAGES_ABB"));
+ ListView::appendItem(*new LineListViewItem("WDS_MSG_HEADER_MESSAGES_ABB"));
// Thread list:
MsgThreadListRef msgThreadList = m_App.getMsgEngine().getStorage().getThreadList();