Goby v2
liaison_home.cpp
1 // Copyright 2009-2018 Toby Schneider (http://gobysoft.org/index.wt/people/toby)
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 //
5 //
6 // This file is part of the Goby Underwater Autonomy Project Binaries
7 // ("The Goby Binaries").
8 //
9 // The Goby Binaries are free software: you can redistribute them and/or modify
10 // them under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 2 of the License, or
12 // (at your option) any later version.
13 //
14 // The Goby Binaries are distributed in the hope that they will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
21 
22 #include "liaison_home.h"
23 
24 using namespace Wt;
25 
26 goby::common::LiaisonHome::LiaisonHome(Wt::WContainerWidget* parent)
27  : LiaisonContainer(parent), main_layout_(new Wt::WVBoxLayout(this))
28 {
29  Wt::WContainerWidget* top_text = new Wt::WContainerWidget(this);
30  main_layout_->addWidget(top_text);
31 
32  top_text->addWidget(new WText("Welcome to Goby Liaison: an extensible tool for commanding and "
33  "comprehending this Goby platform."));
34  top_text->addWidget(new WBreak());
35  top_text->addWidget(new WText("<i>liaison (n): one that establishes and maintains "
36  "communication for mutual understanding and cooperation</i>"));
37 
38  set_name("Home");
39 }