#include <DQM/TrackerCommon/interface/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) | |
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) |
void | printHTML (xgi::Output *out) |
~GifDisplay () | |
~GifDisplay () | |
Private Attributes | |
std::string | height |
std::string | name |
std::string | width |
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.
00027 : WebElement(the_url, top, left) 00028 { 00029 height = the_height; 00030 width = the_width; 00031 name = the_name; 00032 }
GifDisplay::~GifDisplay | ( | ) | [inline] |
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.
00027 : WebElement(the_url, top, left) 00028 { 00029 height = the_height; 00030 width = the_width; 00031 name = the_name; 00032 }
GifDisplay::~GifDisplay | ( | ) | [inline] |
void GifDisplay::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
void GifDisplay::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
Definition at line 3 of file GifDisplay.cc.
References lat::endl(), WebElement::get_pix_left(), WebElement::get_pix_top(), height, iggi_31X_cfg::input, name, and width.
00004 { 00005 std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top(); 00006 00007 *out << cgicc::div().set("style", position.c_str()) << std::endl; 00008 00009 *out << cgicc::iframe() 00010 .set("name", name) 00011 .set("id", name) 00012 .set("src", "") 00013 .set("height", height).set("width", width); 00014 *out << cgicc::iframe() << std::endl; 00015 *out << cgicc::br() << std::endl; 00016 *out << cgicc::input().set("type", "button").set("value", "start viewer").set("onclick", "startViewing('" + name + "')"); 00017 *out << std::endl; 00018 *out << cgicc::input().set("type", "button").set("value", "stop viewer").set("onclick", "stopViewing('" + name + "')"); 00019 *out << std::endl; 00020 *out << cgicc::input().set("type", "button").set("value", "make current").set("onclick", "makeCurrent('" + name + "')"); 00021 *out << std::endl; 00022 00023 *out << cgicc::div() << std::endl; 00024 }
std::string GifDisplay::height [private] |
std::string GifDisplay::name [private] |
std::string GifDisplay::width [private] |