30 #include <QVBoxLayout> 31 #include <QTextBrowser> 34 #include <boost/filesystem.hpp> 40 namespace fs = boost::filesystem;
46 QVBoxLayout* layout =
new QVBoxLayout(
this);
62 std::string file_path = qfile_path.toStdString();
64 if (!fs::exists(file_path))
66 browser_->setText(
"Help file '" + qfile_path +
"' does not exist.");
68 else if (fs::is_directory(file_path))
70 browser_->setText(
"Help file '" + qfile_path +
"' is a directory, not a file.");
74 QUrl url = QUrl::fromLocalFile(qfile_path);
VisualizationManager * vis_manager_
virtual QString getHelpPath() const
void onInitialize() override
void setHelpFile(const QString &file_path)
Load the given html file.
HelpPanel(QWidget *parent=nullptr)