From 15855fa84a09fd1fd486d357c38db0f2bd181e74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 4 Mar 2014 23:23:45 +0000 Subject: HistoryStats compiles ok now git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/!NotAdopted/HistoryStats/column_timeline.h | 77 ---------------------- 1 file changed, 77 deletions(-) delete mode 100644 plugins/!NotAdopted/HistoryStats/column_timeline.h (limited to 'plugins/!NotAdopted/HistoryStats/column_timeline.h') diff --git a/plugins/!NotAdopted/HistoryStats/column_timeline.h b/plugins/!NotAdopted/HistoryStats/column_timeline.h deleted file mode 100644 index 642a900546..0000000000 --- a/plugins/!NotAdopted/HistoryStats/column_timeline.h +++ /dev/null @@ -1,77 +0,0 @@ -#if !defined(HISTORYSTATS_GUARD_COLUMN_TIMELINE_H) -#define HISTORYSTATS_GUARD_COLUMN_TIMELINE_H - -#include "column.h" - -/* - * ColTimeline - */ - -class ColTimeline - : public Column -{ -public: - typedef std::map TimelineMap; - -private: - int m_nSource; - int m_nSourceType; - int m_nIgnoreOld; - bool m_bDetail; - int m_nDays; - - OptionsCtrl::Combo m_hSource; - OptionsCtrl::Edit m_hIgnoreOld; - OptionsCtrl::Check m_hDetail; - OptionsCtrl::Edit m_hDays; - - ext::string m_CSS; - int m_nTimelineWidth; - int m_nFirstDay; - int m_nLastDay; - -private: - int getValue(const InOut& value) - { - switch (m_nSourceType) - { - case 0: return value.in; - case 1: return value.out; - case 2: return value.total(); - } - - return 0; - } - - void addToSlot(Contact& contact, bool bOutgoing, DWORD localTimestamp, int toAdd); - - void outputRenderRowInOut(ext::ostream& tos, const Contact& contact, DisplayType display); - void outputRenderRowRatio(ext::ostream& tos, const Contact& contact, DisplayType display); - -public: - explicit ColTimeline(); - -protected: - virtual const mu_text* impl_getUID() const { return con::ColTimeline; } - virtual const mu_text* impl_getTitle() const { return i18n(muT("Timeline")); } - virtual const mu_text* impl_getDescription() const { return i18n(muT("Column holding a graphical overview of your chatting behaviour (out, in, total, in/out ratio) from the first to the last day of your history on an daily basis. Multiple days can be grouped. Different chatting behaviour measures are available.")); } - virtual void impl_copyConfig(const Column* pSource); - virtual int impl_getFeatures() const { return cfHasConfig | cfAcquiresData; } - virtual void impl_configRead(const SettingsTree& settings); - virtual void impl_configWrite(SettingsTree& settings) const; - virtual void impl_configToUI(OptionsCtrl& Opt, OptionsCtrl::Item hGroup); - virtual void impl_configFromUI(OptionsCtrl& Opt); - virtual int impl_configGetRestrictions(ext::string* pDetails) const; - virtual ext::string impl_contactDataGetUID() const; - virtual void impl_contactDataPrepare(Contact& contact) const; - virtual void impl_contactDataFree(Contact& contact) const; - virtual void impl_contactDataAcquireMessage(Contact& contact, Message& msg); - virtual void impl_contactDataAcquireChat(Contact& contact, bool bOutgoing, DWORD localTimestampStarted, DWORD duration); - virtual void impl_contactDataMerge(Contact& contact, const Contact& include) const; - virtual void impl_columnDataAfterOmit(); - virtual StyleList impl_outputGetAdditionalStyles(IDProvider& idp); - virtual void impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) const; - virtual void impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display); -}; - -#endif // HISTORYSTATS_GUARD_COLUMN_TIMELINE_H \ No newline at end of file -- cgit v1.2.3