#include "GuiGraphicsHost.h"
namespace
{
namespace
{
namespace
{
::
(
*
,
bool
,
bool
,
bool
,
)
:shortcutKeyManager(
)
,ctrl(
)
,shift(
)
,alt(
)
,key(
)
{
}
::
()
{
}
*
::
()
{
return
;
}
::
()
{
;
if
(
)
name
+=
L"Ctrl+"
;
if
(
)
name
+=
L"Shift+"
;
if
(
)
name
+=
L"Alt+"
;
name
()->
()->
(
);
return
name
;
}
bool
::
(
const
&
)
{
return
.
==
&&
.
==
&&
.
==
&&
.
==
;
}
bool
::
(
bool
,
bool
,
bool
,
)
{
return
==
&&
==
&&
==
&&
==
;
}
::
()
{
}
::
()
{
}
::
()
{
return
.
();
}
*
::
(
)
{
return
].
();
}
bool
::
(
const
&
)
{
bool
=
false
;
FOREACH(Ptr<GuiShortcutKeyItem>, item, shortcutKeyItems)
if
(
bool
=
true
)
for
(
const
::
vl
::
collections
::
<
<
>>&
= ::
vl
::
collections
::
(
);
__scope_variable_flag__
;
__scope_variable_flag__
=
false
)
for
(
<
>
;
__foreach_iterator__
.
(
item
);)
{
if
(
item
(
))
{
;
item
.
(
arguments
);
executed
=
true
;
}
}
return
executed
;
}
*
::
(
bool
,
bool
,
bool
,
)
{
FOREACH(Ptr<GuiShortcutKeyItem>, item, shortcutKeyItems)
if
(
bool
=
true
)
for
(
const
::
vl
::
collections
::
<
<
>>&
= ::
vl
::
collections
::
(
);
__scope_variable_flag__
;
__scope_variable_flag__
=
false
)
for
(
<
>
;
__foreach_iterator__
.
(
item
);)
{
if
(
item
(
,
,
,
))
{
return
item
.
();
}
}
<
>
=
new
(
this
,
,
,
,
);
.
(
item
);
return
item
.
();
}
bool
::
(
bool
,
bool
,
bool
,
)
{
FOREACH(Ptr<GuiShortcutKeyItem>, item, shortcutKeyItems)
if
(
bool
=
true
)
for
(
const
::
vl
::
collections
::
<
<
>>&
= ::
vl
::
collections
::
(
);
__scope_variable_flag__
;
__scope_variable_flag__
=
false
)
for
(
<
>
;
__foreach_iterator__
.
(
item
);)
{
if
(
item
(
,
,
,
))
{
.
(
item
.
());
return
true
;
}
}
return
false
;
}
*
::
(
bool
,
bool
,
bool
,
)
{
FOREACH(Ptr<GuiShortcutKeyItem>, item, shortcutKeyItems)
if
(
bool
=
true
)
for
(
const
::
vl
::
collections
::
<
<
>>&
= ::
vl
::
collections
::
(
);
__scope_variable_flag__
;
__scope_variable_flag__
=
false
)
for
(
<
>
;
__foreach_iterator__
.
(
item
);)
{
if
(
item
(
,
,
,
))
{
return
item
.
();
}
}
return
0
;
}
}
}
}