#include <GifDisplay.h>
Public Member Functions | |
GifDisplay (std::string the_url, std::string top, std::string left, std::string the_height, std::string the_width, std::string the_name) | |
void | printHTML (xgi::Output *out) |
~GifDisplay () | |
Private Attributes | |
std::string | height |
std::string | name |
std::string | width |
This is the class that should be instantiated and added to the web page in order to present a display for the histograms on the browser screen
Definition at line 15 of file GifDisplay.h.
GifDisplay::GifDisplay | ( | std::string | the_url, |
std::string | top, | ||
std::string | left, | ||
std::string | the_height, | ||
std::string | the_width, | ||
std::string | the_name | ||
) | [inline] |
Definition at line 25 of file GifDisplay.h.
References height, name, and width.
: WebElement(the_url, top, left) { height = the_height; width = the_width; name = the_name; }
GifDisplay::~GifDisplay | ( | ) | [inline] |
Definition at line 34 of file GifDisplay.h.
{ }
void GifDisplay::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
Definition at line 3 of file GifDisplay.cc.
References scaleCards::br, WebElement::get_pix_left(), WebElement::get_pix_top(), height, LaserDQM_cfg::input, name, position, and width.
{ std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top(); *out << cgicc::div().set("style", position.c_str()) << std::endl; *out << cgicc::iframe() .set("name", name) .set("id", name) .set("src", "") .set("height", height).set("width", width); *out << cgicc::iframe() << std::endl; *out << cgicc::br() << std::endl; *out << cgicc::input().set("type", "button").set("value", "start viewer").set("onclick", "startViewing('" + name + "')"); *out << std::endl; *out << cgicc::input().set("type", "button").set("value", "stop viewer").set("onclick", "stopViewing('" + name + "')"); *out << std::endl; *out << cgicc::input().set("type", "button").set("value", "make current").set("onclick", "makeCurrent('" + name + "')"); *out << std::endl; *out << cgicc::div() << std::endl; }
std::string GifDisplay::height [private] |
Definition at line 19 of file GifDisplay.h.
Referenced by GifDisplay(), and printHTML().
std::string GifDisplay::name [private] |
Definition at line 21 of file GifDisplay.h.
Referenced by GifDisplay(), and printHTML().
std::string GifDisplay::width [private] |
Definition at line 20 of file GifDisplay.h.
Referenced by GifDisplay(), and printHTML().