34 namespace ArgusSamples
74 : m_initialized(false)
76 , m_guiContainerConfig(NULL)
103 PROPAGATE_ERROR_CONTINUE(
stop());
113 Window::IGuiContainer *iGuiContainerConfig)
119 PROPAGATE_ERROR(Window::getInstance().registerObserver(
this));
127 PROPAGATE_ERROR(Window::IGuiContainerGrid::create(&
m_guiConfig));
130 UniquePointer<Window::IGuiElement> element;
131 unsigned int column = 0;
133 PROPAGATE_ERROR(Window::IGuiElement::createAction(
"Previous Item",
135 Window::IGuiElement::ICON_PREVIOUS, &element));
136 PROPAGATE_ERROR(
m_guiConfig->attach(element.get(), column++, 0));
139 PROPAGATE_ERROR(Window::IGuiElement::createAction(
"Rewind",
141 Window::IGuiElement::ICON_MEDIA_REWIND, &element));
142 PROPAGATE_ERROR(
m_guiConfig->attach(element.get(), column++, 0));
145 PROPAGATE_ERROR(Window::IGuiElement::createAction(
"Toggle Playback",
147 Window::IGuiElement::ICON_MEDIA_PLAY, &element));
148 PROPAGATE_ERROR(
m_guiConfig->attach(element.get(), column++, 0));
151 PROPAGATE_ERROR(Window::IGuiElement::createAction(
"Next Item",
153 Window::IGuiElement::ICON_NEXT, &element));
154 PROPAGATE_ERROR(
m_guiConfig->attach(element.get(), column++, 0));
181 PROPAGATE_ERROR(Window::getInstance().unregisterObserver(
this));
190 if (key == Key(
"Left"))
194 else if (key == Key(
"Right"))
198 else if (key == Key(
"space"))