summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/HistoryStats/column_timeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/HistoryStats/column_timeline.h')
-rw-r--r--plugins/!NotAdopted/HistoryStats/column_timeline.h77
1 files changed, 0 insertions, 77 deletions
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<int, InOut> 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