examples/help/Plugin.cpp
Go to the documentation of this file.
1 #include "Plugin.h"
2 
3 //TerraLib help files
7 
8 //Qt
9 #include <QGridLayout>
10 
12 QWidget(parent, Qt::Dialog)
13 {
15  m_help_btn->setPageReference("qthelp://dpi.inpe.br.help_example_plugin/doc/teste3.htm");
16 
17 // m_help_btn->setText("Plug-in test");
18 
19  te::qt::widgets::HelpManager::getInstance().appendDoc("docplugin.qch");
20 }
21 
23 {
24 }
25 
27 {
28  QGridLayout* l = new QGridLayout(this);
29 
30  l->addWidget(m_help_btn);
31 }
A specialized button that uses terralib help managers.
void setPageReference(const QString &ref)
Sets the documentation page reference.
~Plugin()
Virtual destructor.
static HelpManager & getInstance()
It returns a reference to the singleton instance.
A singleton that contains a pointer to a help manager implementation.
Plugin(QWidget *parent=0)
te::qt::widgets::HelpPushButton * m_help_btn
Push button that uses te::qt::widgets::HelpManager on its mouse pressed implementation.
An interface for a help manager implementation.