#include "GuiDateTimeControls.h"
#include "Templates/GuiThemeStyleFactory.h"
namespace
{
namespace
{
namespace
{
using
namespace
collections
;
using
namespace
compositions
;
using
namespace
elements
;
::
::
(
*
)
:datePicker(
)
{
}
::
::
()
{
}
void
::
::
()
{
->
->
TypedControlTemplateObject
(
true
)->
();
->
();
->
.
(
->
());
}
void
::
::
()
{
->
.
(
->
());
}
void
::
::
()
{
->
.
(
->
());
}
void
::
BeforeControlTemplateUninstalled_
()
{
auto
=
TypedControlTemplateObject
(
false
);
if
(!
ct
)
return
;
ct
->
(
nullptr
);
}
void
::
AfterControlTemplateInstalled_
(
bool
)
{
auto
=
TypedControlTemplateObject
(
true
);
ct
->
(
.
());
ct
->
(
);
ct
->
(
);
();
}
void
::
()
{
::
(
.
(
,
));
}
bool
::
()
{
if
(
)
{
return
!=
L""
;
}
else
{
return
::
();
}
}
compositions
::
*
::
()
{
if
(
)
{
return
this
;
}
else
{
return
::
();
}
}
::
(
theme
::
,
bool
)
:
(
)
, nestedAlt(
)
{
new
(
this
);
(
::
());
(
::
());
(
);
(
this
,
false
);
.
(
);
.
(
);
.
(
);
.
(
);
.
(
);
();
}
::
()
{
}
const
&
::
()
{
return
;
}
void
::
(
const
&
)
{
if
(
)
{
;
TypedControlTemplateObject
(
true
)->
(
);
}
}
const WString& GuiDatePicker::GetDateFormat()
{
return
;
}
void
::
(
const
&
)
{
;
();
.
(
());
}
const
&
::
()
{
return
;
}
void
::
(
const
&
)
{
;
<
>
;
.
(
formats
);
if
(
formats
.
()>
0
)
{
formats
0
];
}
TypedControlTemplateObject
(
true
)->
(
);
();
.
(
());
.
(
());
}
void
::
(
const
&
)
{
}
void
::
BeforeControlTemplateUninstalled_
()
{
}
void
::
AfterControlTemplateInstalled_
(
bool
)
{
auto
=
TypedControlTemplateObject
(
true
);
->
(
ct
->
());
}
void
::
()
{
SetText(datePicker->GetDateLocale().FormatDate(datePicker->GetDateFormat(), selectedDate));
}
void
::
()
{
();
.
(
());
}
void
::(
compositions
::
* ,
compositions
::
& )
{
->
(
);
}
void
::
datePicker_DateLocaleChanged
(
compositions
::
*
,
compositions
::
&
)
{
();
}
void
::
(
compositions
::
*
,
compositions
::
&
)
{
();
}
void
::
(
compositions
::
*
,
compositions
::
&
)
{
->
();
()->
();
();
}
::
(
theme
::
)
:
(
)
{
.
(
());
=
new
(
theme
::
::
,
false
);
->
.
(
this
, &
::
);
->
.
(
this
, &
::
datePicker_DateLocaleChanged
);
->
.
(
this
, &
::
datePicker_DateFormatChanged
);
->
()->
(
(
0
,
0
,
0
,
0
));
()->
()->
(
->
());
()->
SetHideOnDeactivateAltHost
(
false
);
->
();
.
(
this
, &
::
);
(
());
(
->
());
}
::
()
{
}
void
::
(
const
<
>&
)
{
::
(
);
->
(
);
}
const
&
::
()
{
return
;
}
void
::
(
const
&
)
{
;
();
}
*
::
()
{
return
;
}
}
}
}