#include "GuiListViewItemTemplates.h"
#include "../../GraphicsComposition/GuiGraphicsTableComposition.h"
namespace
{
namespace
{
namespace
{
using
namespace
elements
;
using
namespace
compositions
;
using
namespace
collections
;
using
namespace
reflection
::
description
;
namespace
{
DefaultListViewItemTemplate
::
DefaultListViewItemTemplate
()
{
(
::
LimitToElementAndChildren
);
}
DefaultListViewItemTemplate
::
~
DefaultListViewItemTemplate
()
{
}
void
BigIconListViewItemTemplate
::
()
{
DefaultListViewItemTemplate
::
();
{
auto
=
new
;
(
table
);
table
->
(
2
,
3
);
table
->
(
0
,
::
());
table
->
(
1
,
::
());
table
->
(
0
,
::
(
0.5
));
table
->
(
1
,
::
());
table
->
(
2
,
::
(
0.5
));
table
->
(
(
0
,
0
,
0
,
0
));
table
->
(
5
);
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
0
,
1
,
1
,
1
);
cell
->
(
(
32
,
32
));
=
::
();
->
(
true
);
cell
->
(
);
}
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
::
);
cell
->
(
1
,
0
,
1
,
3
);
cell
->
(
(
64
,
40
));
=
::
();
->
(
::
,
::
);
->
(
true
);
->
(
true
);
cell
->
(
);
}
}
if
(
auto
=
dynamic_cast
<
*>(
))
{
auto
=
();
if
(
auto
=
dynamic_cast
<
*>(
listView
->
()->
(
::
)))
{
auto
=
view
->GetLargeImage(
itemIndex
);
if
(
imageData
)
{
->
(
imageData
->GetImage(),
imageData
->GetFrameIndex());
}
else
{
->
(
nullptr
);
}
->
(
view
->GetText(
itemIndex
));
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
}
}
.
(
this
, &
BigIconListViewItemTemplate
::
);
.
(
compositions
::
(
this
));
}
void
BigIconListViewItemTemplate
::
(
compositions
::
*
,
compositions
::
&
)
{
->
(
());
}
BigIconListViewItemTemplate
::
BigIconListViewItemTemplate
()
{
}
BigIconListViewItemTemplate
::
~
BigIconListViewItemTemplate
()
{
}
void
SmallIconListViewItemTemplate
::
()
{
DefaultListViewItemTemplate
::
();
{
auto
=
new
;
(
table
);
table
->
(
3
,
2
);
table
->
(
0
,
::
(
0.5
));
table
->
(
1
,
::
());
table
->
(
2
,
::
(
0.5
));
table
->
(
0
,
::
());
table
->
(
1
,
::
());
table
->
(
(
0
,
0
,
0
,
0
));
table
->
(
2
);
{
*
=
new
;
table
->
(
cell
);
cell
->
(
1
,
0
,
1
,
1
);
cell
->
(
(
16
,
16
));
=
::
();
->
(
true
);
cell
->
(
);
}
{
*
=
new
;
table
->
(
cell
);
cell
->
(
0
,
1
,
3
,
1
);
cell
->
(
(
192
,
0
));
=
::
();
->
(
::
,
::
);
->
(
true
);
cell
->
(
);
}
}
if
(
auto
=
dynamic_cast
<
*>(
))
{
auto
=
();
if
(
auto
=
dynamic_cast
<
*>(
listView
->
()->
(
::
)))
{
auto
=
view
->GetSmallImage(
itemIndex
);
if
(
imageData
)
{
->
(
imageData
->GetImage(),
imageData
->GetFrameIndex());
}
else
{
->
(
nullptr
);
}
->
(
view
->GetText(
itemIndex
));
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
}
}
.
(
this
, &
SmallIconListViewItemTemplate
::
);
.
(
compositions
::
(
this
));
}
void
SmallIconListViewItemTemplate
::
(
compositions
::
*
,
compositions
::
&
)
{
->
(
());
}
SmallIconListViewItemTemplate
::
SmallIconListViewItemTemplate
()
{
}
SmallIconListViewItemTemplate
::
~
SmallIconListViewItemTemplate
()
{
}
void
::
()
{
DefaultListViewItemTemplate
::
();
{
auto
=
new
;
(
table
);
table
->
(
3
,
2
);
table
->
(
0
,
::
(
0.5
));
table
->
(
1
,
::
());
table
->
(
2
,
::
(
0.5
));
table
->
(
0
,
::
());
table
->
(
1
,
::
());
table
->
(
(
0
,
0
,
0
,
0
));
table
->
(
2
);
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
1
,
0
,
1
,
1
);
cell
->
(
(
16
,
16
));
=
::
();
->
(
true
);
cell
->
(
);
}
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
0
,
1
,
3
,
1
);
cell
->
(
(
0
,
0
,
16
,
0
));
=
::
();
->
(
::
,
::
);
cell
->
(
);
}
}
if
(
auto
=
dynamic_cast
<
*>(
))
{
auto
=
();
if
(
auto
=
dynamic_cast
<
*>(
listView
->
()->
(
::
)))
{
auto
=
view
->GetSmallImage(
itemIndex
);
if
(
imageData
)
{
->
(
imageData
->GetImage(),
imageData
->GetFrameIndex());
}
else
{
->
(
nullptr
);
}
->
(
view
->GetText(
itemIndex
));
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
}
}
.
(
this
, &
::
);
.
(
compositions
::
(
this
));
}
void
::
(
compositions
::
*
,
compositions
::
&
)
{
->
(
());
}
::
()
{
}
::
~
ListListViewItemTemplate
()
{
}
elements
::
*
::
(
)
{
auto
=
new
;
->
(
cell
);
cell
->
(
+
1
,
0
,
1
,
1
);
auto
=
::
();
textElement
->
(
::
,
::
);
textElement
->
(
true
);
cell
->
(
textElement
);
return
textElement
;
}
void
::
(
)
{
->
(
+
2
,
1
);
->
(
0
,
::
(
0.5
));
for
(
=
0
;
i
<
;
i
++)
{
->
(
i
+
1
,
::
());
}
->
(
+
1
,
::
(
0.5
));
->
(
0
,
::
(
1.0
));
}
void
::
()
{
DefaultListViewItemTemplate
::
();
{
auto
=
new
;
(
table
);
table
->
(
::
LimitToElementAndChildren
);
table
->
(
3
,
2
);
table
->
(
0
,
::
(
0.5
));
table
->
(
1
,
::
());
table
->
(
2
,
::
(
0.5
));
table
->
(
0
,
::
());
table
->
(
1
,
::
());
table
->
(
(
0
,
0
,
0
,
0
));
table
->
(
4
);
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
1
,
0
,
1
,
1
);
cell
->
(
(
32
,
32
));
=
::
();
->
(
true
);
cell
->
(
);
}
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
0
,
1
,
3
,
1
);
cell
->
(
(
224
,
0
));
=
new
;
->
(
::
LimitToElementAndChildren
);
->
(
1
);
(
1
);
->
(
(
0
,
0
,
0
,
0
));
cell
->
(
);
{
=
(
0
);
}
}
}
if
(
auto
=
dynamic_cast
<
*>(
))
{
auto
=
();
if
(
auto
=
dynamic_cast
<
*>(
listView
->
()->
(
::
)))
{
auto
=
view
->GetLargeImage(
itemIndex
);
if
(
imageData
)
{
->
(
imageData
->GetImage(),
imageData
->GetFrameIndex());
}
else
{
->
(
nullptr
);
}
->
(
view
->GetText(
itemIndex
));
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
=
view
->GetDataColumnCount();
(
dataColumnCount
+
1
);
.
(
dataColumnCount
);
for
(
=
0
;
i
<
dataColumnCount
;
i
++)
{
i
] =
(
i
+
1
);
i
]->
(
view
->GetSubItem(
itemIndex
,
view
->GetDataColumn(
i
)));
i
]->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
}
}
}
.
(
this
, &
::
);
.
(
compositions
::
(
this
));
}
void
::
(
compositions
::
*
,
compositions
::
&
)
{
->
(
());
if
(
auto
=
dynamic_cast
<
*>(
->
()->
(
::
)))
{
=
view
->GetDataColumnCount();
for
(
=
0
;
i
<
dataColumnCount
;
i
++)
{
i
]->
(
());
}
}
}
::
()
{
}
::
~
TileListViewItemTemplate
()
{
}
void
InformationListViewItemTemplate
::
()
{
DefaultListViewItemTemplate
::
();
{
=
GuiSolidBackgroundElement
::
();
=
new
;
->
(
);
->
(
(
8
, -
1
,
8
,
0
));
->
(
(
0
,
1
));
(
);
auto
=
new
;
(
table
);
table
->
(
3
,
3
);
table
->
(
0
,
::
(
0.5
));
table
->
(
1
,
::
());
table
->
(
2
,
::
(
0.5
));
table
->
(
0
,
::
());
table
->
(
1
,
::
(
1.0
));
table
->
(
2
,
::
());
table
->
(
::
LimitToElementAndChildren
);
table
->
(
(
0
,
0
,
0
,
0
));
table
->
(
4
);
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
1
,
0
,
1
,
1
);
cell
->
(
(
32
,
32
));
=
::
();
->
(
true
);
cell
->
(
);
}
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
0
,
1
,
3
,
1
);
=
::
();
->
(
true
);
cell
->
(
);
}
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
0
,
2
,
3
,
1
);
cell
->
(
(
224
,
0
));
=
new
;
->
(
4
);
->
(
::
LimitToElementAndChildren
);
->
(
(
0
,
0
,
0
,
0
));
cell
->
(
);
}
}
if
(
auto
=
dynamic_cast
<
*>(
))
{
auto
=
();
if
(
auto
=
dynamic_cast
<
*>(
listView
->
()->
(
::
)))
{
auto
=
view
->GetLargeImage(
itemIndex
);
if
(
imageData
)
{
->
(
imageData
->GetImage(),
imageData
->GetFrameIndex());
}
else
{
->
(
nullptr
);
}
->
(
view
->GetText(
itemIndex
));
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
=
view
->GetDataColumnCount();
.
(
dataColumnCount
);
.
(
dataColumnCount
);
->
(
dataColumnCount
+
2
,
1
);
->
(
0
,
::
(
0.5
));
for
(
=
0
;
i
<
dataColumnCount
;
i
++)
{
->
(
i
+
1
,
::
());
}
->
(
dataColumnCount
+
1
,
::
(
0.5
));
->
(
0
,
::
(
1.0
));
for
(
=
0
;
i
<
dataColumnCount
;
i
++)
{
auto
=
new
;
->
(
cell
);
cell
->
(
i
+
1
,
0
,
1
,
1
);
auto
=
new
;
dataTable
->
(
1
,
2
);
dataTable
->
(
0
,
::
());
dataTable
->
(
0
,
::
());
dataTable
->
(
1
,
::
(
1.0
));
dataTable
->
(
::
LimitToElementAndChildren
);
dataTable
->
(
(
0
,
0
,
0
,
0
));
cell
->
(
dataTable
);
{
auto
=
new
;
dataTable
->
(
cell
);
cell
->
(
0
,
0
,
1
,
1
);
i
] =
::
();
i
]->
(
view
->GetColumnText(
view
->GetDataColumn(
i
) +
1
) +
L": "
);
i
]->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
cell
->
(
i
]);
}
{
auto
=
new
;
dataTable
->
(
cell
);
cell
->
(
0
,
1
,
1
,
1
);
i
]=
::
();
i
]->
(
true
);
i
]->
(
view
->GetSubItem(
itemIndex
,
view
->GetDataColumn(
i
)));
i
]->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
cell
->
(
i
]);
}
}
}
}
.
(
this
, &
InformationListViewItemTemplate
::
);
.
(
compositions
::
(
this
));
}
void
InformationListViewItemTemplate
::
(
compositions
::
*
,
compositions
::
&
)
{
{
auto
=
();
font
.
= (
)(
font
.
*
1.2
);
->
(
font
);
}
if
(
auto
=
dynamic_cast
<
*>(
->
()->
(
::
)))
{
=
view
->GetDataColumnCount();
for
(
=
0
;
i
<
dataColumnCount
;
i
++)
{
i
]->
(
());
i
]->
(
());
}
}
}
InformationListViewItemTemplate
::
()
{
}
InformationListViewItemTemplate
::
()
{
}
void
DetailListViewItemTemplate
::
()
{
DefaultListViewItemTemplate
::
();
=
dynamic_cast
<
ListViewColumnItemArranger
::
*>(
->
()->
(
ListViewColumnItemArranger
::
::
));
{
=
new
;
->
(
(
0
,
0
,
0
,
0
));
->
(
1
,
1
);
->
(
0
,
::
());
->
(
0
,
::
(
0
));
(
);
{
auto
=
new
;
->
(
cell
);
cell
->
(
0
,
0
,
1
,
1
);
auto
=
new
;
cell
->
(
table
);
table
->
(
3
,
2
);
table
->
(
0
,
::
(
0.5
));
table
->
(
1
,
::
());
table
->
(
2
,
::
(
0.5
));
table
->
(
0
,
::
());
table
->
(
1
,
::
(
1.0
));
table
->
(
(
0
,
0
,
0
,
0
));
table
->
(
2
);
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
1
,
0
,
1
,
1
);
cell
->
(
(
16
,
16
));
=
::
();
->
(
true
);
cell
->
(
);
}
{
auto
=
new
;
table
->
(
cell
);
cell
->
(
0
,
1
,
3
,
1
);
cell
->
(
(
0
,
0
,
8
,
0
));
=
::
();
->
(
::
,
::
);
->
(
true
);
cell
->
(
);
}
}
}
if
(
auto
=
dynamic_cast
<
*>(
))
{
auto
=
();
if
(
auto
=
dynamic_cast
<
*>(
listView
->
()->
(
::
)))
{
auto
=
view
->GetSmallImage(
itemIndex
);
if
(
imageData
)
{
->
(
imageData
->GetImage(),
imageData
->GetFrameIndex());
}
else
{
->
(
0
);
}
->
(
view
->GetText(
itemIndex
));
->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
=
view
->GetColumnCount() -
1
;
.
(
columnCount
);
->
(
1
,
columnCount
+
1
);
for
(
=
0
;
i
<
columnCount
;
i
++)
{
auto
=
new
;
->
(
cell
);
cell
->
(
0
,
i
+
1
,
1
,
1
);
cell
->
(
(
8
,
0
,
8
,
0
));
i
] =
::
();
i
]->
(
::
,
::
);
i
]->
(
->
());
i
]->
(
true
);
i
]->
(
view
->GetSubItem(
itemIndex
,
i
));
i
]->
(
listView
->
TypedControlTemplateObject
(
true
)->
());
cell
->
(
i
]);
}
();
}
}
.
(
this
, &
DetailListViewItemTemplate
::
);
.
(
compositions
::
(
this
));
}
void
DetailListViewItemTemplate
::
()
{
if
(
auto
=
dynamic_cast
<
*>(
->
()->
(
::
)))
{
if
(
)
{
=
view
->GetColumnCount();
if
(
columnCount
>
->
())
{
columnCount
=
->
();
}
for
(
=
0
;
i
<
columnCount
;
i
++)
{
->
(
i
,
::
(
->
(
i
)));
}
->
();
}
}
}
void
DetailListViewItemTemplate
::
(
compositions
::
*
,
compositions
::
&
)
{
->
(
());
if
(
auto
=
dynamic_cast
<
*>(
->
()->
(
::
)))
{
=
view
->GetColumnCount() -
1
;
for
(
=
0
;
i
<
columnCount
;
i
++)
{
i
]->
(
());
}
}
}
DetailListViewItemTemplate
::
DetailListViewItemTemplate
()
{
}
DetailListViewItemTemplate
::
~
DetailListViewItemTemplate
()
{
}
}
}
}
}