39 namespace ArgusSamples
51 ORIGINATE_ERROR(
"'COUNT' is invalid, must be at least 1");
55 PROPAGATE_ERROR(module->
start());
63 PROPAGATE_ERROR(Window::getInstance().pollEvents());
68 runningGuard.cancel();
69 PROPAGATE_ERROR(module->
stop());
84 : m_initialized(false)
86 , m_guiContainerConfig(NULL)
87 , m_captureButton(NULL)
103 PROPAGATE_ERROR(options.addOption(
104 Options::Option(
"still",
's',
"COUNT",
105 Options::Option::TYPE_ACTION, Options::Option::FLAG_OPTIONAL_ARGUMENT,
106 "do COUNT still captures and save as jpg files. If COUNT is not specified do one still "
107 "capture.",
still,
this)));
119 PROPAGATE_ERROR_CONTINUE(
stop());
124 m_captureButton = NULL;
133 Window::IGuiContainer *iGuiContainerConfig)
139 PROPAGATE_ERROR(Window::getInstance().registerObserver(
this));
144 PROPAGATE_ERROR(Window::IGuiElement::createAction(
"Capture",
172 PROPAGATE_ERROR(Window::getInstance().unregisterObserver(
this));
181 if (key == Key(
"space"))