From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/column_timeline.cpp | 104 +++++++++++++-------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'plugins/HistoryStats/src/column_timeline.cpp') diff --git a/plugins/HistoryStats/src/column_timeline.cpp b/plugins/HistoryStats/src/column_timeline.cpp index e3b6596c06..b6a5dc55c5 100644 --- a/plugins/HistoryStats/src/column_timeline.cpp +++ b/plugins/HistoryStats/src/column_timeline.cpp @@ -43,9 +43,9 @@ void ColTimeline::impl_configWrite(SettingsTree& settings) const void ColTimeline::impl_configToUI(OptionsCtrl& Opt, OptionsCtrl::Item hGroup) { m_hSource = Opt.insertCombo(hGroup, TranslateT("Data source")); - m_hIgnoreOld = Opt.insertEdit(hGroup, TranslateT("Drop everything older than (days, 0=no limit)"), _T(""), OptionsCtrl::OCF_NUMBER); + m_hIgnoreOld = Opt.insertEdit(hGroup, TranslateT("Drop everything older than (days, 0=no limit)"), L"", OptionsCtrl::OCF_NUMBER); m_hDetail = Opt.insertCheck(hGroup, TranslateT("Details for every bar (tooltip)")); - m_hDays = Opt.insertEdit (hGroup, TranslateT("Number of days to group"), _T(""), OptionsCtrl::OCF_NUMBER); + m_hDays = Opt.insertEdit (hGroup, TranslateT("Number of days to group"), L"", OptionsCtrl::OCF_NUMBER); static const TCHAR* sourceTexts[] = { LPGENT("Characters (incoming)"), @@ -96,7 +96,7 @@ int ColTimeline::impl_configGetRestrictions(ext::string* pDetails) const ext::string ColTimeline::impl_contactDataGetUID() const { - return ext::str(ext::format(_T("timeline-|")) % m_nSource); + return ext::str(ext::format(L"timeline-|") % m_nSource); } void ColTimeline::impl_contactDataPrepare(Contact& contact) const @@ -168,20 +168,20 @@ Column::StyleList ColTimeline::impl_outputGetAdditionalStyles(IDProvider& idp) { m_CSS = idp.getID(); - l.push_back(StylePair(_T("div.") + m_CSS, _T("position: relative; left: 50%; margin-left: -") + utils::intToString(m_nTimelineWidth / 2) + _T("px; width: ") + utils::intToString(m_nTimelineWidth) + _T("px; height: 49px;"))); + l.push_back(StylePair(L"div." + m_CSS, L"position: relative; left: 50%; margin-left: -" + utils::intToString(m_nTimelineWidth / 2) + L"px; width: " + utils::intToString(m_nTimelineWidth) + L"px; height: 49px;")); if (m_nSourceType != 3) { - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div"), _T("position: absolute; top: 0px; width: 3px; height: 49px; overflow: hidden;"))); - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div div"), _T("position: absolute; left: 0px; width: 3px; background-color: ") + utils::colorToHTML(con::ColorBar) + _T(";"))); - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div.l"), _T("position: absolute; top: 24px; left: 0px; height: 1px; width: ") + utils::intToString(m_nTimelineWidth) + _T("px; background-color: ") + utils::colorToHTML(con::ColorBarLine) + _T("; z-index: 9;"))); + l.push_back(StylePair(L"div." + m_CSS + L" div", L"position: absolute; top: 0px; width: 3px; height: 49px; overflow: hidden;")); + l.push_back(StylePair(L"div." + m_CSS + L" div div", L"position: absolute; left: 0px; width: 3px; background-color: " + utils::colorToHTML(con::ColorBar) + L";")); + l.push_back(StylePair(L"div." + m_CSS + L" div.l", L"position: absolute; top: 24px; left: 0px; height: 1px; width: " + utils::intToString(m_nTimelineWidth) + L"px; background-color: " + utils::colorToHTML(con::ColorBarLine) + L"; z-index: 9;")); } else { - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div"), _T("position: absolute; top: 0px; width: 3px; height: 49px; overflow: hidden; z-index: 9;"))); - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div div.o"), _T("position: absolute; left: 0px; width: 3px; background-color: ") + utils::colorToHTML(con::ColorOut) + _T(";"))); - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div div.i"), _T("position: absolute; top: 24px; left: 0px; width: 3px; background-color: ") + utils::colorToHTML(con::ColorIn) + _T(";"))); - l.push_back(StylePair(_T("div.") + m_CSS + _T(" div.l"), _T("position: absolute; top: 24px; left: 0px; height: 1px; width: ") + utils::intToString(m_nTimelineWidth) + _T("px; background-color: ") + utils::colorToHTML(con::ColorIOLine) + _T("; z-index: 8;"))); + l.push_back(StylePair(L"div." + m_CSS + L" div", L"position: absolute; top: 0px; width: 3px; height: 49px; overflow: hidden; z-index: 9;")); + l.push_back(StylePair(L"div." + m_CSS + L" div div.o", L"position: absolute; left: 0px; width: 3px; background-color: " + utils::colorToHTML(con::ColorOut) + L";")); + l.push_back(StylePair(L"div." + m_CSS + L" div div.i", L"position: absolute; top: 24px; left: 0px; width: 3px; background-color: " + utils::colorToHTML(con::ColorIn) + L";")); + l.push_back(StylePair(L"div." + m_CSS + L" div.l", L"position: absolute; top: 24px; left: 0px; height: 1px; width: " + utils::intToString(m_nTimelineWidth) + L"px; background-color: " + utils::colorToHTML(con::ColorIOLine) + L"; z-index: 8;")); } } @@ -208,9 +208,9 @@ void ColTimeline::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpa if (row == 1) { ext::string strTitle = str(ext::kformat(TranslateT("Timeline for #{data}")) - % _T("#{data}") * TranslateTS(szSourceDesc[4 * m_nSource + m_nSourceType])); + % L"#{data}" * TranslateTS(szSourceDesc[4 * m_nSource + m_nSourceType])); - writeRowspanTD(tos, getCustomTitle(TranslateT("Timeline"), strTitle) + _T("
"), row, 1, rowSpan); + writeRowspanTD(tos, getCustomTitle(TranslateT("Timeline"), strTitle) + L"
", row, 1, rowSpan); } } @@ -271,7 +271,7 @@ void ColTimeline::outputRenderRowInOut(ext::ostream& tos, const Contact& contact if (usePNG()) { - tos << _T(""); + tos << L""; // draw graph Canvas canvas(m_nTimelineWidth, 49); @@ -311,16 +311,16 @@ void ColTimeline::outputRenderRowInOut(ext::ostream& tos, const Contact& contact if (getStatistic()->newFilePNG(canvas, strFinalFile)) { - tos << _T("\"\""); + tos << L"\"\""; } - tos << _T("") << ext::endl; + tos << L"" << ext::endl; } else { - tos << _T("") - << _T("
") - << _T("
") << ext::endl; + tos << L"" + << L"
" + << L"
" << ext::endl; for (curDay = m_nFirstDay; curDay <= m_nLastDay; curDay += m_nDays) { @@ -342,42 +342,42 @@ void ColTimeline::outputRenderRowInOut(ext::ostream& tos, const Contact& contact { int rightDay = min(curDay + m_nDays - 1, m_nLastDay); - tos << _T("
"); + tos << L"\" style=\"left: " + << (3 * ((curDay - m_nFirstDay) / m_nDays)) << L"px;\">"; } else if (bar_len != 0) { - tos << _T("
"); + tos << L"
"; } if (bar_len != 0) { - tos << _T("
"); + tos << L"
"; } if (m_bDetail || bar_len != 0) { - tos << _T("
") << ext::endl; + tos << L"
" << ext::endl; } } - tos << _T("
") << ext::endl; + tos << L"
" << ext::endl; } } @@ -389,7 +389,7 @@ void ColTimeline::outputRenderRowRatio(ext::ostream& tos, const Contact& contact if (usePNG()) { - tos << _T(""); + tos << L""; // draw graph Canvas canvas(m_nTimelineWidth, 49); @@ -446,16 +446,16 @@ void ColTimeline::outputRenderRowRatio(ext::ostream& tos, const Contact& contact if (getStatistic()->newFilePNG(canvas, strFinalFile)) { - tos << _T("\"\""); + tos << L"\"\""; } - tos << _T("") << ext::endl; + tos << L"" << ext::endl; } else { - tos << _T("") - << _T("
") - << _T("
") << ext::endl; + tos << L"" + << L"
" + << L"
" << ext::endl; for (curDay = m_nFirstDay; curDay <= m_nLastDay; curDay += m_nDays) { @@ -486,47 +486,47 @@ void ColTimeline::outputRenderRowRatio(ext::ostream& tos, const Contact& contact { int rightDay = min(curDay + m_nDays - 1, m_nLastDay); - tos << _T("
"); + tos << L"\" style=\"left: " + << (3 * ((curDay - m_nFirstDay) / m_nDays)) << L"px;\">"; } else if (bar_len != 0) { - tos << _T("
"); + tos << L"
"; } if (bar_len < 0) { - tos << _T("
"); + tos << L"
"; } else if (bar_len > 0) { - tos << _T("
"); + tos << L"
"; } if (m_bDetail || bar_len != 0) { - tos << _T("
") << ext::endl; + tos << L"
" << ext::endl; } } - tos << _T("
") << ext::endl; + tos << L"
" << ext::endl; } } -- cgit v1.2.3