00001 #include "aboutdlg.h" 00002 00003 const std::string AboutDlg::GV_VERSION = "1.0"; 00004 const std::string AboutDlg::GV_CREDITS = "\n\nMaintained and developed by Deborah Lee Soltesz, deborah.soltesz@gmail.com. \nSpreadsheet Output by Erica Liszewski. \nImage Polygon Calculator by Erica Liszewski and Deborah Lee Soltesz. \nOriginally created by Dan Mingus, USGS Flagstaff.\n\n"; 00005 const std::string AboutDlg::GV_DATE = "2008-05-29"; 00006 const std::string AboutDlg::GV_WEBSITE = "http://www.glims.org"; 00007 00008 AboutDlg::AboutDlg( ) : 00009 QDialog( NULL, "", true ) { 00010 this->setCaption( "About GLIMSView" ); 00011 buildDlg(); 00012 } 00013 00014 void AboutDlg::buildDlg( ) { 00015 00016 std::string title, 00017 credits, 00018 date, 00019 website, 00020 buildDate; 00021 00022 title = "GLIMSView v"; 00023 title += GV_VERSION; 00024 credits = "Created by: "; 00025 credits += GV_CREDITS; 00026 date = "Release Date: "; 00027 date += GV_DATE; 00028 website = "Website: "; 00029 website += GV_WEBSITE ; 00030 00031 QVBoxLayout *vbl = new QVBoxLayout( this ); 00032 vbl->setAutoAdd( true ); 00033 vbl->setMargin( 30 ); 00034 00035 QVBox *txtbox = new QVBox( this ); 00036 txtbox->setMargin( 15 ); 00037 new QLabel( title.c_str(), txtbox ); 00038 new QLabel( date.c_str(), txtbox ); 00039 new QLabel( credits.c_str(), txtbox ); 00040 new QLabel( website.c_str(), txtbox ); 00041 00042 QVBox *butbox = new QVBox( this ); 00043 butbox->setMargin( 15 ); 00044 QPushButton *pb = new QPushButton( "Close", butbox ); 00045 pb->setMaximumWidth( 100 ); 00046 connect( pb, SIGNAL( clicked() ), this, SLOT( close() ) ); 00047 } 00048 00049
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |