Commits

Ian Chen committed a9c5847

Add tips

Comments (0)

Files changed (1)

gazebo/gui/model_editor/BuildingEditorPalette.cc

   mainLayout->addLayout(buttonsLayout);
   mainLayout->setAlignment(Qt::AlignTop | Qt::AlignHCenter);
 
+
+  QLabel *tipsLabel = new QLabel;
+  tipsLabel->setTextFormat(Qt::RichText);
+  tipsLabel->setWordWrap(true);
+  std::stringstream tipsText;
+  tipsText << "<p><b> Tips: </b></b>"
+      << "<p>Draw Walls: Click/release to start a wall."
+      << "<br>Click again to start a new, attached wall.</br>"
+      << "<br>Double-click to stop drawing.</br></p>"
+      << "<p>Add Window/Doorway: Click/release in Palette, "
+      << "click/release again in 2D View to place the object.<p>"
+      << "<p>Double-click an object to open an Inspector with configuration"
+      << "options.</p>"
+      << "<p>Note: Currently, windows & doors are simple holes in the wall.</p>"
+      << "<p>Note: Because Gazebo only supports simple primitive shapes, "
+      << "all floors will be rectangular.</p>";
+  tipsLabel->setMinimumSize(200, 400);
+  tipsLabel->setMaximumSize(300, 400);
+
+  tipsLabel->setText(tr(tipsText.str().c_str()));
+  mainLayout->addItem(new QSpacerItem(10, 20, QSizePolicy::Expanding,
+                      QSizePolicy::Minimum));
+  mainLayout->addWidget(tipsLabel);
+
   this->setLayout(mainLayout);
 //  this->layout()->setContentsMargins(0, 0, 0, 0);
 }