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