@@ -105,57 +105,17 @@ class TabItem : public CTabViewTabItem
105
105
m_split.SetSplitterPanes (m_top, m_bottom, true );
106
106
m_split.SetSplitterPos (560 );
107
107
108
- InitTimeLine ();
109
- m_timelineView.Create (m_bottom, CWindow::rcDefault, gdi::CTimelineView::GetWndClassName (), WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL);
110
- m_timelineView.SetView (0.0 , 1000.0 );
111
- m_bottom.SetClient (m_timelineView);
112
108
DisablePaneHeader (m_top);
113
109
DisablePaneHeader (m_bottom);
114
110
}
115
111
116
- void InitTimeLine ()
117
- {
118
- m_timelineView.SetFormatter ([](gdi::Location l) {
119
- return Str (FormatDuration (l));
120
- });
121
-
122
- m_timelineView.SetDataProvider ([](gdi::Location, gdi::Location) {
123
- auto info = std::make_shared<gdi::Line>(L" Some info" );
124
- info->Add (gdi::Artifact (650 , gdi::Artifact::Type::Flag, RGB (255 , 0 , 0 )));
125
- info->Add (gdi::Artifact (700 , gdi::Artifact::Type::Flag, RGB (255 , 0 , 0 ), RGB (0 , 255 , 0 )));
126
- info->Add (gdi::Artifact (750 , gdi::Artifact::Type::Flag));
127
- info->Add (gdi::Artifact (800 , gdi::Artifact::Type::Flag));
128
- info->Add (gdi::Artifact (850 , gdi::Artifact::Type::Flag));
129
- info->Add (gdi::Artifact (992 , gdi::Artifact::Type::Flag));
130
-
131
- auto sequence = std::make_shared<gdi::Line>(L" Move Sequence" );
132
- sequence->Add (gdi::Artifact (615 , gdi::Artifact::Type::Flag, RGB (160 , 160 , 170 )));
133
- sequence->Add (gdi::Artifact (632 , gdi::Artifact::Type::Flag, RGB (160 , 160 , 170 )));
134
- sequence->Add (gdi::Artifact (636 , gdi::Artifact::Type::Flag, RGB (255 , 0 , 0 ), RGB (0 , 255 , 0 )));
135
- sequence->Add (gdi::Artifact (640 , gdi::Artifact::Type::Flag, RGB (255 , 0 , 0 )));
136
-
137
- auto data = std::make_shared<gdi::Line>(L" Arbitrary data" );
138
- data->Add (gdi::Artifact (710 , gdi::Artifact::Type::Flag, RGB (0 , 0 , 255 )));
139
- info->Add (gdi::Artifact (701 , gdi::Artifact::Type::Flag));
140
-
141
- gdi::TimeLines lines;
142
- lines.emplace_back (info);
143
- lines.emplace_back (sequence);
144
- lines.emplace_back (data);
145
- return lines;
146
- });
147
- }
148
-
149
112
private:
150
113
T m_logview;
151
114
CHorSplitterWindow m_split;
152
115
CPaneContainer m_top;
153
116
CPaneContainer m_bottom;
154
- gdi::CTimelineView m_timelineView;
155
117
};
156
118
157
119
using CLogViewTabItem2 = TabItem<CLogView>;
158
- // using CLogViewTabItem2 = TabItem<CListViewCtrl>;
159
-
160
120
161
121
} // namespace fusion
0 commit comments