help/MainWindow.cpp
Go to the documentation of this file.
1 #include "MainWindow.h"
2 #include <ui_mainwindow.h>
3 
4 #include "HelpTest.h"
5 #include "HelpTest2.h"
6 #include "Plugin.h"
7 
8 //TerraLib help files
11 
12 
14 QMainWindow(parent),
15  m_ui(new Ui::MainWindow)
16 {
17  m_impl = new te::qt::widgets::AssistantHelpManagerImpl("help.qhc", this);
19 
20  m_ui->setupUi(this);
21 }
22 
24 {
25  delete m_ui;
26 }
27 
29 {
30  HelpTest* dlg = new HelpTest(this);
31 
32  dlg->show();
33 }
34 
36 {
37  HelpTest2* dlg = new HelpTest2(this);
38 
39  dlg->show();
40 }
41 
43 {
44  Plugin* dlg = new Plugin(this);
45 
46  dlg->show();
47 }
te::qt::widgets::HelpManagerImpl * m_impl
Using the help button.
An implementation of HelpManager that uses QAssistant to show help files.
static HelpManager & getInstance()
It returns a reference to the singleton instance.
MainWindow(QWidget *parent=0)
Constructor.
A singleton that contains a pointer to a help manager implementation.
A simple main window to show example of TerraLib Qt Tools.
Ui::MainWindow * m_ui
A help manager that uses the QAssistant to manage help files.